Commit Graph

2758 Commits

Author SHA1 Message Date
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
Conor Patrick ea663c1be4 rename wormhole_chain to wormchain 2022-10-24 17:59:52 -04:00
bruce-riley ed41a9a4ea
node: update solana watcher to use new solana-go version (#1760)
* node: remove the replace directive for solana-go

This commit that necessitated the fork:

    25b9f3025b

Has been merged upstream:

    9a01ac4f45

We need to pull in the latest solana-go to get support for MaxSupportedTransactionVersion.

* node: upgrade solana-go

This is the output from:

    go get -u github.com/gagliardetto/solana-go

It is required for the MaxSupportedTransactionVersion from:

    6ead48adf2

Co-authored-by: Jeff Schroeder <jeffschroeder@computer.org>
2022-10-24 12:22:56 -05:00
Hendrik Hofstadt e45e04bb09
node: move wormchain watcher (#1783)
Change-Id: If26681fe1a19396032947d22587d4c899153849c
2022-10-24 18:01:32 +02:00
jumpsiegel 6f38e42119
dev.v2: Modernize algorand watcher and improve logging (#1766) 2022-10-24 09:08:05 -05: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
Evan Gray 32f0159319 ci: unscoped npm package check 2022-10-20 17:11:13 -05:00
Paul Noel 40279fe668
node/cmd - refactor (#1762)
* node/cmd - refactor

* node/cmd - add logging

* node/cmd - refactor

* node/cmd - add logging

* node/cmd: address inspection comments
2022-10-20 11:43:43 -05:00
Josh Siegel 80e39a8128 aptos/watcher_fix: make it just try again instead of restarting the watcher 2022-10-20 07:16:49 -05:00
ckeun 557a32b8f4
node: Added gov gossip support to p2p (#1755)
* node: Added gov gossip support to p2p

* node: Added nil parms for spy & guardian
2022-10-19 22:32:05 -05:00
Conor Patrick b7bcf16fb8
wormchain: Update cosmos 0.45.9 (#1763)
* wormchain: update cosmos-sdk v0.45.9

* wormchain: remove hardcoded tracing for prod
2022-10-19 18:58:49 -07:00
bruce-riley c31776c345
node: fix nil reference in evm watcher (#1758) 2022-10-19 10:20:46 -05:00
Hendrik Hofstadt 206d10cacf wormchain: remove tokenbridge
Change-Id: I582f55143cff793a1b90e51a81c034705a9a3e18
2022-10-19 09:00:42 -05:00
Josh Siegel a1598b2769 coinspect_tests: adjust comments 2022-10-19 06:38:19 -05:00
Joaquin L. Pereyra fd94c649b0 add: new and adversarial tests
tests added. some try basic functionality which was understed. others
try to mimic what an attacker would try to do.

this is a baseline from which to create more adversarial tests and
improve the testing suite of the contracts.

tests/README.md includes instructions on how to run the new tests.
2022-10-19 06:38:19 -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 4f40caf3f6 aptos/token_bridge: max 8 decimals for wrapped coins
u64 is too smol
2022-10-18 01:19:13 -04:00
Csongor Kiss 98f5260918 aptos/token_bridge: don't take wormhole_fee as arg in entry 2022-10-18 01:19:13 -04:00
Csongor Kiss 500654cf02 scripts: uppercase digest in governance generator
the injection command prints out in this format, so it's easier to read
for guardians this way
2022-10-17 23:35:17 -04:00
bruce-riley 4e3b24cfa8
Test contract to publish wormhole messages for testing the guardian watcher (#1696) 2022-10-17 13:28:17 -05:00
Hendrik Hofstadt 4a2fbd923f
tilt: shorten terra block time (#1744)
Change-Id: I35cce03ae6e82b522482f2c1c40ccb6819eb51f6
2022-10-17 18:13:19 +02:00
Csongor Kiss bdd824cfaa aptos: rebuild & publish docker image 2022-10-17 16:39:34 +01:00
Csongor Kiss da50ceb17e CI: move num_guardians docker ARG down
to improve caching
2022-10-17 16:39:34 +01: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 c775cd974d aptos/token_bridge: add method to register coin on complete transfer 2022-10-17 16:39:34 +01:00
Csongor Kiss 3eaa43cad8 aptos/token_bridge: remove governance chain from state
this was unused, the governance info is stored in the core contract anyway
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 b1456b9eb1 aptos/core: remove emitter upgrade code
we'll redeploy the testnet contract anyway, this is no longer necessary
2022-10-17 16:39:34 +01:00
Hendrik Hofstadt a6d6586d39 node: minor refactoring of aptos watcher
Change-Id: Ideac6ef7e26d9d7272b4cda32a80cf007d62a8a5
2022-10-17 07:30:35 -05:00
Jonathan Claudius bc6b5af095
governor: raise limits on moonbeam (#1739) 2022-10-16 22:15:42 -04:00
claudijd 89c2b252c7 Revert limit decrease 2022-10-16 18:39:54 -04:00
bruce-riley 7d53c1814f
node: governor updates for Aptos (#1740)
* node: governor updates for Aptos

* Tweak governor limits for aptos
2022-10-16 17:20:29 -05:00
Csongor Kiss da8a972b92 watcher: aptos testnet emitter is now 1 2022-10-16 20:29:09 +01:00
Csongor Kiss 4f9a491645 aptos/core: allow upgrading emitter capability 2022-10-16 20:29:09 +01:00
Hendrik Hofstadt a1fcdb6ac1
wormchain: fix priv validator state blocking startup (#1716)
Change-Id: I2b5018d7b16653ce825dff8b3045364cb133b602
2022-10-15 18:15:25 +02:00
Csongor Kiss bf556f0c7a sdk/js: propagate exception in getIsTransferCompletedTerra 2022-10-15 15:17:36 +01:00
Bruce Riley 9257443a4f node: aptos initial governor config
Change-Id: I9c1d5dfbc80c30baf3c51aeda325df235fb72915
2022-10-15 15:17:36 +01:00
Josh Siegel 6b670e3abf aptos/watcher: allow it to run in mainnet 2022-10-15 15:17:36 +01:00
Josh Siegel 2a31454d29 aptos/watcher: Update comments and errors 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
Csongor Kiss 3877f6f3c3 tilt: register aptos on other chains 2022-10-15 15:17:36 +01:00
Csongor Kiss 12b855f3b1 tilt: add aptos 2022-10-15 15:17:36 +01:00