Commit Graph

3682 Commits

Author SHA1 Message Date
Jonathan Claudius 1b250a8091 Add Neodyme audit 2023-10-31 17:04:10 -04:00
Evan Gray 1a378c31f8 ci: rely on jest timeout for vaa retry 2023-10-31 16:26:16 -04:00
Evan Gray b13ec6a9ab sdk/js/relayer: tests respect num_guardians 2023-10-31 13:01:02 -04:00
derpy-duck bb6892dfe3
correct urls (#3474) 2023-10-30 15:37:33 -04:00
derpy-duck ae1e4b32e3
base is domain 6 (#3471)
* base is domain 6

* explicit CCTP domain to name mapping
2023-10-30 14:25:40 -04:00
bruce-riley b708f5ac5b
CCQ: eth_call_with_finality (#3460)
* CCQ: eth_call_with_finality

* Attempt to fix tilt error
2023-10-30 11:13:03 -05:00
Jeff Schroeder 50f51b41f1 node: update dependencies
Now that the google cloud logging support is removed, this is from:

    go mod tidy -v

The output was:

    unused cloud.google.com/go
    unused cloud.google.com/go/logging
    unused cloud.google.com/go/longrunning
    unused github.com/googleapis/gax-go/v2
2023-10-27 21:28:53 -04:00
Jeff Schroeder 1960750fd0 node: remove gcp logging flags from guardiand 2023-10-27 21:28:53 -04:00
Jeff Schroeder 382cb9a0aa node: remove google logs from pkg/telemetry 2023-10-27 21:28:53 -04:00
Paul Noel ab4e415f2f github: update proto owners 2023-10-27 16:47:01 -05:00
Paul Noel b6a5245f89 node: Add get-and-observe-missing-vaas command 2023-10-27 14:44:09 -05:00
Nikhil Suri ff970b5cad cosmwasm: ibc-translator: increase packet timeout to 1 year 2023-10-27 00:25:14 -04:00
bruce-riley bd7262d819
Node/EVM: More nodes support finalized and safe (#3467)
* Node/EVM: More nodes support finalized and safe

* Remove unused finalizers
2023-10-26 14:26:15 -05:00
Bruce Riley 5afd9eab2d Code review rework 2023-10-26 12:59:24 -04:00
Jeff Schroeder e613486b92 ethereum: QueryDemo updates
* Use custom errors in place of require() to match the error handling
style overall of QueryResponse.
2023-10-26 12:59:24 -04:00
Jeff Schroeder 1eb481b2c9 ethereum: QueryDemo updates
* Gas bad
* Natspec updates
* Some address(0) checks in the constructor
2023-10-26 12:59:24 -04:00
Jeff Schroeder 50f6ca9fc7 ethereum: more QueryResponse tests 2023-10-26 12:59:24 -04:00
Jeff Schroeder f3b44e322b ethereum: move custom errors out in QueryResponse
If you don't do this, in the tests you have to do:

    vm.expectRevert(bytes4(keccak256("UnsupportedQueryType()")));

Whereas with this change, you can simply import the contract and do:

    vm.expectRevert(UnsupportedQueryType.selector);
2023-10-26 12:59:24 -04:00
Jeff Schroeder e219e2fd8c ethereum: QueryResponse test tyop fix 2023-10-26 12:59:24 -04:00
Jeff Schroeder 841f041c7e ethereum: update QueryResponse tests
Instead of the test contract inheriting directly from the QueryResponse
contract, it instantiates an instance of it and uses that for the
testing. This seems to work much nicer with the forge coverage tools.

With this commit, the coverage for QueryResponse shows 85.1% line
coverage, 100% function coverage, and 50% branch coverage.
2023-10-26 12:59:24 -04:00
Jeff Schroeder 15e1dcd3dd ethereum: update the QueryResponse contract
By moving the structs out of the abstract contract, you can use them
directly in any contract that imports QueryResponse.sol *without*
requiring that contract to inherit from the QueryResponse contract. This
seems to work much better with forge's coverage tooling.
2023-10-26 12:59:24 -04:00
Jeff Schroeder b4a27f4aed ethereum: Query.t.sol --> QueryResponse.t.sol
To follow standard forge testing practice, you use the same filename
for a test contract as for the file it is testing, but make the
extension .t.sol.
2023-10-26 12:59:24 -04:00
Jeff Schroeder c40323828b ethereum: limit deps in the QueryDemo contract
- Context is generally a worthless import
- Ownable is totally unused and a worthless import
2023-10-26 12:59:24 -04:00
Bruce Riley faea3bab8d CCQ: EVM Library and Demo Contract 2023-10-26 12:59:24 -04:00
cs fc39351b71 Makefile: set CGO_ENABLED=1
This is required for building the guardiand binary
2023-10-26 12:29:56 -04:00
bruce-riley 03dc4c5c7d
Node/EVM: Shouldn't publish safe block in hbs (#3466) 2023-10-26 10:22:02 -05:00
Nikhil Suri a04e8a386c
Update gateway.yml (#3464) 2023-10-25 23:07:02 +02:00
bruce-riley 90b3c3736e
Node: Update QUIC cutover time for testnet (#3463) 2023-10-24 14:26:19 -05:00
Jeff Schroeder c6afdeeb86 Update golang version to 1.20.10
This feature release mitigates CVE-2023-39325
2023-10-24 13:34:19 -04:00
Evan Gray e3471a952e sdk/ccq: refine dependencies 2023-10-23 15:43:21 -04:00
bruce-riley 5a5946e7c4
Node/Governor: Update token list (#3456) 2023-10-23 14:43:11 -05:00
bruce-riley 4324d08d62
Node/CCQ: Move watcher code (#3458) 2023-10-23 14:40:04 -05:00
bruce-riley ab6828454a
Github: Update code owners for node/hack (#3457) 2023-10-23 11:08:54 -05:00
Ben Guidarelli c682706ccd
SDK: write to the correct index (#3454) 2023-10-20 14:28:22 -04:00
Ben Guidarelli cbb570c0a7
set branch to develop from master (#3452) 2023-10-19 11:48:14 -04:00
bruce-riley d2db1616c5
CCQ: eth_call_by_timestamp (#3449)
* CCQ: eth_call_by_timestamp

* CI: add CCQ sdk tests

* SDK test changes

* Add block parsing tests

* Code review rework

* More code review rework

* More rework

* Allow two blocks to have the same timestamps

* Restore timestamp check

* Restore timestamp check

* Minor code rework

---------

Co-authored-by: Evan Gray <battledingo@gmail.com>
2023-10-19 10:32:23 -05:00
bruce-riley c991d991db
Node: QUIC Cut Over (#3431)
* Node: QUIC Cut Over

* New design

* Code review rework
2023-10-19 10:32:13 -05:00
bruce-riley 0d38029bde
CODEOWNERS: sdk/js-query (#3447) 2023-10-16 10:34:17 -05:00
Kevin Peters b53f9968ad sdk/js: v0.10.5 release 2023-10-16 10:12:09 -05:00
Kevin Peters 5c4ac61f79 sdk/js-query: Generate declaration files 2023-10-13 18:08:59 -04:00
bruce-riley 0cac01a739
CCQ: Server should check api key first (#3443)
* CCQ: Server should check api key first

* Add integration tests
2023-10-13 17:04:43 -05:00
derpy-duck bebcf281e6
relayer: allow override target chain refund (#3430)
* refund address handling improvement

* fix compilation error

* Remove unnecessary line

* restrict to view

* fix comment

* Improve handling of gas limits

* get test to pass - check that the return data is appropriately long before decoding

* modification to checking inequality

* modification to checking inequality - use unchecked

* clean functions around - add untrustedBaseDeliveryPrice

* make quote_length_bytes a constant

* seperate pay into two overloads

* change inequality to equality for checking return data length

* renaming functions

* allow override of refund per gas unused

* test modification

* note
2023-10-13 17:19:56 -04:00
derpy-duck 4e588fe119
sdk: prettier (#3445) 2023-10-13 16:00:56 -04:00
bruce-riley e0606497e0
CCQ: Query SDK (#3421)
* CCQ: Query SDK

* CCQ: TS SDK fixes

---------

Co-authored-by: Kevin Peters <kevin@w7.xyz>
2023-10-13 14:32:01 -05:00
derpy-duck 9aa4d0329d
SDK: Auto relayer better status command (#3406)
* update clients.js version

* updates to clients/js

* update clients/js

* Generate modification

* prettier

* status change

* docs change

* add back the 'impossible's

* update sdk version

* better status check WIP

* WIP

* Improved status check and stringify function with times

* improvements to status printing

* prettier format

* Remove last console log

* prettier

* readme modify

* readme fix

* Readme fix

* readme changes

* don't rely on wormscan for status in devnet

* prettier

* Remove status check from integration testing - this is a helper that shouldn't interfere with contract testing

* prettier

* update clients.js version

* readme revert changes

* base default rpcs

* script improvements

* Add manual delivery helper

* remove console logs

* arbitrum needs a custom block range

* fix bug in testing if blocknumber is 0

* deliver fixes for manual delivery

* prettier

* fix default block tag

* pre-pend scripts with test

* review comments
2023-10-13 15:25:31 -04:00
bruce-riley 5b9b10ada4
Github: Change codeowners (#3442) 2023-10-13 08:21:46 -05:00
derpy-duck 6c3ff43d6a
Auto relayer refund address handling improvement (#3428) 2023-10-13 00:10:50 -04:00
bruce-riley ea70610e46
CCQ: Testing (#3424)
* CCQ: Testing

* Use new p2p.NewHost function

* More rework

* More rework
2023-10-12 16:23:51 -05:00
bruce-riley ad696d2f3c
CCQ: Query Server (#3422)
* CCQ: Query Server

* More rework

* Clean up p2p code

* Health check change

* node: support http PUT or POST for new ccq queries

---------

Co-authored-by: Jeff Schroeder <jeffschroeder@computer.org>
2023-10-12 14:29:21 -05:00
bruce-riley 669e2bc40e
CCQ/Node: Guardian Changes (#3423)
* CCQ/Node: Guardian Changes

* Code review rework
2023-10-12 13:20:42 -05:00