diff --git a/clients/js/README.md b/clients/js/README.md
index 0749f509d..d24dfae5c 100644
--- a/clients/js/README.md
+++ b/clients/js/README.md
@@ -84,30 +84,6 @@ Options:
edit-vaa
```sh
-worm edit-vaa
-
-Commands:
- worm edit-vaa init-token-bridge Init token bridge contract
- worm edit-vaa init-wormhole Init Wormhole core contract
- worm edit-vaa deploy Deploy an Aptos package
- worm edit-vaa deploy-resource Deploy an Aptos package using a
- resource account
- worm edit-vaa send-example-message Send example message
-
- worm edit-vaa derive-resource-account Derive resource account address
-
- worm edit-vaa derive-wrapped-address Derive wrapped coin type
-
- worm edit-vaa hash-contracts Hash contract bytecodes for upgrade
-
- worm edit-vaa upgrade Perform upgrade after VAA has been
- submitted
- worm edit-vaa migrate Perform migration after contract
- upgrade
- worm edit-vaa faucet Request money from the faucet for a
- given account
- worm edit-vaa start-validator Start a local aptos validator
-
Options:
--help Show help [boolean]
--version Show version number [boolean]
@@ -141,60 +117,22 @@ Options:
worm evm
Commands:
- worm evm init-token-bridge Init token bridge contract
- worm evm init-wormhole Init Wormhole core contract
- worm evm deploy Deploy an Aptos package
- worm evm deploy-resource Deploy an Aptos package using a
- resource account
- worm evm send-example-message Send example message
- worm evm derive-resource-account Derive resource account address
-
- worm evm derive-wrapped-address Derive wrapped coin type
-
- worm evm hash-contracts Hash contract bytecodes for upgrade
- worm evm upgrade Perform upgrade after VAA has been
- submitted
- worm evm migrate Perform migration after contract
- upgrade
- worm evm faucet Request money from the faucet for a
- given account
- worm evm start-validator Start a local aptos validator
- worm evm address-from-secret Compute a 20 byte eth address from a
- 32 byte private key
- worm evm storage-update Update a storage slot on an EVM fork
- during testing (anvil or hardhat)
- worm evm chains Return all EVM chains
- worm evm info Query info about the on-chain state
- of the contract
- worm evm hijack Override the guardian set of the
- core bridge contract during testing
- (anvil or hardhat)
- worm evm start-validator Start a local EVM validator
+ worm evm address-from-secret Compute a 20 byte eth address from a 32
+ byte private key
+ worm evm storage-update Update a storage slot on an EVM fork
+ during testing (anvil or hardhat)
+ worm evm chains Return all EVM chains
+ worm evm info Query info about the on-chain state of
+ the contract
+ worm evm hijack Override the guardian set of the core
+ bridge contract during testing (anvil
+ or hardhat)
+ worm evm start-validator Start a local EVM validator
Options:
- --help Show help [boolean]
- --version Show version number [boolean]
- -v, --vaa vaa in hex format [string] [required]
- -n, --network Network
- [required] [choices: "mainnet", "testnet", "devnet"]
- --guardian-set-index, --gsi guardian set index [number]
- --signatures, --sigs comma separated list of signatures [string]
- --wormscanurl, --wsu url to wormscan entry for the vaa that
- includes signatures [string]
- --wormscanfile, --wsf json file containing wormscan entry for the
- vaa that includes signatures [string]
- --emitter-chain-id, --ec emitter chain id to be used in the vaa
- [number]
- --emitter-address, --ea emitter address to be used in the vaa[string]
- --nonce, --no nonce to be used in the vaa [number]
- --sequence, --seq sequence number to be used in the vaa[string]
- --consistency-level, --cl consistency level to be used in the vaa
- [number]
- --timestamp, --ts timestamp to be used in the vaa in unix
- seconds [number]
- -p, --payload payload in hex format [string]
- --guardian-secret, --gs Guardian's secret key [string]
- --rpc RPC endpoint [string]
+ --help Show help [boolean]
+ --version Show version number [boolean]
+ --rpc RPC endpoint [string]
```
@@ -202,40 +140,9 @@ Options:
generate
```sh
-worm generate
+worm generate [command]
Commands:
- worm generate init-token-bridge Init token bridge contract
- worm generate init-wormhole Init Wormhole core contract
- worm generate deploy Deploy an Aptos package
- worm generate deploy-resource Deploy an Aptos package using a
- resource account
- worm generate send-example-message Send example message
-
- worm generate derive-resource-account Derive resource account address
-
- worm generate derive-wrapped-address Derive wrapped coin type
-
- worm generate hash-contracts Hash contract bytecodes for upgrade
-
- worm generate upgrade Perform upgrade after VAA has been
- submitted
- worm generate migrate Perform migration after contract
- upgrade
- worm generate faucet Request money from the faucet for a
- given account
- worm generate start-validator Start a local aptos validator
- worm generate address-from-secret Compute a 20 byte eth address from a
- 32 byte private key
- worm generate storage-update Update a storage slot on an EVM fork
- during testing (anvil or hardhat)
- worm generate chains Return all EVM chains
- worm generate info Query info about the on-chain state
- of the contract
- worm generate hijack Override the guardian set of the
- core bridge contract during testing
- (anvil or hardhat)
- worm generate start-validator Start a local EVM validator
worm generate registration Generate registration VAA
worm generate upgrade Generate contract upgrade VAA
worm generate attestation Generate a token attestation VAA
@@ -244,30 +151,9 @@ Commands:
set-default-delivery-provider for the Wormhole Relayer contract
Options:
- --help Show help [boolean]
- --version Show version number [boolean]
- -v, --vaa vaa in hex format [string] [required]
- -n, --network Network
- [required] [choices: "mainnet", "testnet", "devnet"]
- --guardian-set-index, --gsi guardian set index [number]
- --signatures, --sigs comma separated list of signatures [string]
- --wormscanurl, --wsu url to wormscan entry for the vaa that
- includes signatures [string]
- --wormscanfile, --wsf json file containing wormscan entry for the
- vaa that includes signatures [string]
- --emitter-chain-id, --ec emitter chain id to be used in the vaa
- [number]
- --emitter-address, --ea emitter address to be used in the vaa[string]
- --nonce, --no nonce to be used in the vaa [number]
- --sequence, --seq sequence number to be used in the vaa[string]
- --consistency-level, --cl consistency level to be used in the vaa
- [number]
- --timestamp, --ts timestamp to be used in the vaa in unix
- seconds [number]
- -p, --payload payload in hex format [string]
- -g, --guardian-secret, --gs Guardians' secret keys (CSV)
- [string] [required]
- --rpc RPC endpoint [string]
+ --help Show help [boolean]
+ --version Show version number [boolean]
+ -g, --guardian-secret Guardians' secret keys (CSV) [string] [required]
```
@@ -275,44 +161,9 @@ Options:
info
```sh
-worm info
+worm info [command]
Commands:
- worm info init-token-bridge Init token bridge contract
- worm info init-wormhole Init Wormhole core contract
- worm info deploy Deploy an Aptos package
- worm info deploy-resource Deploy an Aptos package using a
- resource account
- worm info send-example-message Send example message
- worm info derive-resource-account Derive resource account address
-
- worm info derive-wrapped-address Derive wrapped coin type
-
- worm info hash-contracts Hash contract bytecodes for upgrade
- worm info upgrade Perform upgrade after VAA has been
- submitted
- worm info migrate Perform migration after contract
- upgrade
- worm info faucet Request money from the faucet for a
- given account
- worm info start-validator Start a local aptos validator
- worm info address-from-secret Compute a 20 byte eth address from a
- 32 byte private key
- worm info storage-update Update a storage slot on an EVM fork
- during testing (anvil or hardhat)
- worm info chains Return all EVM chains
- worm info info Query info about the on-chain state
- of the contract
- worm info hijack Override the guardian set of the
- core bridge contract during testing
- (anvil or hardhat)
- worm info start-validator Start a local EVM validator
- worm info registration Generate registration VAA
- worm info upgrade Generate contract upgrade VAA
- worm info attestation Generate a token attestation VAA
- worm info recover-chain-id Generate a recover chain ID VAA
- worm info set-default-delivery-provider Sets the default delivery provider
- for the Wormhole Relayer contract
worm info chain-id Print the wormhole chain ID integer
associated with the specified chain
name
@@ -332,30 +183,8 @@ Commands:
address.
Options:
- --help Show help [boolean]
- --version Show version number [boolean]
- -v, --vaa vaa in hex format [string] [required]
- -n, --network Network
- [required] [choices: "mainnet", "testnet", "devnet"]
- --guardian-set-index, --gsi guardian set index [number]
- --signatures, --sigs comma separated list of signatures [string]
- --wormscanurl, --wsu url to wormscan entry for the vaa that
- includes signatures [string]
- --wormscanfile, --wsf json file containing wormscan entry for the
- vaa that includes signatures [string]
- --emitter-chain-id, --ec emitter chain id to be used in the vaa
- [number]
- --emitter-address, --ea emitter address to be used in the vaa[string]
- --nonce, --no nonce to be used in the vaa [number]
- --sequence, --seq sequence number to be used in the vaa[string]
- --consistency-level, --cl consistency level to be used in the vaa
- [number]
- --timestamp, --ts timestamp to be used in the vaa in unix
- seconds [number]
- -p, --payload payload in hex format [string]
- -g, --guardian-secret, --gs Guardians' secret keys (CSV)
- [string] [required]
- --rpc RPC endpoint [string]
+ --help Show help [boolean]
+ --version Show version number [boolean]
```
@@ -363,99 +192,24 @@ Options:
near
```sh
-worm near
+worm near [command]
Commands:
- worm near init-token-bridge Init token bridge contract
- worm near init-wormhole Init Wormhole core contract
- worm near deploy Deploy an Aptos package
- worm near deploy-resource Deploy an Aptos package using a
- resource account
- worm near send-example-message Send example message
- worm near derive-resource-account Derive resource account address
-
- worm near derive-wrapped-address Derive wrapped coin type
-
- worm near hash-contracts Hash contract bytecodes for upgrade
- worm near upgrade Perform upgrade after VAA has been
- submitted
- worm near migrate Perform migration after contract
- upgrade
- worm near faucet Request money from the faucet for a
- given account
- worm near start-validator Start a local aptos validator
- worm near address-from-secret Compute a 20 byte eth address from a
- 32 byte private key
- worm near storage-update Update a storage slot on an EVM fork
- during testing (anvil or hardhat)
- worm near chains Return all EVM chains
- worm near info Query info about the on-chain state
- of the contract
- worm near hijack Override the guardian set of the
- core bridge contract during testing
- (anvil or hardhat)
- worm near start-validator Start a local EVM validator
- worm near registration Generate registration VAA
- worm near upgrade Generate contract upgrade VAA
- worm near attestation Generate a token attestation VAA
- worm near recover-chain-id Generate a recover chain ID VAA
- worm near set-default-delivery-provider Sets the default delivery provider
- for the Wormhole Relayer contract
- worm near chain-id Print the wormhole chain ID integer
- associated with the specified chain
- name
- worm near contract Print contract address
-
- worm near emitter Print address in emitter address
- format
- worm near origin Print the origin chain and address
- of the asset that corresponds to the
- given chain and address.
- worm near registrations Print chain registrations
-
- worm near rpc Print RPC address
- worm near wrapped Print the wrapped address on the
- target chain that corresponds with
- the specified origin chain and
- address.
- worm near contract-update Submit a contract update using our
- specific APIs
- worm near deploy Submit a contract update using near
- APIs
+ worm near contract-update Submit a contract update using our specific
+ APIs
+ worm near deploy Submit a contract update using near APIs
Options:
- --help Show help [boolean]
- --version Show version number [boolean]
- -v, --vaa vaa in hex format [string] [required]
- -n, -n, --network Network
- [required] [choices: "mainnet", "testnet", "devnet", "mainnet", "testnet",
- "devnet"]
- --guardian-set-index, --gsi guardian set index [number]
- --signatures, --sigs comma separated list of signatures [string]
- --wormscanurl, --wsu url to wormscan entry for the vaa that
- includes signatures [string]
- --wormscanfile, --wsf json file containing wormscan entry for the
- vaa that includes signatures [string]
- --emitter-chain-id, --ec emitter chain id to be used in the vaa
- [number]
- --emitter-address, --ea emitter address to be used in the vaa[string]
- --nonce, --no nonce to be used in the vaa [number]
- --sequence, --seq sequence number to be used in the vaa[string]
- --consistency-level, --cl consistency level to be used in the vaa
- [number]
- --timestamp, --ts timestamp to be used in the vaa in unix
- seconds [number]
- -p, --payload payload in hex format [string]
- -g, --guardian-secret, --gs Guardians' secret keys (CSV)
- [string] [required]
- -r, --rpc Override default rpc endpoint url [string]
- -m, --module Module to query
- [choices: "Core", "NFTBridge", "TokenBridge"]
- --account Near deployment account [string] [required]
- --attach Attach some near [string]
- --target Near account to upgrade [string]
- --mnemonic Near private keys [string]
- --key Near private key [string]
+ --help Show help [boolean]
+ --version Show version number [boolean]
+ -m, --module Module to query [choices: "Core", "NFTBridge", "TokenBridge"]
+ -n, --network Network [required] [choices: "mainnet", "testnet", "devnet"]
+ --account Near deployment account [string] [required]
+ --attach Attach some near [string]
+ --target Near account to upgrade [string]
+ --mnemonic Near private keys [string]
+ --key Near private key [string]
+ -r, --rpc Override default rpc endpoint url [string]
```
@@ -463,103 +217,12 @@ Options:
parse
```sh
-worm parse
-
-Commands:
- worm parse init-token-bridge Init token bridge contract
- worm parse init-wormhole Init Wormhole core contract
- worm parse deploy Deploy an Aptos package
- worm parse deploy-resource Deploy an Aptos package using a
- resource account
- worm parse send-example-message Send example message
-
- worm parse derive-resource-account Derive resource account address
-
- worm parse derive-wrapped-address Derive wrapped coin type
-
- worm parse hash-contracts Hash contract bytecodes for upgrade
-
- worm parse upgrade Perform upgrade after VAA has been
- submitted
- worm parse migrate Perform migration after contract
- upgrade
- worm parse faucet Request money from the faucet for a
- given account
- worm parse start-validator Start a local aptos validator
- worm parse address-from-secret Compute a 20 byte eth address from a
- 32 byte private key
- worm parse storage-update Update a storage slot on an EVM fork
- during testing (anvil or hardhat)
- worm parse chains Return all EVM chains
- worm parse info Query info about the on-chain state
- of the contract
- worm parse hijack Override the guardian set of the
- core bridge contract during testing
- (anvil or hardhat)
- worm parse start-validator Start a local EVM validator
- worm parse registration Generate registration VAA
- worm parse upgrade Generate contract upgrade VAA
- worm parse attestation Generate a token attestation VAA
- worm parse recover-chain-id Generate a recover chain ID VAA
- worm parse Sets the default delivery provider
- set-default-delivery-provider for the Wormhole Relayer contract
- worm parse chain-id Print the wormhole chain ID integer
- associated with the specified chain
- name
- worm parse contract Print contract address
-
- worm parse emitter Print address in emitter address
- format
- worm parse origin Print the origin chain and address
- of the asset that corresponds to the
- given chain and address.
- worm parse registrations Print chain registrations
-
- worm parse rpc Print RPC address
- worm parse wrapped Print the wrapped address on the
- target chain that corresponds with
- the specified origin chain and
- address.
- worm parse contract-update Submit a contract update using our
- specific APIs
- worm parse deploy Submit a contract update using near
- APIs
-
Positionals:
- vaa, v vaa [string] [required]
+ vaa vaa [string]
Options:
- --help Show help [boolean]
- --version Show version number [boolean]
- -n, -n, --network Network
- [required] [choices: "mainnet", "testnet", "devnet", "mainnet", "testnet",
- "devnet"]
- --guardian-set-index, --gsi guardian set index [number]
- --signatures, --sigs comma separated list of signatures [string]
- --wormscanurl, --wsu url to wormscan entry for the vaa that
- includes signatures [string]
- --wormscanfile, --wsf json file containing wormscan entry for the
- vaa that includes signatures [string]
- --emitter-chain-id, --ec emitter chain id to be used in the vaa
- [number]
- --emitter-address, --ea emitter address to be used in the vaa[string]
- --nonce, --no nonce to be used in the vaa [number]
- --sequence, --seq sequence number to be used in the vaa[string]
- --consistency-level, --cl consistency level to be used in the vaa
- [number]
- --timestamp, --ts timestamp to be used in the vaa in unix
- seconds [number]
- -p, --payload payload in hex format [string]
- -g, --guardian-secret, --gs Guardians' secret keys (CSV)
- [string] [required]
- -r, --rpc Override default rpc endpoint url [string]
- -m, --module Module to query
- [choices: "Core", "NFTBridge", "TokenBridge"]
- --account Near deployment account [string] [required]
- --attach Attach some near [string]
- --target Near account to upgrade [string]
- --mnemonic Near private keys [string]
- --key Near private key [string]
+ --help Show help [boolean]
+ --version Show version number [boolean]
```
@@ -567,116 +230,13 @@ Options:
recover
```sh
-worm recover
-
-Commands:
- worm recover Init token bridge contract
- init-token-bridge
- worm recover Init Wormhole core contract
- init-wormhole
- worm recover deploy Deploy an Aptos package
-
- worm recover Deploy an Aptos package using a
- deploy-resource resource account
- worm recover Send example message
- send-example-message
- worm recover Derive resource account address
- derive-resource-account
- worm recover Derive wrapped coin type
- derive-wrapped-address
-
- worm recover Hash contract bytecodes for upgrade
- hash-contracts
- worm recover Perform upgrade after VAA has been
- upgrade submitted
- worm recover Perform migration after contract
- migrate upgrade
- worm recover faucet Request money from the faucet for a
- given account
- worm recover Start a local aptos validator
- start-validator
- worm recover Compute a 20 byte eth address from a
- address-from-secret 32 byte private key
- worm recover Update a storage slot on an EVM fork
- storage-update during testing (anvil or hardhat)
- worm recover chains Return all EVM chains
- worm recover info Query info about the on-chain state
- of the contract
- worm recover hijack Override the guardian set of the
- core bridge contract during testing
- (anvil or hardhat)
- worm recover Start a local EVM validator
- start-validator
- worm recover Generate registration VAA
- registration
- worm recover Generate contract upgrade VAA
- upgrade
- worm recover Generate a token attestation VAA
- attestation
- worm recover Generate a recover chain ID VAA
- recover-chain-id
- worm recover Sets the default delivery provider
- set-default-delivery-provider for the Wormhole Relayer contract
- worm recover Print the wormhole chain ID integer
- chain-id associated with the specified chain
- name
- worm recover Print contract address
- contract
- worm recover Print address in emitter address
- emitter format
- worm recover origin Print the origin chain and address
- of the asset that corresponds to the
- given chain and address.
- worm recover Print chain registrations
- registrations
- worm recover rpc Print RPC address
-
- worm recover Print the wrapped address on the
- wrapped target chain that corresponds with
- the specified origin chain and
- address.
- worm recover Submit a contract update using our
- contract-update specific APIs
- worm recover deploy Submit a contract update using near
- APIs
-
Positionals:
- vaa, v vaa [string] [required]
digest digest [string]
signature signature [string]
Options:
- --help Show help [boolean]
- --version Show version number [boolean]
- -n, -n, --network Network
- [required] [choices: "mainnet", "testnet", "devnet", "mainnet", "testnet",
- "devnet"]
- --guardian-set-index, --gsi guardian set index [number]
- --signatures, --sigs comma separated list of signatures [string]
- --wormscanurl, --wsu url to wormscan entry for the vaa that
- includes signatures [string]
- --wormscanfile, --wsf json file containing wormscan entry for the
- vaa that includes signatures [string]
- --emitter-chain-id, --ec emitter chain id to be used in the vaa
- [number]
- --emitter-address, --ea emitter address to be used in the vaa[string]
- --nonce, --no nonce to be used in the vaa [number]
- --sequence, --seq sequence number to be used in the vaa[string]
- --consistency-level, --cl consistency level to be used in the vaa
- [number]
- --timestamp, --ts timestamp to be used in the vaa in unix
- seconds [number]
- -p, --payload payload in hex format [string]
- -g, --guardian-secret, --gs Guardians' secret keys (CSV)
- [string] [required]
- -r, --rpc Override default rpc endpoint url [string]
- -m, --module Module to query
- [choices: "Core", "NFTBridge", "TokenBridge"]
- --account Near deployment account [string] [required]
- --attach Attach some near [string]
- --target Near account to upgrade [string]
- --mnemonic Near private keys [string]
- --key Near private key [string]
+ --help Show help [boolean]
+ --version Show version number [boolean]
```
@@ -684,115 +244,24 @@ Options:
submit
```sh
-worm submit
-
-Commands:
- worm submit init-token-bridge Init token bridge contract
- worm submit init-wormhole Init Wormhole core contract
- worm submit deploy Deploy an Aptos package
- worm submit deploy-resource Deploy an Aptos package using a
- resource account
- worm submit send-example-message Send example message
-
- worm submit Derive resource account address
- derive-resource-account
- worm submit