wormhole/aptos/scripts
Evan Gray a3c9de7d2d tilt: aptos startup dependency fix 2022-11-10 14:53:18 -05:00
..
README.md aptos: unify deployment script for all networks 2022-10-17 16:39:34 +01:00
constants.ts aptos: dockerfile + scripts + README 2022-10-14 12:42:44 -05:00
deploy aptos: testnet redeploy (new addresses) 2022-10-18 01:19:13 -04:00
generate_new_account.ts aptos: dockerfile + scripts + README 2022-10-14 12:42:44 -05:00
package-lock.json aptos: dockerfile + scripts + README 2022-10-14 12:42:44 -05:00
package.json js: make packages comply with ci rule 2022-10-20 17:11:13 -05:00
publish_wormhole_message.ts aptos: dockerfile + scripts + README 2022-10-14 12:42:44 -05:00
read.ts aptos: dockerfile + scripts + README 2022-10-14 12:42:44 -05:00
register_devnet tilt: add aptos 2022-10-15 15:17:36 +01:00
setNextSequence.ts aptos: dockerfile + scripts + README 2022-10-14 12:42:44 -05:00
tests.ts aptos: dockerfile + scripts + README 2022-10-14 12:42:44 -05:00
tsconfig.json aptos: dockerfile + scripts + README 2022-10-14 12:42:44 -05:00
upgrade aptos: testnet redeploy (new addresses) 2022-10-18 01:19:13 -04:00
wait_for_devnet tilt: aptos startup dependency fix 2022-11-10 14:53:18 -05:00
write.ts aptos: dockerfile + scripts + README 2022-10-14 12:42:44 -05:00
yarn.lock aptos: dockerfile + scripts + README 2022-10-14 12:42:44 -05:00

README.md

Install aptos CLI by running

cargo install --git https://github.com/aptos-labs/aptos-core.git aptos --rev 8ba12c5badeb68d8ff4625a32aceb9043398b16b

Install worm CLI by running

wormhole/clients/js $ make install

Development workflow

NOTE: this is in flux and likely will change often, so look back here every now and then.

First start the local aptos validator by running

worm start-validator aptos

Then build & deploy the contracts

./deploy devnet

At this point you can send messages by running

ts-node publish_wormhole_message.ts

Upgrades

Make a change to the contract, then rebuild and run the upgrade script:

./upgrade devnet Core

RPC

https://fullnode.devnet.aptoslabs.com/v1/spec#/operations/get_events_by_event_handle

curl --request GET --header 'Content-Type: application/json'  --url 'http://localhost:8080/v1/accounts/277fa055b6a73c42c0662d5236c65c864ccbf2d4abd21f174a30c8b786eab84b/events/0x277fa055b6a73c42c0662d5236c65c864ccbf2d4abd21f174a30c8b786eab84b::state::WormholeMessageHandle/event?start=0' | jq