Commit Graph

168 Commits

Author SHA1 Message Date
aki fd37e46b7b add ability to pass amount to worm aptos faucet 2022-12-13 08:21:49 -08:00
kev1n-peters b7aae9d5dd
clients/js: evm info identifies unsupported features (#2065) 2022-12-02 11:36:10 -06:00
bruce-riley bca681cddb
Client: Use testnet key for terra2 (#2040)
Change-Id: Icb91807bd3b9c38407246a3ce6df6180f4f87924
2022-12-01 08:07:34 -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
Josh Siegel 3413f09b8f WH-1921: stub out btc chain @ Closes #1921 2022-11-15 14:45:55 -06:00
bruce-riley fd832ca0fc
Client/js: Remove references to Ropsten (#1928) 2022-11-15 12:59:07 -06:00
Paul Noel fba7042657
clients/js: update Injective packages (#1926) 2022-11-15 12:26:34 -05:00
Kevin Peters b0a9218bd2 clients/js: Updated wormhole sdk, solana wasm changes 2022-11-14 17:46:17 -05:00
Kevin Peters 41059a5dd4 clients/js: injective execute msg action fix 2022-11-09 11:44:42 -05:00
kev1n-peters 8d23de5fe3
clients/js: parseCodeAddress should handle CosmWasm chains (#1862) 2022-11-08 08:31:01 -06:00
Csongor Kiss 8a4a49983e clients/js: add aptos network info 2022-11-02 14:29:57 -04:00
Bruce Riley a974bf762e client/js: algorand submit fix 2022-11-01 14:42:09 -04:00
Evan Gray cb7056d32e clients/js: bump injective version 2022-11-01 14:30:46 -04:00
Bruce Riley 43f2ecfeab client/js: Fix emitter lookup for cosmwasm
Change-Id: Ib066b21f3c73e3165015d5eddf6b224c26d76cf1
2022-10-27 16:12:33 -04:00
Evan Gray 2fafa631a2 clients/js: npm audit fix --force 2022-10-26 16:16:54 -04:00
Evan Gray 41fb6ba756 clients/js: sdk 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 b58c75de8f worm: speed up startup by loading deps on demand
goes from ~3s to ~300ms, so 10x improvement
2022-10-21 19:56:23 +01:00
Csongor Kiss f39c5ac81b worm: make make make faster
pruning the node_modules directory instead of excluding the matches
means that node_modules is now never traversed in the first place,
making dependency resolution instantaneous (from ~800ms before)
2022-10-21 19:56:23 +01:00
bruce-riley 19149e653e
Script changes for acala upgrade (#1726)
* Script changes for acala upgrade

* Update package-lock
2022-10-21 13:52:21 -05:00
Evan Gray 6c6661f621 js: make packages comply with ci rule 2022-10-20 17:11:13 -05:00
Josh Siegel 9020ca6985 near/tooling: Fix up deployment tool 2022-10-19 06:33:14 -05:00
Csongor Kiss c289bd9f57 worm: add command to derive aptos wrapped address 2022-10-18 01:19:13 -04:00
Csongor Kiss 1d4ab73d9d aptos: testnet redeploy (new addresses) 2022-10-18 01:19:13 -04:00
Csongor Kiss ee8e4b61ed aptos: unify deployment script for all networks 2022-10-17 16:39:34 +01:00
Csongor Kiss cb9915a75f aptos: testnet redeploy 2022-10-17 16:39:34 +01:00
Csongor Kiss bbe2939b90 aptos: fix entry functions
these can't return values, but the compiler doesn't tell you 🤫
2022-10-17 16:39:34 +01:00
Csongor Kiss 12b855f3b1 tilt: add aptos 2022-10-15 15:17:36 +01:00
Kevin Peters afb7a2e502 clients/js: EVM query contract refactor
Use the generated interface functions instead of defining our own
2022-10-15 09:50:18 -04:00
Csongor Kiss 2238f64cfb aptos/core: allow init with multiple guardians
this requires a breaking change to `init` so we have to deprecate the
old one.
2022-10-14 12:42:44 -05:00
Csongor Kiss 85a1dcd6fd worm: add aptos commands 2022-10-14 12:42:44 -05:00
Csongor Kiss b37efa4c1b clients/js: Add command to start evm validator (ganache)
commit-id:42791bce
2022-10-14 18:01:28 +01:00
Csongor Kiss c4f4652f35 clients/js: Add command to start aptos validator
commit-id:ab3ef326
2022-10-14 18:01:28 +01:00
Csongor Kiss de6c04f996 clients/js: Add command to update the client
Also add support for a json-based config file

commit-id:c734f935
2022-10-14 16:17:33 +01:00
Csongor Kiss a9c3abf436 clients/js: make arg parser strict
Now it shows help when passing incorrect arguments

why is this not the default?

commit-id:f86cdbd5
2022-10-14 16:17:33 +01:00
Csongor Kiss 73e6d6865f clients/js: right-pad coin symbol/name
previously these were left-padded
2022-10-14 16:16:54 +01:00
Csongor Kiss 68dedf34e4 clients/js: fix eccrypto insanity 2022-10-14 16:16:54 +01:00
Paul Noel c34022ee6a
clients/js: xpla client code (#1698)
* clients/js: xpla client code

* Tweak parameters

Change-Id: I693249ed0bf152a4414d2e0cabea842802110a89

* Testnet RPC is wrong in the client

Change-Id: I6c8a43e4fde301a94e6ec3b2199ef9f6cabf0b45

Co-authored-by: Bruce Riley <briley@jumptrading.com>
2022-10-11 14:30:09 -05:00
bruce-riley 09fefb30a9
Update client/js for Near testnet (#1677) 2022-10-07 08:35:28 -05:00
Paul Noel 66700359f7
clients/js - initial injective commit (#1447)
* clients/js - initial injective commit

* clients/js - upgrading the ethers package

* clients/js: fix packages
2022-10-06 14:39:34 -05:00
Paul Noel 066a2a56aa
clients/js: upgrade to latest wormhole-sdk (#1675)
* clients/js: upgrade to latest wormhole-sdk

* scripts: account for secp256k1 log msg
2022-10-06 11:24:43 -04: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
Evan Gray 860f91b2b8 clients/js: fix terra fee 2022-09-30 09:08:33 -04:00
Bruce Riley 87d146a261 Deploy contracts to testnet 2022-09-29 22:38:27 -04: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
Evan Gray 239b22e3a8 sdk/js: add injective 2022-09-20 17:14:05 +00:00
Josh Siegel 5d71e619c1 algo/builds: algorand mainnet builds 2022-09-20 10:37:59 -05:00
Evan Gray 64952c8d85 clients/js: update evm query 2022-09-15 16:53:16 -04:00
Kevin Peters 9d477e0585 ethereum: EVM fork protection
Added a `uint256 evmChainId` state variable to the Core, Token and NFT Bridge
contracts. `evmChainId` is compared to `block.chainid` in the `chainId`
function. When they don't match, a "bad fork" Chain ID is returned,
otherwise the Wormhole Chain ID is returned.
2022-09-09 13:16:27 -05:00
Bruce Riley 22b298da8e Address in client is also wrong
Change-Id: I05a4450f56139894e737550b1ab14133e7f0ff67
2022-09-07 10:42:43 -05:00
bruce-riley b357ad7061
Script to generate change registration governance (#1508)
* Script to generate change registration governance

Change-Id: If99e78b031dcd4049a9ee40b09914eeb93e7518a

* Rework from code review

Change-Id: I93cf3166c1ab961add2c524084de1981a44b194e

* Change chain_id to chain-id

Change-Id: Iae6f9854a64d8559d03c56949d03043a94dbf7f6
2022-09-06 08:20:51 -05: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 4fe9841810 near: initial commit 2022-08-24 15:11:05 -04:00
Paul Noel 639bd3c682
clients/js - initial algorand commit (#1445)
* clients/js - initial algorand commit

* clients/js: fix merge issue
2022-08-22 09:39:39 -05:00
Paul Noel bf45b02c0b
clients/js - initial near commit (#1442) 2022-08-19 10:29:57 -05:00
Paul Noel 338e6f2648 clients/js: formatting only change (prettier)
Change-Id: I0b8805e0a577f0ef8757a5468c43fcb1083c0825
2022-08-18 16:50:06 +00:00
Paul Noel a6f75f1aef clients/js: don't do npm install in Makefile
Change-Id: If0374d98a753753ce6559cb7392201b69e056099
2022-08-18 16:50:06 +00: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
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
Josh Siegel caeea358d8 Stub out injective, osmosis, sui, and aptos 2022-07-15 10:45:30 -04:00
Csongor Kiss e8620ccea9 clients/js: Dump payload in case of parse failure 2022-07-05 19:24:58 +01:00
Csongor Kiss 3b6292af29 clients/js: touch up README a little
commit-id:429c7d93
2022-07-05 19:24:58 +01:00
Csongor Kiss b5997a10f0 scripts/devnet-consts: use native format for addresses
commit-id:c8c78ae8
2022-07-05 19:24:58 +01:00
Csongor Kiss 3a182ec6f6 CI: test CLI parser
commit-id:5f865212
2022-07-05 19:24:58 +01:00
Csongor Kiss fa3cec16f6 clients/js: Add support for NFT bridge transfers
commit-id:6b11415c
2022-07-05 19:24:58 +01:00
Csongor Kiss 465916c3f8 clients/js: Add support for AttestMeta
commit-id:67ad91cc
2022-07-05 19:24:58 +01:00
Csongor Kiss 1b4c97cd67 clients/js: Add support for parsing payload3 + test parser
commit-id:d9fb5d95
2022-07-05 19:24:58 +01:00
Csongor Kiss 33fce26f35 clients/js: Add support for parsing token bridge transfers
commit-id:00a4fb9e
2022-07-05 19:24:58 +01:00
Csongor Kiss 96560a98f8 clients/js: Make address handling nicer
commit-id:1d3ce65d
2022-07-05 19:24:58 +01:00
Csongor Kiss 9a42aacf0f clients/js: add command to return all evm chains
Also add an option to 'evm info' to return the implementation only. This
is an optimisation to make this query faster when we don't care about
the rest
2022-06-30 13:57:02 +01:00
Csongor Kiss 4471712b0e clients/js: fix acala and karura RPC 2022-06-30 13:57:02 +01:00
Csongor Kiss c453f4cf6d evm: Make finality a state variable 2022-06-28 21:31:23 +01:00
Csongor Kiss 3c6e1b07d6 clients/js: Add command to hijack a mainnet fork + misc utilities
* Add command to update evm storage slot
* Add command to ecrecover
* Add command to print contract addresses
* Add command to print RPC urls
* Add command to query on-chain state of EVM contracts
* Print digest in parse VAA command
2022-06-27 19:19:16 +01:00
Csongor Kiss e65176d492 clients/js: Use ankr RPC instead of infura 2022-06-27 19:19:16 +01:00
Csongor Kiss fe198be748 Fix truffle-config and 1conf patch 2022-06-22 16:56:17 -04:00
Evan Gray e6bbf58743 bridge_ui: terra2 mainnet beta 2022-06-22 12:13:17 -04:00
Evan Gray 2144d68a09 clients/js: add terra2 support 2022-06-21 17:30:56 -04:00
Evan Gray db0fc219aa cosmwasm: terra2 support
Co-authored-by: Csongor Kiss <ckiss@jumptrading.com>
2022-06-21 10:03:57 -04:00
bruce-riley 24c5b17267
Neon to testnet (#1262)
* WIP: neon

* Watcher support

* Use eth_getLogs for Neon

* bridge_ui: update sdk version

* Setting WETH address for Neon

* Portal bridge support for WNEON

* relayer: update sdk

Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-06-14 10:22:49 -04:00
Evan Gray c47aa300b7 bridge_ui: add acala 2022-06-06 10:47:41 -04:00
Bruce Riley dcce155f43 Acala mainnet deploy 2022-06-03 14:44:22 -04:00
Bruce Riley f9697f7c58 Minor cli tweaks 2022-05-18 13:55:05 -04:00
bruce-riley 018908a420
Klaytn mainnet deploy (#1185)
* Klaytn mainnet deploy
2022-05-16 10:06:17 -04:00
Bruce Riley d266438654 Celo mainnet deploy changes 2022-05-13 13:11:28 -04:00
bruce-riley 87e2e4cf64
CLI changes for klatyn, celo and moonbeam (#1159)
* CLI changes for klatyn, celo and moonbeam

* Replacing SDK dependency

* Same for the lock file

* More package file stuff

* Pick up new SDK version
2022-05-10 13:05:43 -04:00
Csongor Kiss 1c006f9bed
cli: Refactor js cli to support all contracts + add improvements (#1100)
* cli: Refactor js cli to support all contracts + add improvements

* Fix path in Makefile

* Don't be strict

* Fix registration VAA deserialisation

* Add karura gas calculation logic

* cli: fix after sdk rebase

* cli: improve makefile

* cli: depend on @certusone/wormhole-sdk locally instead of importing relative paths

* cli: add polygon overrides

* client: update for devnet

* fix tx signing in solana cli

* client: alias network

Co-authored-by: Csongor Kiss <ckiss@jumptrading.com>
Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-05-05 20:51:24 -04:00
justinschuldt 2e1ee8ec20 terra-devnet init with multiple guardians 2022-04-12 20:37:52 -05:00
justinschuldt 0063f6ab69 clients/nft_bridge - minor usability improvements 2022-04-12 20:37:52 -05:00
justinschuldt c6d2d6983c clients/token_bridge - minor usage improvements 2022-04-12 20:37:52 -05:00
justinschuldt 5893e0c870 clients/token_bridge - allow multiple guardians when generating governance VAAs 2022-04-12 20:37:52 -05:00
Csongor Kiss 5a316207dd clients/solana: allow submitting VAAs to mainnet 2022-04-11 17:36:20 -04:00
bruce-riley 879670c0e5
Klaytn testnet support (#1038)
* Klaytn support for testnet

Change-Id: Id0647fd6c603ab298f860c2cae20481555467315

* token_bridge client changes

Change-Id: If49ba994a67041044bdec054f19e69b4cfc2785b

* Get rid of special handling

* More cleanup

* Need to add Klaytn to structs tests

* Update SDK version

* Add SDK version

* fix klaytn bridge chain id

Co-authored-by: Evan Gray <battledingo@gmail.com>
2022-04-04 18:11:03 -04:00
bruce-riley 014b3686fe
Don't require padding on addrs in bridge clients (#1041)
Change-Id: Id32bfb90ee20d1bccc6b860de028c0bdecfd8786
2022-03-31 09:03:26 -05:00
justinschuldt 8391c280dd add dev tooling for clients/eth
commit-id:f31250ef
2022-03-18 10:49:34 -05:00
bruce-riley b718225e45
Testnet support for Aurora (#947)
* Testnet support

* Upgrade contract for 1conf

* Formatting changes

Change-Id: Id06481d77d770a04eb200aadb82574e23cddcd36
2022-03-15 10:41:10 -04:00
Csongor Kiss 918a968703 clients: allow passing solana private key
Currently the typescript clients generate a fresh wallet and request
airdrop into them. This obviously only works on tiltnet and testnet.
Here we add an option to allow specifying a private key, which makes the
command work in mainnet.
2022-03-09 20:36:26 -05:00
Jonathan Claudius 6686d6aec8
Add stronger nonce/confidence parsing (#865)
* Add negative guards for nonce and confirmation number/level

* Fix copy pasta on nonce vs consistencyLevel

* Add more direct int parsing of args

* Remove redundant checks for upper/lower bounds on int parsing

Co-authored-by: claudijd <jclaudius@jumptrading.com>
2022-02-18 08:43:09 -05:00
Evan Gray fce0708e11 feat: use sdk in js client 2022-02-14 07:56:38 -05:00