Commit Graph

278 Commits

Author SHA1 Message Date
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
A5 Pickle a00a4824b2 sdk/js: add .skip 2022-10-25 11:53:05 -04:00
aki a54030b6ed sdk/aptos: use qualified type instead of module address 2022-10-25 11:32:56 -04:00
aki 027354f319 sdk/aptos: move transfer logic to sdk 2022-10-25 11:32:56 -04:00
aki 9ae43b3dd9 sdk/aptos: documentation 2022-10-25 11:32:56 -04:00
Evan Gray cdff57209d sdk/js: minor version bump 2022-10-24 19:00:15 -04:00
Csongor Kiss eaa5107b33
sdk/js: aptos (#1736)
* sdk/js: aptos

* sdk/aptos: change api interface to be more flexible

sdk/aptos: add attestToken

sdk/aptos: added createdWrapped

sdk/aptos: add getForeignAsset

sdk/aptos: stricter sanity check for fully qualified type

sdk/aptos: ensure addresses are left padded

sdk/aptos: check if asset exists in getForeignAsset

sdk/aptos: stricter sanity check - hex prefix can't be capital

sdk/aptos: add updatewrapped

sdk/aptos: update readme with token attestation example

sdk/aptos: added transfer

sdk/aptos: add getIsTransferCompleted

sdk/aptos: add isWrappedAsset and getOriginalAsset

sdk/aptos: add redeem

sdk/aptos: make init tokenbridge entry func

* sdk/aptos: separated signing/submitting txs from creating raw txs

* clients/js: hash aptos fully qualified type to get address

* sdk/aptos: return payload from api instead of rawtx

* sdk/aptos: derive token info from vaa

* sdk/aptos: fix getAssetFullyQualifiedType for native asset

* sdk/aptos: add min gas price

* sdk/aptos: bump aptos version

* sdk/aptos: dont require 0x in front of addresses

* sdk/aptos: progress on e2e tests

* sdk/aptos: upgrade resource address derivation

This was changed recently
25696fd266/aptos-move/framework/aptos-framework/sources/account.move (L90-L95)

* sdk/js: fix getForeignAssetAptos

* sdk/js: update testnet aptos address

* sdk/js: update aptos entry functions

* sdk/aptos: fix parsesequencefromlog

* sdk/aptos: throw errors instead of string literal

* sdk/aptos: update testnet/mainnet addresses

* sdk/aptos: fix  completeTransfer and getOriginalAsset

* sdk/aptos: update transferTokens to take in type and remove wormholeFee param

* sdk/aptos: add typeToExternalAddress utility

* sdk/js: update parseSequenceFromLogAptos

* sdk/js: test version bump again

* sdk/aptos: make transfer param type consistent

* sdk/aptos: test transfer to another chain test done

* sdk/aptos: use completeTransferAndRegister

* sdk/aptos: allow tryNativeToHexString to take in account addresses

* sdk/aptos: finish e2e tests

* sdk/aptos: test all apis

* sdk/aptos: add registerCoin utility

* sdk/js: utility to submit script bytecode to chain

* sdk/aptos: update test to be idempotent

* sdk/aptos: stricter check on aptos type

* clients/js: remove unused imports from rebase

* sdk/aptos: change node and faucet urls in ci

Co-authored-by: aki <akshath@live.com>
Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-10-24 18:12:02 -04:00
Conor Patrick 91bd9a5c36 rename all wormholechain and wormhole-chain references 2022-10-24 17:59:52 -04:00
Csongor Kiss da8a972b92 watcher: aptos testnet emitter is now 1 2022-10-16 20:29:09 +01:00
Csongor Kiss bf556f0c7a sdk/js: propagate exception in getIsTransferCompletedTerra 2022-10-15 15:17:36 +01:00
Josh Siegel 1a7098553c aptos/watcher: aptos and sui were missing from a bunch of spots 2022-10-15 15:17:36 +01:00
Josh Siegel daf689cf2a node: aptos watcher 2022-10-15 15:17:36 +01:00
Kevin Peters 88bdf0d978 sdk/js: Version 0.7.2, added Xpla support 2022-10-12 17:36:48 -04:00
bruce-riley 67f57b797e
XPLA Mainnet Deploy (#1703)
* Prepare to deploy Xpla to mainnet

* Update SDK version

* Fix messed up error message

* Allow tests to pass with no XPLA tokens

* Make deploy script support testnet

* Update token bridge addresses after redeploy
2022-10-12 16:47:03 -04:00
bruce-riley 1ebfa4ae95
sdk/js: 0.7.1 version bump, xpla and neon testnet support (#1693) 2022-10-07 10:26:54 -05:00
bruce-riley 4deadf9149
Update bridge addresses for Neon testnet (#1690) 2022-10-07 08:35:11 -05:00
Paul Noel d65def86e1
sdk/js: add XPLA to sdk (#1689)
* sdk/js: add XPLA to sdk

* sdk/js: use axpla as denom
2022-10-07 08:20:00 -05:00
Evan Gray 9609c4e7e0
sdk/js: add moonbeam mainnet addrs (#1683) 2022-10-07 08:18:36 -05:00
Paul Noel 9657f41561
node: XPLA watcher (#1676) 2022-10-05 08:05:31 -05:00
Chirantan Ekbote 7f4b0d1a09 Wormhole chain integration
This is a squashed commit of all the changes needed to integrate
wormhole chain into the main repo.
2022-10-03 17:34:42 +09:00
Paul Noel 0f7ddda602
Optimism testnet deploy (#1661)
* ethereum: add optimism testnet

* sdk/js: add optimism testnet

* ethereum: put back network id

* Revert "ethereum: put back network id"

This reverts commit 71f68c50d2.

* ethereum: put back network id

* ethereum: file cleanup
2022-09-30 17:38:08 -04:00
bruce-riley 7fcbabe720
node: eth publish immediately (#1664)
* node: eth publish immediately

Change-Id: I242f02d0ed5bcced5ed366a512c07d5757b300e8

* testing: immediate publish test

* Move magic number to the sdk

Change-Id: I806f73d4442af4736aa6e5fc1c8e48e434c4a6d4

Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-09-30 11:03:01 -05:00
Bruce Riley 0b6cc9ab44 Basic guardian support 2022-09-29 22:38:27 -04:00
Bruce Riley 87d146a261 Deploy contracts to testnet 2022-09-29 22:38:27 -04:00
kev1n-peters 9352784c89
sdk/js: 0.7.0 version bump (#1451) 2022-09-28 23:27:18 +02:00
kev1n-peters c5d2f9d54d
sdk/js: Near refactor, added integration tests (#1648)
* near-sdk-refactor: Fix attest
                 : Fix missing function calls
                 : make near on near
                 : renamed tryHexToNativeStringNear

* near-sdk-refactor: bumped near-sdk-js version

Co-authored-by: Josh Siegel <jsiegel@jumptrading.com>
2022-09-28 08:53:15 -05:00
Josh Siegel 1febea03b5 algo/typo: type fix, algorand tests, near tests 2022-09-26 05:26:56 -05:00
Evan Gray 239b22e3a8 sdk/js: add injective 2022-09-20 17:14:05 +00:00
Justin Schuldt d69ad85994
sdk/js - add getSignedBatchVAA and bump version (#1594) 2022-09-15 11:03:26 -05:00
Chirantan Ekbote 12459c4a2a Add a wormhole go sdk
The wormhole sdk is a new go module in the sdk/ directory.  This
initially contains the *_consts.go files from the common package in the
top-level sdk package and the entire vaa package as a sub-package.

For go reasons this needs to be in the sdk directory itself (rather than
a sdk/go subdir).  To prevent the go tooling from looking into the other
non-go subdirs, add an empty go.mod file in each one.  See
golang issue 42965 for more details on why we can't have nice
things (I'm deliberately not linking to stop github from spamming that
issue).
2022-09-15 14:35:46 +01:00
Josh Siegel e0843bf2bc near/watcher_fix: improve metrics 2022-09-14 09:22:25 -05:00
Justin Schuldt a4e395ada7
sdk/js-proto-* - bump version to 0.0.5 (#1569) 2022-09-14 04:33:11 -05:00
Josh Siegel 3288b0abb7 near/dust: Fix dust underflow 2022-09-12 14:00:03 -05:00
jumpsiegel 8dc459b550
near/getNearEmitter: add getEmitterAddressNear (#1519) 2022-09-06 08:04:15 -05:00
Kevin Peters eeb1682fba sdk/js-proto*: 0.0.4 version bump 2022-09-02 18:16:39 -04:00
Josh Siegel e4cbb67dc0 near/transfer-test: transfer test and sdk fix 2022-08-30 15:14:55 -05:00
Evan Gray f28e39c490 certusone -> wormhole-foundation 2022-08-26 12:48:14 -04:00
bruce-riley 4a42c29c0f
Near mainnet deploy (#1467)
* Initial commit

* Updated mainnet_tokens with Near token

* Near CLI changes

* More CLI tweaks

* Revert ethers in cli

* Fix lint error

* Testnet emitter is wrong

Co-authored-by: Christine Eun <ceun@jumptrading.com>
2022-08-26 12:46:37 -04:00
Josh Siegel a752e1309c near/audit: audit feedback 2022-08-25 09:16:32 -05:00
Josh Siegel 0ecbe74a79 near/sdk: remove unused import @ gusc1a-ossdev-jsl5 2022-08-24 14:28:25 -05:00
Josh Siegel 93212bd4f6 near/sdk: remove line @ gusc1a-ossdev-jsl5 2022-08-24 14:28:25 -05:00
Josh Siegel dd63311d56 near/sdk: remove near util @ gusc1a-ossdev-jsl5 2022-08-24 14:28:25 -05:00
Josh Siegel 0cca6c7659 sdk/js: near support 2022-08-24 14:28:25 -05:00
Csongor Kiss cf5c390fc6 sdk/js: Use is_vaa_redeemed query in getIsTransferCompletedTerra2
This does not require a transaction simulation, and should serve as the
basis for future cosmwasm sdk functions in the `getIsTransferCompleted*`
family.
2022-08-22 16:30:23 +02:00
bruce-riley 15a0f8c86f
New contract addresses (#1440) 2022-08-17 11:20:42 -05:00
Stan Drozd 18eac4e3d3 solana: bump: Rust nightly-2022-07-12, SOL SDK v1.10.31, rust container 1.60
solana: use prebuild docker image for 1.10.31

solana: use the right rust version

from https://github.com/solana-labs/solana/blob/v1.10.31/ci/rust-version.sh

nft_bridge: TransportError -> BanksClientError

solana/Dockerfile.wasm: Use rust-toolchain instead of rustup
2022-08-17 15:30:01 +01:00
Paul Noel eae0b51d37
Algorand mainnet deploy (#1434)
* algorand mainnet deploy

* Changes to sdk/js

* Update sdk changlog

Co-authored-by: Bruce Riley <briley@jumptrading.com>
2022-08-16 10:14:48 -05:00
kev1n-peters 9bb598d949
sdk/js: Added getGovernorIsVAAEnqueued functions (#1410) 2022-08-10 17:11:58 -05:00
Csongor Kiss aea76be327 terra: Ensure that recipient address is 32 bytes.
Before this check, users were able to lose funds by sending money to an
address that's shorter than 32 bytes.
This commit is essentially a backport of the fix from the new cosmwasm contract.
2022-08-08 12:12:14 -05:00
bruce-riley f0b7225591
Pythnet mainnet deploy (#1388) 2022-08-04 09:51:38 -05:00
Kevin Peters 910eb0f3e0 fix terra classic native token parsing
when a native denom is received (complete transfer native),
check if the token chain is terra classic
2022-08-03 12:02:02 -05:00
Kevin Peters a9b05d8868 sdk/js: 0.6.0 version bump and formatting changes 2022-08-01 12:33:53 -04:00
Chirantan Ekbote f64703c815 sdk/js: Add wormhole chain 2022-08-01 12:33:53 -04:00
Chirantan Ekbote 13a18d2f7e sdk/js: Move address functions to cosmos package
`canonicalAddress` and `humanAddress` are useful functions for all
cosmos chains so move it into a new cosmos package.  This also means we
need to stop hardcoding "terra" in `humanAddress` and take the human
readable part as a parameter instead.
2022-08-01 12:33:53 -04:00
Evan Gray e0fd3e788f
node: pythnet testnet support (#1380) 2022-07-28 12:30:00 -05:00
Bruce Riley d010f0d430 Deploy read only moonbeam 2022-07-21 16:23:08 -04:00
Bruce Riley d40f969d47 Deploy read only chains 2022-07-21 09:17:29 -04:00
Evan Gray 577d9b35f8 sdk/js: parallelize tests 2022-07-19 19:43:41 -04:00
bruce-riley 53efeb8c87
Add read only chain IDs (#1370)
* Add read only chain IDs

* Should be treated as EVMs
2022-07-19 14:05:40 -04:00
Evan Gray 90fe03012a tilt: build ci earlier 2022-07-15 14:36:46 -04:00
Evan Gray 91f9a13ae0 sdk/js: remove logs in tests 2022-07-15 14:36:46 -04:00
Josh Siegel caeea358d8 Stub out injective, osmosis, sui, and aptos 2022-07-15 10:45:30 -04:00
Evan Gray 061244dc17 sdk/js: publish separate wasm package 2022-07-13 10:04:23 -04:00
Evan Gray 37c20b547a sdk/js: publish separate proto packages 2022-07-13 10:04:23 -04:00
Csongor Kiss 47318c2a03
solana: Add "msg.sender" and remove fee from payload3 (#1279)
* solana: Add "msg.sender" and remove fee from payload3

* solana: update payload3 instruction to include the sender account

* solana: allow sending payload 3s to program ids directly

Co-authored-by: Csongor Kiss <ckiss@jumptrading.com>
2022-06-30 18:37:46 +01:00
Evan Gray c145e9350b sdk/js: fix converting native terra2 20-byte addrs 2022-06-24 17:52:17 -04:00
Kevin Peters 3028b81d63 sdk/js: Terra2 integration tests 2022-06-24 16:37:22 -04:00
Evan Gray 3a20c774f0 sdk/js: add terra2 mainnet address 2022-06-22 12:13:17 -04:00
Csongor Kiss 297ab6fd61 sdk/js: remove fee from payload3 2022-06-21 22:35:49 -04:00
Evan Gray df3219e0f7 sdk/js: add terra2 testnet addrs 2022-06-21 17:30:56 -04:00
Evan Gray 3dc0bac63f sdk/js: terra2 support
Co-authored-by: Kevin Peters <kpeters@jumptrading.com>
2022-06-21 17:30:56 -04:00