Commit Graph

88 Commits

Author SHA1 Message Date
Evan Gray 24cc3b528c ci: evm relayer address fix 2024-06-07 12:19:13 -04:00
Claimens | CryptoCrew Validators 3b8daa8880
docs: update wormchain sync instructions for `v2.18.1.1` and `v2.24.2-wormchaind` upgrades. (#3960)
* Add instructions for `v2.18.1.1` and `v2.24.2-wormchaind` upgrades. Add halt-height to `v2.14.9.6`.

* Update snapshot sync instructions to latest version

* Fix latest version comment

* Use `halt-height` when syncing with `v2.18.1`
2024-06-03 23:46:47 -04:00
Evan Gray 4f20d175b3 ci: install specific foundry release 2024-05-31 09:13:52 -04:00
Nikhil Suri af8bbc208c
Gateway conditional expiration (#3946)
* wormchain: conditionally enable new guardian set expiration logic

The new code path costs more gas, so it changes the app hash.
By guarding the new code path behind a block height, consensus does not
break (as every validator that upgrades by that block will switch at the
same block height).

* wormchain: update mainnet cutover block height

* wormchain: update cutover to 24 hours later

---------

Co-authored-by: Csongor Kiss <kiss.csongor.kiss@gmail.com>
2024-05-21 12:04:17 -07:00
Bruce Riley c5b52f9426 Node: Adminserver commands should not panic 2024-04-29 12:30:41 -04:00
Jeff Schroeder bda43b2ac7 wormchain: update cosmos ledger bindings
Ran automatically via:

    go get github.com/cosmos/cosmos-sdk/crypto/ledger@v0.45.11

Fixes:

	 => ERROR [15/16] RUN make client                                                                                                                                                                                                                                           0.7s
	------
	 > [15/16] RUN make client:
	0.202 building wormchaind-v0.0.1
	0.202 go build -v -ldflags '-X github.com/cosmos/cosmos-sdk/version.Name=wormchain -X github.com/cosmos/cosmos-sdk/version.ServerName=wormchaind -X github.com/cosmos/cosmos-sdk/version.Version=v0.0.1 -X github.com/cosmos/cosmos-sdk/version.Commit=abc123 -X "github.com/cosmos/cosmos-sdk/version.BuildTags=ledger"' -tags ledger -o build/wormchaind cmd/wormchaind/main.go
	0.649 /go/pkg/mod/github.com/wormhole-foundation/cosmos-sdk@v0.45.9-wormhole-2/crypto/ledger/ledger_real.go:6:8: missing go.sum entry for module providing package github.com/cosmos/ledger-cosmos-go (imported by github.com/cosmos/cosmos-sdk/crypto/ledger); to add:
	0.649 	go get github.com/cosmos/cosmos-sdk/crypto/ledger@v0.45.11
	0.650 make: *** [Makefile:26: build/wormchaind] Error 1
	------
	Dockerfile:37
	--------------------
	  35 |     RUN /bin/bash /app/devnet/create-genesis.sh
	  36 |
	  37 | >>> RUN make client
	  38 |     RUN chmod +x /app/build/wormchaind
	  39 |
	--------------------
	ERROR: failed to solve: process "/bin/sh -c make client" did not complete successfully: exit code: 2
2024-04-22 16:31:18 -04:00
Michael Nguyen ddf5ba159c Fixes transactions when using a Ledger 2024-04-22 16:31:18 -04:00
Evan Gray 77b4ddc812 ci: switch from ganache to anvil 2024-04-12 10:13:27 -04:00
Jeff Schroeder b175dd43c8
docs: quit the spelling spam typo fix PRs with cspell magic (#3845)
* Add cspell configuration and custom dictionary

The goal is to cut down on both incoming tyops, and well meaning but
spammy tyop fix PRs.

To run cspell locally install it and run:

    cspell '**/*.md' \
        --config cspell.config.yaml \
        --words-only \
        --unique \
        --quiet | sort --ignore-case

* docs: cspell updates

* wormchain: cspell updates

* aptos: cspell updates

* node: cspell updates

* algorand: cspell updates

* whitepapers: cspell updates

* near: cspell updates

* solana: cspell updates

* terra: cspell updates

* cosmwasm: cspell updates

* ethereum: cspell updates

* clients: cspell updates

* cspell updates for DEVELOP document

* github: run cspell github action

* sdk: cspell updates

* github: only run cspell on markdown files

* algorand: EMMITTER --> EMITTER

Suggested-by: @evan-gray

* cspell: removed from dictionary

Suggested-by: @evan-gray

* aptos and node: cspell updates

Suggested-by: @evan-gray

* cosmowasm: doc updates for terra2

Suggested-by: @evan-gray

* algorand: cspell updates

Suggested-by: @evan-gray

* algorand: cspell updates

Suggested-by: @evan-gray

* cspell: updated custom word dictionary

This resorts the dictionary and adds a few new words from the
algorand/MEMORY.md document around varints and integers.

* cspell: sort the dictionary how vscode does it

On macOS the sorting is locale dependent. To do this on macOS, you have
to invert the case, do a character insensitive sort, and then invert the
case again:

    LC_COLLATE="en_US.UTF-8" cspell '**/*.md' --config cspell.config.yaml \
        --words-only \
        --unique \
        --no-progress \
        --quiet \
    | tr 'a-zA-Z' 'A-Za-z' \
    | sort --ignore-case \
    | tr 'a-zA-Z' 'A-Za-z'

This requires the `LC_COLLATE` variable to be set to `en_US.UTF-8`, or it
will not do the right thing.

* docs: grammar clean up

---------

Co-authored-by: Evan Gray <battledingo@gmail.com>
2024-03-20 15:40:02 -04:00
Bruce Riley 9c645933d6 Tilt: Gateway deployment 2024-03-18 10:51:32 -04:00
Evan Gray 3a8aec6217 ntt-accountant: update comment and add test 2024-03-15 20:49:23 -04: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
Evan Gray 7539c1d1d8 ci: ntt-accountant integration test 2024-03-07 11:04:06 -05:00
Nikhil Suri bcb0a7eadd Update syncing.md
Add snapshot url for Polkachu
2024-02-07 16:25:02 -05:00
Evan Gray da246424a8
wormchain: deploy scripts (#2640)
* wormchain: testnet wasm deploy

* wormchain: testnet contract upgrade script

* wormchain: global accountant registration script
2024-01-31 10:39:17 -05:00
Csongor Kiss 521cff4ae2
wormchain: only latest guardian set is exempt from expiry (#3714) 2024-01-17 17:01:05 +00:00
alex 8b39c1a9bf docs: fix typos with spell checker 2023-12-21 15:24:20 -06:00
Evan Gray 094a404902 tilt: remove additional root CA support 2023-12-12 14:22:05 -06:00
Nikhil Suri 5525caad08
wormchain: allow hot-swapping validator address association when guar… (#3576)
* wormchain: allow hot-swapping validator address association when guardian set size is 1

* Replace panics with require in tests, add additional context in comments, simplify checks and code flow
2023-12-05 14:52:56 -08:00
Evan Gray 4ac2e094d9 sdk/wormchain: regen and initial release 2023-11-17 09:43:17 -05:00
Nikhil Suri e71c4776ee wormchain: add docs on syncing mainnet wormchain either manually or from snapshot 2023-09-28 19:15:52 -04:00
bruce-riley c1ff1e1d1c
Node/Gateway: Relay attestations (#3350) 2023-09-07 14:11:15 -05:00
Nikhil Suri deddbdf583 wormchain: rename v2.22.0 upgrade to v2.23.0 upgrade 2023-08-16 21:14:18 -04:00
Steve 6b3819cc41
wormchain: add upgrade vaa and upgrade handler. Removes set params vaa. (#3292)
* Add chain upgrade vaa and upgrade handler. Removes set params vaa.

* Update node package

* Fix vaa payload test
2023-08-16 20:24:57 -04:00
Nikhil Suri 6aa80d459c
wormchain: setparams gov vaa (#3285)
* node: add new governance VAA for setting default tokenfactory and packet forward middleware params on Gateway

* wormchain: add msg_server handler to set default tokenfactory and pfm params

* node: add gateway template command

* node: fix lint errors

* Update goverance message to be generic

* x/wormhole: add RunInPlaceUpgrade tx cli command

* Merge gateway governance VAAs into a single rpc handler

* update admin client naming for gateway governance messages
2023-08-14 20:37:50 -04:00
Steve 3337783c6d
wormchain: add ibc-composability-mw to gateway (#3273)
* Add ibc-composability-mw to gateway along with updates to node for
ibc-composability-mw and ibc-translator.

* Move governance action to new GatewayModule

---------

Co-authored-by: Nikhil Suri <nikhilsuri@comcast.net>
2023-08-14 10:49:02 -04:00
Steve 21fc11f5bc
wormchain: add PFM (#3271)
* Add PFM to wormchain

* Run go mod tidy on node package
2023-08-11 10:16:10 -04:00
Steve 41b8f7152b
Add x/ibc-hooks to wormchain repo (#3270)
* Add x/ibc-hooks to wormchain repo

* Use transfer type's codec to unmarshal json
2023-08-10 07:18:58 -07:00
Nikhil Suri 1d10fc9788
wormchain: upgrade IBC version (#3237) 2023-08-08 12:57:44 -07:00
Nikhil Suri aa44e82f7c
Instantiate allowlist (#3181)
* sdk: add wormchain instantiate allowlist governance VAA

* wormchain: add wasm instantiate allowlist msg handler

* Add cli for instantiate allowlist (#3199)

* Add cli for instantiate allowlist and fix
vaa.BodyWormchainAllowlistInstantiateContract deserialization

* Lint fixes

* Add instantiate allowlist to codec and genesis

* Add MsgDeleteWasmInstantiateAllowlist, update naming to be consistent across all types

* Fix key prefix for GetAllWasmInstiateAllowedAddresses

* Update wasmd tag version

* Fix 5 bit encoding bug

* Add query cli and rpc handler

* Add query cli and rpc files

* use cosmos-sdk method for computing bech32

---------

Co-authored-by: Steve <1848680+misko9@users.noreply.github.com>
2023-08-07 11:18:40 -07:00
Steve 5255e933d6
Add tokenfactory module to wormchain (#3146)
* Add tokenfactory module to wormchain

* Remove SetMetadata, ForceTransfer, and BurnFrom capabilities. Fix
IsCapabilityEnabled() bug. Comment out test cases that use those
capabilities. Remove unnecessary var declaration.

* Move test_helpers.go to apptesting folder. Remove unnecessary
EncodingConfig struct/method/file. Move and rename mock.go to
mock_key.go and move to apptesting folder.

* Fix lint issues

* Add tokenfactory proto files

* Update the go package for wormchain, add tokenfactory to proto gen
dockerfile, and re-generate proto files

* Disable tokenfactory wasm custom querier so that wormchain custom
querier works

* Remove subdemon check since the bug has been fixed in our ibc-go version

* Disable unit test using tokenfactory custom querier
2023-07-26 14:06:17 -04:00
Evan Gray 0f0b15fe66 ci: pass num guardians to ci tests 2023-06-16 07:44:58 -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
Nikhil Suri f6f93bf35e
tilt: devnet deployment for ibc generic messaging (#2593)
* Tilt devnet deployment for ibc generic messaging

* Address review comments from kcsongor and hendrikhofstadt

* Add IBC channel whitelist updates to wormchain and terra devnet deploy scripts

* VAAs had guardian set index three instead of zero

* ci: update addresses

* Remove message.block_height and message.tx_index from attributes

* Remove unnecessary contracts from terra2 devnet deployment

* Update wormhole-ibc address on terra2

* Update wormhole-ibc guardian set on terra2 devnet deployment

* IBC relayer testnet deployment fixes

* Wormchain update whitelist fix

---------

Co-authored-by: Bruce Riley <briley@jumptrading.com>
Co-authored-by: Evan Gray <battledingo@gmail.com>
2023-05-18 18:56:18 -04:00
Conor Patrick 99235bc08d wormchain: add testnet files 2023-05-12 06:16:53 -04:00
tbjump a88982e43d upgrade to golang 1.19.9 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 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
Nikhil Suri dcbca82c50
wormchain: updates to add ibc (#2589) 2023-04-11 09:33:50 -05:00
Conor Patrick 708d02f128 wormchain: require go version at least 1.19 2023-03-24 15:39:40 -05:00
Conor Patrick 16418d190d wormchain: update accountant tests 2023-03-16 08:48:25 -05:00
Conor Patrick 62bef9ffb4 wormchain: dont remove v in tag name for release 2023-03-15 11:59:31 -05:00
Conor Patrick c1effe68e0 wormchain: make recipe easier to use for making release build 2023-03-15 11:14:15 -04:00
Conor Patrick 7c5bdb1863 accountant: remove double keccak for submitting observations 2023-02-27 08:52:42 -06:00
Conor Patrick d4e0445785 node: calculate digests using Vaa type or using message prefix 2023-02-27 08:52:42 -06:00
Conor Patrick b35480f966 accountant: address review comments for modify governance vaa 2023-02-15 06:23:25 -08:00
Conor Patrick b5ead3204a wormchain: add test for accountant modify 2023-02-15 06:23:25 -08:00
Kevin Peters 8dcd3f615f test: accountant e2e contract queries 2023-02-10 12:29:45 -05:00
Conor Patrick 7e982cb032 wormchain: address comments for migrating wasmd contracts 2023-02-07 12:15:11 -06:00
Conor Patrick aac92a19e7 wormchain: add migrating contracts with vaa 2023-02-07 12:15:11 -06:00