Commit Graph

248 Commits

Author SHA1 Message Date
A5 Pickle b71181a404 sdk/js: fix account and instruction serialization 2022-12-14 11:00:20 -06:00
A5 Pickle 1616df817e sdk/js: fix token bridge cpi accounts 2022-12-14 11:00:20 -06:00
Bojan Angjelkoski 612ae1a7e5 sdk/js: injective package bump 2022-12-14 11:40:49 -05:00
Chirantan Ekbote b3d68b0db6 sdk/rust: Drop references to `de::Unexpected`
The `de::Unexpected` enum from serde has a `Float(f64)` variant.
Referencing this enum anywhere in the code will cause the compiler to
emit its `fmt::Display` impl, which includes an `f64.load` instruction
on wasm targets.  Even if this instruction is never executed, its mere
existence will cause cosmos chains to reject any cosmwasm contract that
has it.

Fix this by removing all references to `de::Unexpected`.
2022-12-14 16:33:22 +09:00
Chirantan Ekbote d157c7bf67 sdk/rust: Add serde-based struct defintions
Refactor the core crate to add serde-based struct definitions for the
various messages used by the different wormhole smart contracts.  This
will also make it easier to use alternate data formats (like json) for
client-side tooling.

Co-authored-by: Reisen <reisen@morphism.org>
2022-12-14 16:33:22 +09:00
Chirantan Ekbote 92cb3d28a3 sdk/rust: Add serde_wormhole crate
The serde_wormhole crate implements the wormhole wire format as a serde
data format.  This will let us replace all the hand-rolled
serialization with auto-generated code, which is less error-prone and
easier to review.
2022-12-14 16:33:22 +09:00
Chirantan Ekbote 6e25b6c801 sdk/rust: Move profile settings to workspace 2022-12-14 16:33:22 +09:00
aki a408a5b8ff clients: replace references to sdk consts
this will require another pass in the future, once we cut a new release of the sdk with the deployer address consts
2022-12-13 08:21:49 -08:00
A5 Pickle 26069907b2 sdk/js: fix payload ID 2022-12-12 17:09:05 -05:00
jumpsiegel 82651e4c55
Node fix register chain vaa format error (#2100)
* Node: Fix register chain VAA format error

Change-Id: If60ae2e072da025029b8a817272d8175585baa7d

* sdk_tests: adding sdk vaa tests

* sdk/vaa: share governance serialization

Co-authored-by: Bruce Riley <briley@jumptrading.com>
Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-12-12 13:58:38 -06:00
kev1n-peters c94ad13c8c
node: Injective mainnet support (#2084) 2022-12-07 13:43:44 -06:00
Nikhil Suri 235fb59d05
wormchain: move governance consts to sdk (#2086) 2022-12-07 09:20:11 -08:00
kev1n-peters d7198a74d7
sdk/js: Added injective mainnet addresses (#2085) 2022-12-06 22:53:19 -05: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
bruce-riley b38dfc015f
sdk/go: Add unmarshal for vaa.Address (#2076)
* sdk/go: Add unmarshal for vaa.Address

Change-Id: I1beb99f82673d1fc3225a8c6628a0019648d7e01

* sdk/go: review rework

Change-Id: I7c9179e674c019f46eebff13a071f997f20572f3
2022-12-06 07:18:16 -06:00
Evan Gray 22304b94a1 sdk/js: avoid terra test1 key in CI 2022-12-01 17:41:00 -05:00
bruce-riley b2fdebb9cb
SDK: Redeploy Neon Testnet (#2035)
* sdk: redeploy neon testnet

* sdk/js: 0.9.4 version bump

Co-authored-by: Kevin Peters <kpeters@jumptrading.com>
2022-11-30 18:54:43 -06:00
Nikhil Suri 88293f36eb
sdk: enforce single canonical VerifySignatures method (#1995) 2022-11-30 10:42:07 -08:00
Conor Patrick 63a5654c02 wormchain: add admin-sign command to continue wormchain validator enrollment 2022-11-30 09:23:19 -06:00
kev1n-peters 74c5f5c471
sdk/js: Added .prettierrc.json file (#2028) 2022-11-30 09:03:26 -06:00
Hendrik Hofstadt ff186e441a rename dev.v2 to main
Change-Id: Idfc6f88de7ee3c190a01c2196dc0bc4da91cbe4c
2022-11-29 10:43:07 -05:00
bruce-riley 95fd892bec
Node: Support for EVM watcher safe blocks (#1727)
* Node: Support for EVM watcher safe blocks

* Fix merge error

* Add check of publishSafeBlocks if not useFinalized
2022-11-28 07:55:35 -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
ckeun 1406d29ff6
sdk/js: added vaa repair script to utils (#1935)
* sdk/js: Added repairVaa & test

* fixed unnecessary comments

* Separated rpc call from base repairVaa function. removed console logs and added throws

* removed unncessary else statement

* removed unnecessary async

* Skipping rpc call test for current guardian set

* Clean up minor formatting
2022-11-23 10:24:06 -06:00
A5 Pickle 395bb0f73c sdk/js: uptick version 2022-11-22 12:16:11 -05:00
A5 Pickle 41c02f1ea4 sdk/js: update CHANGELOG 2022-11-22 12:16:11 -05:00
A5 Pickle 5d9ce7227e sdk/js: fix transfer and redeem for native SOL
sdk/js: add optional argument for MockTokenBridge

testing: add tests
2022-11-22 12:16:11 -05:00
Kevin Peters 68fbc1e77d sdk/js: Added integration tests for transferring native sol 2022-11-22 12:16:11 -05:00
Josh Siegel 94e9038c6f WH-1921: add btc to array.ts @ Closes #1921 2022-11-15 14:45:55 -06:00
Josh Siegel 44ecc2cd8d WH-1921: add btc to more spots @ Closes #1921 2022-11-15 14:45:55 -06:00
Josh Siegel 3413f09b8f WH-1921: stub out btc chain @ Closes #1921 2022-11-15 14:45:55 -06:00
justinschuldt 204d9ef40f sdk/js - include nonce in GetSignedBatchVAA call 2022-11-11 13:36:27 -05:00
justinschuldt 4e70aa0f16 sdk/js-proto-* bump versions for new protos 2022-11-10 17:56:32 -06:00
bruce-riley 074c98a952
Optimism mainnet deploy (#1869)
* Optimism mainnet deploy

* node: added OP token to manual_tokens

* Add to readiness

* File should not have been committed

* Remove readiness since it goes with watcher

* Allow optimism watcher in mainnet

* Add to devnet config

Co-authored-by: Christine Eun <ceun@jumptrading.com>
2022-11-10 13:56:38 -06:00
Evan Gray d4f9d3f8b2 ci: serialize terra2 tests 2022-11-10 14:53:18 -05:00
Evan Gray 6c6bf5e522 ci: fix integration test race condition 2022-11-10 14:53:18 -05:00
Kevin Peters d00c8bad29 sdk/js: Injective refactor
Updated injectivelabs packages, refactored code, added utility functions
2022-11-09 10:42:54 -05:00
bruce-riley 51eac5104c
Node: Add Optimism chainID (#1867)
Change-Id: Ic86d9ff02c8ab486e8fae077f21c833de156a9d8
2022-11-08 13:54:08 -06:00
bruce-riley 61454a39bd
Node: remove support for Ropsten (#1818)
* Node: Remove support for Ropsten

* Node: Remove support for Ropsten

* Fix build  error
2022-10-31 09:14:01 -05:00
Bruce Riley 0e643cdb50 Revert SDK version bump 2022-10-28 23:10:07 -04:00
Bruce Riley 4ca4220acc SDK: Remove support for Ropsten 2022-10-28 23:10:07 -04:00
Justin Schuldt e4096297ae
add BatchVAA structs to Go sdk(#1700)
* go sdk - BatchVAA structs

* make VAA body unmarshaling DRY

* implement binary encoding interfaces for VAAs

* validate observation length before unmarshaling

* move shared VerifySignatures logic to new function

* make SigningMsg a delegate call

* normalize ID of vaa types

* add BatchVAA version to signingBody

* add Attestation interface with shared VAA methods

* add data integrity checks to batchVAA unmarshal
2022-10-28 13:50:49 -05:00
Chirantan Ekbote 676d729e3a sdk/rust: Fix clippy warnings 2022-10-28 14:35:44 -04:00
Chirantan Ekbote cb20d47835 sdk/rust: Fix formatting
Also disable unstable options in the rustfmt.toml
2022-10-28 14:35:44 -04:00
bruce-riley a99c4a1a7c
node: arbitrum mainnet deploy changes (#1786)
* arbitrum mainnet deploy changes

* Change test for no governed tokens on Arbitrum

* Add arbitrum to to devnet guardian config
2022-10-27 14:50:01 -04:00
Paul Noel b0f424b4d2 sdk/vaa: add verify function to vaa 2022-10-27 14:10:18 -04:00
A5 Pickle 847dad8d4c sdk/js: add SequenceTracker
testing: add emitter sequence check
2022-10-27 14:09:54 -04:00
Evan Gray 1911bac857 ci: quieter near-api-js 2022-10-27 10:41:20 -04:00
A5 Pickle e109024e99
sdk/js: Remove Solana WASM Dependencies (#1375)
* sdk/js: Remove Solana WASM Dependencies

* sdk/js: Uptick @solana/web3.js and @solana/spl-token versions

* solana: Add IDLs for Wormhole, Token Bridge and NFT Bridge

* sdk/js: Remove Solana WASM to Use IDL Coders

* sdk/js: Remove src/migration

* sdk/js: Add CPI Account Getters

* testing: Add solana-test-validator SDK tests

* sdk/js: add CHANGELOG.md

* sdk/js: remove await

* sdk/js: fix getIsTransferCompletedAptos

* sdk/js: aptos integration test waits for tx

* sdk/js: remove commented out code

* sdk/js: fix inferred type

Co-authored-by: A5 Pickle <a5-pickle@users.noreply.github.com>
Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-10-26 10:28:46 -04:00
Evan Gray 4c25a96731 sdk: do not require a payload in vaa Unmarshal 2022-10-26 07:12:21 -04:00