Commit Graph

63 Commits

Author SHA1 Message Date
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
Conor Patrick 723f663adc wormchain: use newCtx in antehandler 2023-02-01 09:14:58 -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
Evan Gray 7f9a03254a test: accountant e2e 2023-01-31 11:09:43 -05:00
Evan Gray 95411c6722 wormchain/ts-sdk: add wasm 2023-01-30 12:21:12 -06:00
Evan Gray ae82c4035f tilt: fix accounting deploy 2023-01-30 10:17:20 -06:00
justinschuldt ab6146f19b wormchain - contracts deploy 2023-01-30 10:17:20 -06:00
Evan Gray a9373d54fa wormchain: update ts sdk 2023-01-30 09:17:37 -05:00
Justin Schuldt e09a2616bf
wormchain: contracts env data (#2297) 2023-01-27 14:27:21 -05:00
justinschuldt 621d1d66fc wormchain - contracts dir 2023-01-27 14:19:28 -05:00
justinschuldt d6c24214be wormchain - config comments and defaults 2023-01-27 14:03:02 -05:00
justinschuldt 08a0c28c65 wormchain ibc - update wormchain service name 2023-01-27 06:56:15 -05:00
Conor Patrick ad3a62c0dc wormchain: fix wormhole keeper wasmd field 2023-01-25 09:15:02 -05:00
Conor Patrick fac7e10eb4 wormchain: add more persistent peers to wormchain 2023-01-24 08:25:14 -08:00
Conor Patrick bef87c498d wormchain: bump wasmd fork 2023-01-23 17:02:50 -05:00
justinschuldt 1f939ea2dd wormchain - peer-exchange reactor off by default 2023-01-23 15:06:07 -06:00
Justin Schuldt ff7273cc5d
tilt: two wormchain nodes for devnet (#2228) 2023-01-18 17:15:23 -05:00
Nikhil Suri a7976136b7
tilt: add ibc relayer which connects wormchain and terra2 to dev environment (#2215)
- updates terra2 devnet chain timeout_commit to "1s" since the timeout_commit of "0.5s" is too fast and leads to Terra2's clock going into the future.
- updates terra2 devnet chain unbonding_time to "1814400s" which is the default value and translates to a valid trusting period for IBC connectivity.
2023-01-18 07:57:09 -08:00
Nikhil Suri 07831437ba
wormchain: run Ignite through docker and update documentation (#2169) 2023-01-18 07:56:32 -08:00
Conor Patrick 8f08d68baa wormchain: reset genesis to adjust 0 commission change values 2023-01-17 17:18:00 -06:00
bruce-riley 499c8424e4
Node: Initial guardiand changes for accounting (#2181)
* node: guardiand support for accounting

Change-Id: I97fe1f6d6d71a5803881ff4c793e3c30f22b14d8

* Node: Tie accounting into the guardian

Change-Id: I31600d18176f516b75b3eb046fd7ac6e54e1b133

* Node: accounting tests and metrics

Change-Id: Ieb139772edf464ed1ab202861babeaf0f857ad6b

* Node: minor tweak to accounting metrics

Change-Id: Iad2b7e34870734f0c5e5d538c0ac86269a9a4728

* Node: load accounting key

Change-Id: I228ce23e63b556d751000b97097202eda48650aa

* More work in progress

Change-Id: I85088d26c05cf02d26043cf6ee8c67efd13f2ea4

* Node: send observations to accounting contract

Change-Id: Ib90909c2ee705d5e2a7e6cf3a6ec4ba7519e2eb1

* Node: Fix lint error in accounting tests

Change-Id: Id73397cf45107243a9f68ba82bed3ccf2b0299b5

* Node: Need to copy libwasmvm.so

Change-Id: I2856c8964ca082f1f4014d6db9fb1b2dc4e64409

* Node: Rename wormchain to wormconn

Change-Id: I6782be733ebdd92b908228d3984a906aa4c795f7

* Node: moving accounting check after governor

Change-Id: I064c77d30514715c6f8b6b5da50806a5e1adf657

* Node: Add accounting status to heartbeat

Change-Id: I0ae3e476386cfaccc5c877ee1351dbe41c0358c7

* Node: start of accounting integration work

Change-Id: I8ad206eb7fc07aa9e1a2ebc321f2c490ec36b51e

* Node: More broadcast tx stuff

Change-Id: Id2cc83df859310c013665eaa9c6ce3033bb1d9c5

* Node: Can actually send a request to accounting

Change-Id: I6af5d59c53939f58b2f13ae501914bef260592f2

* Node: More accounting tx broadcast stuff

Change-Id: If758e49f8928807e87053320e9330c7208aad490

* Node: config changes for accounting

Change-Id: I2803cceb188d04c557a52aa9aa8ba7296da8879f

* Node: More accounting changes

Change-Id: Id979af0ec6ab8484bc094072f3febf39355351ca

* Node/Acct: Use new observation request format

* Node/acct: use new contract interface

* Node/acct: fix minor copy/paste error

* Node: Clean up comments and lint errors

* Node: disable accounting in dev by default

* Node: Fix test failure

* Remove test code

* Switch messages to debug, rename Run()

* check for "out of gas"

* Use worker routine to submit observations

* Rename mutex to reflect what it protects

* Create handleEvents func

* Remove FinalizeObservation

* Node/Acct: Trying to use tm library for watcher

* Node/acct: switch watcher to use tm library

* Node/Acct: Need separate WS parm for accounting

* Node/Acct: Fix compile error in tests

* Node/Acct: Minor rework

* Node: add wormchain as a dep to remove stale code

* Node/Acct: GS index is not correct in requests

* Node/Acct: Peg connection error metric

* Node/Acct: Add wormchain to node docker file

* Node/Acct: Fix for double base64 decode

* Node/Acct: Change public key to sender address

* Node/Acct: Fix lint error

* Node/Acct: key pass phrase change

* Node/Acct: Pass guardian index in obs req

* Node/Acct: No go on submit observation

* Node/Acct: Don't double encode tx_hash

* Node/Acct: Remove unneeded base64 encoding

* Node/Acct: handle submit channel overflow

* Node/Acct: Added a TODO to document a review issue

* Node/Acct: Fix for checking if channel is full

Co-authored-by: Conor Patrick <conorpp94@gmail.com>
2023-01-16 06:33:01 -06:00
Conor Patrick e5a9ef78d1 wormchain: update new mainnet genesis 2022-12-22 09:34:27 -06:00
Conor Patrick 2273ed54cb wormchain: update cosmos-sdk to disable 0 delegation invariant check 2022-12-22 09:34:27 -06:00
heyitaki b7d870efcb docker: reorganize dockerfiles 2022-12-21 10:58:22 -08: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