Commit Graph

3692 Commits

Author SHA1 Message Date
Evan Gray da9d97f933 sdk/js-query: npm audit fix 2024-01-23 16:49:35 -05:00
bruce-riley 65abbde534
Node/CCQ: Add test to verify solana public key length (#3730) 2024-01-23 13:29:15 -06:00
Ben Guidarelli ded305ffab
prepare for sepolia chains for cctp (#3703) 2024-01-23 11:05:21 -05:00
bruce-riley 846c2e9c9d
CCQ: Solana mock should support min_context_slot (#3728)
* CCQ: Solana mock should support min_context_slot

* Minor tweaks from PR 3637
2024-01-23 07:39:27 -06:00
bruce-riley 59dff67821
Node/CCQ: Solana query support (#3637)
* Node/CCQ: Solana query support

* Add mock stuff

* Add mock stuff

* Code review rework

* Code review rework

* Only allow "finalized", not "confirmed"

* Code review rework

* Change SolanaAccount query type to 4

* Code review rework

* Fix sdk tests
2024-01-22 18:59:02 -06:00
Bing Yu 7acbacd0ea
node: Add config file support (#3710)
* node: Add logic to read file config and bind flags

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: add guardian node config to node.yaml

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: fix path typo

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: modularize initFileConfig

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: update ethRPC to the correct url

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: update config file path

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: add initial config file testing data

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: add test for flag precedence over config file

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: add test cases for flag, env var and config file precedence

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: use backticks as expected output

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: update comments

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: handle binding errors

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: create separate test functions

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: absolute filepath -> relative filepath

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* docs: Add guardian config file usage

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: update config file name and env var prefix

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

---------

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>
2024-01-20 02:05:23 +08:00
Bing Yu 3d16cca785
node: Fix url verification bug where <ip>:<port> is not supported (#3719)
* node: update url verification logic to support ip:port format

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: add test case for ip:port

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: change neon rpc scheme from websocket to HTTP

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: update comment to be more accurate

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: remove neon from devmode

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: ignore internal xlabs testing file

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: add ws:// prefix to Sui

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: add ws:// and wss:// prefixes to Sui schemes

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: update testnet yaml naming

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

---------

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>
2024-01-19 03:14:59 +08:00
Bing Yu c7756f88c4
node: add "none" to disable watcher (#3718) 2024-01-18 04:29:49 +08:00
Dirk Brink 60a9370d6d
node: governor token list update (#3713)
Co-authored-by: djb15 <djb15@users.noreply.github.com>
2024-01-17 11:37:53 -08:00
Csongor Kiss 521cff4ae2
wormchain: only latest guardian set is exempt from expiry (#3714) 2024-01-17 17:01:05 +00:00
bruce-riley a858d76ef5
Node: Always cut over to quic-v1 (#3715) 2024-01-17 10:12:00 -06:00
Bruce Riley da3828354a Upgrade to libp2p v0.32.2 2024-01-17 10:08:14 -06:00
Jeff Schroeder a255adb1e3 node: update some go dependencies
Courtesy of:

    $ go mod tidy

We needed to update a few more dependencies for the guardian to build.
This also fixes the slices.SortFunc() function signature from returning
a bool to an int.
2024-01-17 10:08:14 -06:00
Jeff Schroeder f8915e6c25 node: update gomega
Courtesy of:

    $ go get -u github.com/onsi/gomega
2024-01-17 10:08:14 -06:00
Jeff Schroeder 395590d627 node: update otelhttp
Courtesy of:

    $ go get -u go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp

The old otel libraries won't build with the latest deps of go-libp2p-kad-dht.
2024-01-17 10:08:14 -06:00
Jeff Schroeder 8cfa516c23 node: update go-libp2p-kad-dht
@barnjamin thinks this will make magic for some issues with the spy in
docker being sad.

Automated via:

    $ go get github.com/libp2p/go-libp2p-kad-dht
2024-01-17 10:08:14 -06:00
Pan chao 0c4c7f4918 complete transfer 2024-01-17 08:58:24 -06:00
Pan chao ce1da6e853 transaction 2024-01-17 08:58:24 -06:00
Pan chao d612588258 committed 2024-01-17 08:58:24 -06:00
Pan chao d911c59f20 govern 2024-01-17 08:58:24 -06:00
bruce-riley a6cc3b1ce5
Node/CCQ: Unmarshal should check for extra bytes (#3711) 2024-01-12 16:31:39 -06:00
Kevin Peters a7df605599 sdk/js: 0.10.9 release 2024-01-12 15:57:32 -05:00
Evan Gray e64db08af5 sdk/js-query: add EthCallByTimestamp mock support 2024-01-12 13:45:10 -05:00
Ben Guidarelli 43b34b18bd
algorand: prevent creation of unnecessary transactions (#3702) 2024-01-11 15:00:19 -05:00
Nikhil Suri e70f215311
sdk: vaa: add missing chain IDs for gnosis and rootstock (#3624)
* sdk: vaa: add missing chain IDs for gnosis and rootstock

* Add chain IDs to structs_test.go

* Regerate publicrpc protobuf with rootstock chain ID
2024-01-10 15:16:43 -05:00
Dirk Brink cc0cd9fc52
node: governor token list update (#3626) 2024-01-09 09:27:45 -08:00
bruce-riley 517c2f77c3
Client/JS: Add Holesky support (#3638) 2024-01-09 10:19:51 -06:00
Bing Yu 81af52a2c7
node: Add URL scheme verification along flag registration (#3627)
* node: Add valid schemes for each RPC/WS

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: add function to validate rpc/ws url

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: Add function to generate formats based on schemes input

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: Add function to register and validate flag

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: Change cobra flag register to register and verify

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: registerFlagWithValidation -> registerRPCFlagWithValidationOrFail

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: Fix minor formatting error

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: Format node.go

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: Remove default parameter

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: Fix accoutantWS accepted schemes

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: Remove expectedSchemes to use validSchemes[rpcName] instead

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: Fix typos

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: map -> inline param

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: Add unit test for validateURL

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

---------

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>
2024-01-10 00:19:15 +08:00
bruce-riley b7631bfbba
Deploy Holesky Testnet (#3630) 2024-01-08 16:42:10 -06:00
Jonathan Claudius 838566e518
governor: increase avax governor limits (#3635) 2024-01-08 14:17:45 -06:00
Bing Yu 8513e7dd22
node: sync dump-rpcs (#3632)
* node: Add suiWS to rpcMap

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: Add missing RPC/WS to rpcMap

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

---------

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>
2024-01-09 03:57:02 +08:00
Bing Yu cd579d0100
node: Add accepted formats and examples for rpc and ws parameter desc (#3622)
* node: Add accepted formats and examples for rpc and ws parameter description

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: Add wss and https to the accepted formats to reduce confusion

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

* node: Add wss and https to the accepted format to reduce confusion

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>

---------

Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>
2024-01-06 00:35:06 +08:00
Dirk Brink 1a187d6c1d
node: Fix governor token list script for new chains (#3625) 2024-01-04 08:03:16 -08:00
Bing Yu 738a68a543
cosmwasm: accounting: change str.try_into().unwrap() to str.into() because conversion is infallible… (#3623)
Signed-off-by: bingyuyap <bingyu.yap.21@gmail.com>
2024-01-04 00:39:00 +08:00
alex 8b39c1a9bf docs: fix typos with spell checker 2023-12-21 15:24:20 -06:00
bruce-riley 8590089b0d
Node/CCQ: Server auto reconnect (#3611) 2023-12-21 14:28:15 -06:00
Jeff Schroeder da7716871e .github: update CODEOWNERS
Remove Ani, who is no longer working on wormhole.
2023-12-21 12:41:29 -06:00
Jeff Schroeder af5b100eeb .github: add docs/ to CODEOWNERS
I want to help with some of the low effort spellcheck PRs
2023-12-21 12:41:29 -06:00
bruce-riley 14144c8c10
Client/JS: Add new chains (#3610) 2023-12-20 14:11:12 -06:00
bruce-riley 818038ef80
Deploy Sepolia based L2s (#3606)
* Deploy Sepolia based L2s

* Code review rework
2023-12-20 08:56:14 -06:00
Jeff Schroeder 126d330b07 docs: remove certus one references from operations 2023-12-19 12:55:12 -06:00
djb15 ac1716ea01 node: governor token list update 2023-12-15 18:15:36 -06:00
bruce-riley ebd1802956
Node/CCQ: Allow subscribes from bootstrap peers (#3604) 2023-12-14 13:24:31 -06:00
bruce-riley ef408a9f71
Node/EVM: Celo not setting timestamp in blocks (#3603) 2023-12-14 12:16:32 -06:00
Csongor Kiss bfd4ba40ef
terra/doc: add some implementation notes (#3597) 2023-12-13 17:21:34 +00:00
Evan Gray 09d18801fd terra: update devnet address 2023-12-13 11:45:07 -05:00
Evan Gray 1305b52a0a terra: additional pre-upgrade tests 2023-12-13 11:45:07 -05:00
Csongor Kiss bd62e27789
terra: migrate to cosmwasm 1.1.0 (#3138)
* terra/contracts: migrate to cosmwasm 1.1.0

use `classic-bindings` crate instead of terra-cosmwasm.
This is the updated version that calls the correct query post chain upgrade

* terra/Dockerfile: update workspace optimizer

* terra: label is now required on instantiate

* terra: accept either 32 or 20 byte addresses

* terra: update devnet terra classic

* node/cosmwasm: always CW >1

* tilt: re-introduce terra classic tests

* terra: make get_address support both 20 and 32 byte addresses

* terra: fix tests to account for burn tax

Since the tests are now ran against the new LocalTerra which has burn
tax, the transaction results are different from before

* terra/token-bridge: check first 12 bytes to determine native denoms

* terra/token-bridge: simplify conditional

---------

Co-authored-by: Evan Gray <battledingo@gmail.com>
2023-12-13 16:27:17 +00:00
Dirk Brink 80f5b75e58
node: Updated governor token list update script (#3588)
* node: Updated governor token list update script

* node: Improved logging + PR comments
2023-12-13 08:08:45 -08:00
bruce-riley 1a2fbd5047
Node/EVM: Minor code cleanup (#3600) 2023-12-13 09:21:09 -06:00