Commit Graph

98 Commits

Author SHA1 Message Date
Jeff Schroeder 2712dd3f3f
node: upgrade to go 1.21.9 (#3855)
* node: update quic-go

Ran via:

    go get github.com/quic-go/quic-go@v0.42.0

* node: update mongo-drive dependency

Ran via:

    go get go.mongodb.org/mongo-driver@latest

* node: upgrade libp2p-go

Ran via:

    go get github.com/libp2p/go-libp2p@v0.33.1

Refs: #3863

* node: fallout from the go upgrade in the go.sum

Run via:

    go mod tidy

This updates the go.sum and removes unnecessary indirect references.

* docs: use go1.21.8

* github: use go1.21.8

Except for wormchain.

* node: update dockerfiles to use go 1.21.8

This was done with scripts/update-go-version.sh

* scripts: update linter dockerfile to use go 1.21.8

This was done with scripts/update-go-version.sh

* wormchain: update ibc-relayer to use go 1.21.8

This was done with scripts/update-go-version.sh

* scripts: add update-go-version.sh

This is a little helper to make updating the version of go a bit nicer.

* scripts: update-go-version.sh fixes

* set the default docker command to "dokcer"
* update the comment for the humongous sed command for dockerfiles

* github: fix go linting

* Upgrade golangci-lint to a version built with go 1.21.x. The older
  version was a binary version built with go 1.20.x and it was failing
  against the newer code built with go 1.21.x
* print the golangci-lint version in each run to see what version of go
  it was built with in case there are incompatibilties during the next
  upgrade
* remove the linter config skipping over pkg/supervisor entirely and
  instead put in an override to ignore the `unused` linter for the
  pkg/supervisor testhelpers bits for unsed test functions necessary
  to satisfy the test interface.

* scripts: update golang linter cli invocation

* github: use the latest version of golangci-lint

Because 1.52.2 is built with go 1.20.x which has issues with this project
now that it is upgraded to 1.21.8.

* node: remove implicit memory aliasing in a loop

Caught by an upgraded golangci-lint with the gosec linter:

    ::medium file=node/pkg/watchers/evm/connectors/batch_poller.go,line=226,col=8::G601: Implicit memory aliasing in for loop. (gosec)
    ::medium file=node/pkg/watchers/evm/connectors/batch_poller.go,line=285,col=8::G601: Implicit memory aliasing in for loop. (gosec)
    ::medium file=node/pkg/watchers/evm/connectors/batch_poller_test.go,line=128,col=37::G601: Implicit memory aliasing in for loop. (gosec)

See also: https://husni.dev/beware-of-implicit-memory-aliasing-in-go-foor-loop/

* node: update logging

* Update go to 1.21.9

Automated via:

    scripts/update-go-version.sh 1.21.9

* node: update test root context teardown time

Otherwise things get really sad.

* scripts: additions to update-go-versions.sh

* Standardized on prefacing functions with `function` for consistency
* Added a few more comments to explain how things work
* Automatically increment the go version and toolchain in go.mod
* Standardized on prefacing functions with `function` for consistency
* Make the go image debian version a variable for ease of maintenance

* node: update go.mod to specify 1.21.9

* node: update node tests

Review feedback from @pires

* scripts: run go mod tidy in update-go-version.sh

Required after running go mod edit or it refuses to build.

* node: update go.mod

Running `go mod tidy` removes the toolchain so the build works.

* node: update node tests

---------

Co-authored-by: Ryan Hamphrey <hamphreyryan26@gmail.com>
2024-04-19 14:43:36 -04:00
Csongor Kiss a46bccaa9b
Upgrade sui packages and compiler to 1.19.1-mainnet (#3803)
* sui: upgrade to mainnet-1.19.1

* sui: update Dockerfile.base

* sui: update tilt deployment to support new sui binary

* sui: remove faucet and simplify tilt deploy script

* sui: add script for switching Move.toml files between networks

* devnet: update sui addresses, regen config

---------

Co-authored-by: Evan Gray <battledingo@gmail.com>
2024-04-15 17:16:07 +01:00
GoodDaisy 2fc2bb577b
docs: fix some typos (#3628)
* fix typo in whitepapers/0013_ccq.md

* fix typo in scripts/

* fix typo in clients

* fix typo in sdk/

* fix typo in testing/
2024-03-08 10:17:16 -05:00
bruce-riley 3a9dfd968b
NTT / Acct / Node: Guardian support (#3815)
* NTT/Acct/Node: Guardian changes

* Add per-emitter enforcement

* complete ntt accountant integration tests and run in parallel

* Minor tweaks

* Increase delay in tests

* fix accountant ci check

* Add CI AR address

* update prefixes

* increase timeout

* update ntt transfer wire format

* Code review rework from PR #3800

* Up tilt timeout

* Allow NTT accountant without base accountant

* Define known automatic relayer emitters

* Code review rework

---------

Co-authored-by: Evan Gray <battledingo@gmail.com>
2024-03-08 07:52:12 -06:00
scnale d75fcdf66e
terra: upgrade scripts (#3753)
* terra: updates RPC URL

* terra: fixes fee estimation on bytecode upload

* terra: fixes `verify` script

* terra: updates README commands and instructions

* terra: updates governance upgrade generation

* terra: adds instructions to submit governance VAA through `worm`
2024-01-29 16:38:47 -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
Csongor Kiss 0cc1f677e5 drop mention of the terra NFT bridge from docs and scripts 2023-12-06 20:40:17 +00:00
Csongor Kiss 6fa6a2d0c1 terra: delete nft bridge
This was never deployed, and has become a maintenance burden with the
new cosmwasm 1.0 migration that Terra classic mainnet has recently gone through.
2023-12-06 20:40:17 +00: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
Csongor Kiss 3adce639fa
aptos: tooling for mainnet upgrades (#3338)
* aptos: update upgrade script to support mainnet

Also factor out named_addresses into a separate helper script

* scripts: aptos support for gov proposal generation

* sdk/js: add aptos nft_bridge mainnet address
2023-09-29 11:11:43 -04:00
tbjump 8c1f7d2eda upgrade to golang 1.20.8 2023-09-13 07:17:31 -07:00
tbjump 256e67df9a upgrade to golang 1.20.7 2023-08-03 09:58:14 -07:00
Paul Noel ec3a8b4749 scripts: adding ubuntu to dev setup 2023-07-14 13:04:23 -04:00
Hernán Di Pietro fd37be7199
tilt: algorand changes for 3.16.2 (#3114)
* Changes for 3.16.2 Tilt / Devnet.

* Updated constants in test file

* modified python script to 3.16.2

* More AppID Changes.

* Found more AppIds to replace.

* testApp fixed to 1008.
2023-06-28 11:37:41 -04:00
derpy-duck 3c0fecc3fa
Relayer: Generic Relayer Guardian Changes for Merging into Main (#3041)
* gRelayer: surrounding files

* modification to get compilation

* restore devnet

* remove generic relayer docker

* remove wait for relayer engine

* keep build time 20

* sh -> bash

* sh -> bash

* Remove comment

* bash -> sh

* Revert "bash -> sh"

This reverts commit 5c37e92fa1.

* bash->sh

* gRelayer: ethereum folder changes for generic-relayer-merge

* add eth-devnet

* Adds .github because workflow needs to install forge

* sdk-ci-tests need to install forge

* don't wait for nonexistent relayer engine

* update package.json and package-lock.json

* Remove unnecessary types from package.json

* ts-node

* gRelayer: ethereum folder changes for generic-relayer-merge

* sdk-ci-tests need to install forge

* don't wait for nonexistent relayer engine

* update package.json and package-lock.json

* remove these changes

* Relayer: Natspec documentation in IWormholeRelayer (#3032)

* WIP

* Fixes

* Updated interfaces

* remove bash

* Forward uses same refund chain id and refund address (#3034)

* WIP

* Fixes

* Forward uses same refund chain id and refund address

* Updated interfaces

* Adds .github because workflow needs to install forge

* sdk-ci-tests need to install forge

* don't wait for nonexistent relayer engine

* SDK minus payload tests

* Rename sdk relayer folder and file

* modify index.ts

* modify path

* sdk-ci-tests need to install forge

* don't wait for nonexistent relayer engine

* Add three governance VAA actions for generic relayers

* demandOption and const

* Remove forge build warnings

* Add note to interface for resend

* Verify additional VAAs in SDK

* via-ir on unless in Tilt

* Correct IWormholeReceiver interface

* Wormhole message fee now part of quoteDeliveryPrice (#3043)

* Fix to PR 3043

* Remove compiler warning

* Remove files

* remove generic relayer docker

* Fix typo

* Relayer/address drew review (#3060)

* Fix typo in Create2Factory

* Add event for contract upgrades

* Prevent registering contract if it is already registered

* Prevent allowing unset chainId for default delivery provider governance VAA

* memory to calldata for external functions in WormholeRelayerSend

* continue memory to calldata for external functions

* Fix pricing in delivery provider

* Sanity check new default delivery provider isn't 0 address

* Don't save vaaKey as local variable

* cache the length of array rather than iterate every time for vaaKeys

* Replacing memory with calldata in few locations

* Remove stale file DeliveryProviderMessages

* Remove batch VAA sender script

* Remove batch VAA from WormholeSimulator

* Wait for a confirmation in deploy scripts

* remove unnecessary comments

* Fix Delivery Provider Pricing and add a test

* remove console logs

* Revert "continue memory to calldata for external functions"

This reverts commit f322afb6c0.

* Revert "memory to calldata for external functions in WormholeRelayerSend"

This reverts commit 42fcaad884.

* Revert "Don't save vaaKey as local variable"

This reverts commit a9172379c5.

* Revert "cache the length of array rather than iterate every time for vaaKeys"

This reverts commit d61380a9b0.

* Revert "Replacing memory with calldata in few locations"

This reverts commit 94e47b6e72.

* Revert "Fix typo in Create2Factory"

This reverts commit a9f7bdf461.

* Update contract addresses for via-ir

* Update register chain test to only do one registration

* Slight improvements to delivery provider implementation

* typed errors for delivery provider

* Update SDK to have via-ir devnet address

* Fix test

* enable VIA-IR in CI and not in Tilt

* Fix chain id

* get register chain test to work

* correct contract address for via ir

* update sdk consts for via ir address

* base 32 address

* merge

* -f to -r

* relay provider -> delivery provider

* fix await

* Readme changes
2023-06-14 10:27:00 -04:00
tbjump aa081a5ef4 address reviewer feedback (will squash on merge) 2023-06-08 13:42:35 -07:00
tbjump a77fb68c78 scripts/update-guardian-set: move new-guardianset.prototxt to /tmp/
before it created it in the current folder, causing Tilt to reload resources and ultimately failing ci tests
2023-06-08 13:42:35 -07:00
tbjump 89a054cdfb node: update golang to 1.20.5 from 1.20.4 2023-06-07 13:16:31 -07:00
heyitaki 0ecc427d6f docker: build CLI in shared image
Co-authored-by: Evan Gray <battledingo@gmail.com>
2023-06-01 15:33:07 +01:00
heyitaki 4f13263089 clients/js: refactor worm info 2023-06-01 15:33:07 +01:00
tbjump d9d5481092 node: update golang to 1.20 from 1.19 2023-05-12 05:59:53 -04:00
Jeff Schroeder afc174e8ca scripts: fix install-foundry
The latest update to the github actions runner sets the XDG_CONFIG_HOME
directory to /home/runner/.config. When this variable is set, the curl |
bash installer installs foundryup to that path. This was resulting in
foundryup being installed to /home/runner/.config/.foundry/bin/foundryup
and breaking this script.

With this change, it correctly installs to:
    /home/runner/.foundry/bin/foundryup

Also ensure XDG_CONFIG_HOME is unset when running foundryup so forge is
installed in the right location as well.
2023-05-04 17:30:46 -04:00
tbjump db0c1193e0 scripts/scope checkers: reduce false negatives 2023-05-04 13:45:56 -07:00
tbjump a88982e43d upgrade to golang 1.19.9 2023-05-04 07:22:38 -07:00
tbjump 04bcfe3ed9 lint: upgrade golangci-lint to v1.52.2 2023-05-04 07:22:38 -07:00
tbjump 335c83f080 upgrade to golang 1.19.8 2023-05-04 07:22:38 -07:00
heyitaki 412680fba5 sui: update devnet addresses 2023-05-02 15:14:23 -04:00
heyitaki ed733f8e73 sdk/js: add Sui support
Co-authored-by: Evan Gray <battledingo@gmail.com>
Co-authored-by: Kevin Peters <kpeters@jumptrading.com>
2023-05-02 15:14:23 -04:00
bruce-riley caa71f18a6
Deploy base to testnet (#2422)
* Deploy base to testnet

* Shouldn't add testnet evmChainId to impl

* Add base to rpc dump command

* Oops, wrong branch!
2023-02-23 15:42:30 -05:00
bruce-riley 9aeb704e58
Deploy: Make contract upd script support pyth (#2349)
* Deploy: Make contract upd script support pyth

Change-Id: I9c40498ef9849979f89e8d48d60333932f8a696f

* Deploy: Tweak the wording

Change-Id: Iddaca17b74ab2c9aa3a1386280457e02433a6593
2023-02-10 11:15:05 -05:00
Evan Gray 7f9a03254a test: accountant e2e 2023-01-31 11:09:43 -05:00
Justin Schuldt e09a2616bf
wormchain: contracts env data (#2297) 2023-01-27 14:27:21 -05:00
Csongor Kiss 500f70c858 CI: update scripts/check-docker-pin.sh to allow sui 2023-01-20 14:57:00 +00:00
justinschuldt 9db82e310f cosmwasm - separate deploy code per chain 2023-01-19 09:32:13 -06:00
Justin Schuldt ff7273cc5d
tilt: two wormchain nodes for devnet (#2228) 2023-01-18 17:15:23 -05:00
Nikhil Suri 07831437ba
wormchain: run Ignite through docker and update documentation (#2169) 2023-01-18 07:56:32 -08:00
Csongor Kiss 88d13e694b aptos/nft-bridge: mainnet deploy 2023-01-12 02:46:42 +00:00
Csongor Kiss fe5ca53a98 aptos/nft-bridge: Tilt integration
aptos: update Docker image
2023-01-12 02:46:42 +00:00
heyitaki b7d870efcb docker: reorganize dockerfiles 2022-12-21 10:58:22 -08:00
Paul Noel 8d92d23d48
cosmwasm: update verify script (#1936)
* cosmwasm: update script

* scripts: update governance script

* cosmwasm: remove commented code

* cosmwasm: redirect to stderr
2022-11-28 15:24:25 -06:00
jumpsiegel 091ee0877d
WH-1934: upgrade golang to 1.19 (#1941)
* upgrade to golang 1.19.3

Co-authored-by: tbjump <>
Co-authored-by: tbjump <unknown>
2022-11-28 07:48:27 -06:00
Csongor Kiss 0fea135ebe scripts: add arbitrum&optimism to governance script 2022-11-16 17:09:51 +00:00
Evan Gray 83e0f053f8 remove explorer related code 2022-10-31 13:22:51 -04:00
Evan Gray 090a8e0c74 relayer: fix ci 2022-10-27 14:04:38 -04:00
Conor Patrick 91bd9a5c36 rename all wormholechain and wormhole-chain references 2022-10-24 17:59:52 -04:00
Evan Gray 32f0159319 ci: unscoped npm package check 2022-10-20 17:11:13 -05:00
Csongor Kiss 500654cf02 scripts: uppercase digest in governance generator
the injection command prints out in this format, so it's easier to read
for guardians this way
2022-10-17 23:35:17 -04:00
Csongor Kiss 3877f6f3c3 tilt: register aptos on other chains 2022-10-15 15:17:36 +01:00
Conor Patrick 127cd32e03
add vaa-gated wasmd to wormchain (#1674)
* wormchain: add wasmd module

* wormchain: update proto

* wormchain: gate wasmd contract uploading around vaa

* wormchain: add tests around wasmd operations and guardian set upgrades

* wormchain: split wasm handlers into multiple files and permit bank methods

* wormchain: address review comments

* wormchain: use legacy keccak instead of sha3

* wormchain: add way to compute vaa hash manually

* wormchain: update proto package paths and dependencies

* wormchain: remove wasmd keeper guard

* wormchain: add CLI helpers for starting the chain

* wormchain: increase max validators and add genesis time

* wormchain: remove .pb.go from lint check

* wormchain: cleanup and address review comments

* wormchain: stop tracking .pb.go files

* wormchain: address comment to create buffer safely

Co-authored-by: Chirantan Ekbote <cekbote@jumptrading.com>

* wormchain: generate proto in ci

* wormchain: fix wrong description

* wormchain: always rebuild proto in ci

* wormchain: fix unit test compile error

* wormchain: build proto in tilt

Change-Id: Ibc4f4ff0c34108f4ecbe1af3c47373816739c669

Co-authored-by: Chirantan Ekbote <cekbote@jumptrading.com>
Co-authored-by: Hendrik Hofstadt <hendrik@nexantic.com>
2022-10-14 17:12:57 -05:00
Csongor Kiss ffa31da17c aptos: dockerfile + scripts + README 2022-10-14 12:42:44 -05:00