Commit Graph

29 Commits

Author SHA1 Message Date
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 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
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
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
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 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 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
Conor Patrick 16418d190d wormchain: update accountant tests 2023-03-16 08:48:25 -05: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
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
Conor Patrick e30e762082 wormchain: address comments on wormchain allowlisting 2023-01-31 10:37:53 -06:00
Conor Patrick 034358b55f wormchain: require addresses to be allowlisted to submit tx 2023-01-31 10:37:53 -06:00
Nikhil Suri 79d3013336 wormchain: remove redundant guardian key arg in register-account-as-guardian msg handler 2022-12-20 14:58:49 -06:00
Nikhil Suri eff4eb2ebd wormchain: add accounting contract bindings 2022-12-16 08:51:41 -05:00
Nikhil Suri 235fb59d05
wormchain: move governance consts to sdk (#2086) 2022-12-07 09:20:11 -08:00
Nikhil Suri 0e7c085d71
node: inject wormchain cosmwasm governance messages (#2057)
* node: inject wormchain cosmwasm governance messages

* Use nested hash for defense in depth

* Use keccak.Reset() instead of creating new hash objects

* fix msg_server_wasmd_test

* Updated based on jynnantonix comments

* Check return value of binary.Write

* Include actual error in binary.Write panic case
2022-12-06 11:10:32 -08:00
Conor Patrick 63a5654c02 wormchain: add admin-sign command to continue wormchain validator enrollment 2022-11-30 09:23:19 -06:00
Conor Patrick af633ce300 wormchain: add back protobuf 2022-10-28 08:11:51 -04:00
Conor Patrick 91bd9a5c36 rename all wormholechain and wormhole-chain references 2022-10-24 17:59:52 -04:00
Conor Patrick ea663c1be4 rename wormhole_chain to wormchain 2022-10-24 17:59:52 -04:00