|
|
3 jaren geleden | |
|---|---|---|
| .. | ||
| src | 983813d2f8 Use sdk getIxAuthorityPDA + format (#324) | 3 jaren geleden |
| .eslintrc.js | 1c6977ec96 add pyth multisig cli program (#276) | 3 jaren geleden |
| .gitignore | 1c6977ec96 add pyth multisig cli program (#276) | 3 jaren geleden |
| LICENSE | 1c6977ec96 add pyth multisig cli program (#276) | 3 jaren geleden |
| README.md | f3e17ad307 add ledger support (#277) | 3 jaren geleden |
| jest.config.js | 1c6977ec96 add pyth multisig cli program (#276) | 3 jaren geleden |
| package-lock.json | 29f53df71c add support to execute tx through squads ui (#322) | 3 jaren geleden |
| package.json | 29f53df71c add support to execute tx through squads ui (#322) | 3 jaren geleden |
| tsconfig.json | 1c6977ec96 add pyth multisig cli program (#276) | 3 jaren geleden |
This program allows you to create/execute a multisig transaction that includes an instruction from wormhole for cross-chain governance.
npm install
Note:
npm start -- create -c <CLUSTER> -v <VAULT_ADDRESS> -l -lda <LEDGER_DERIVATION_ACCOUNT> -ldc <LEDGER_DERIVATION_CHANGE> -w <WALLET_SECRET_KEY_FILEPATH> -p <PAYLOAD>
To use ledger with default derivation account and change:
npm start -- create -c devnet -v HezRVdwZmKpdKbksxFytKnHTQVztiTmL3GHdNadMFYui -l -p hello
To use ledger with custom derivation account and/or change:
npm start -- create -c devnet -v HezRVdwZmKpdKbksxFytKnHTQVztiTmL3GHdNadMFYui -l -lda 0 -p hello
npm start -- create -c devnet -v HezRVdwZmKpdKbksxFytKnHTQVztiTmL3GHdNadMFYui -l -lda 0 -ldc 1 -p hello
To use hot wallet :
npm start -- create -c devnet -v HezRVdwZmKpdKbksxFytKnHTQVztiTmL3GHdNadMFYui -w keys/key.json -p hello
npm start -- execute -c <CLUSTER> -v <VAULT_ADDRESS> -w <WALLET_SECRET_KEY_FILEPATH> -m <MESSAGE_SECRET_KEY_FILEPATH> -t <TX_ID> -u <RPC_URL>
To use ledger with default derivation account and change:
npm start -- execute -c devnet -v HezRVdwZmKpdKbksxFytKnHTQVztiTmL3GHdNadMFYui -l -m keys/message.json -t GSC8r7Qsi9pc698fckaQgzHufG6LqVq3vZijyu5KsXLh -u https://wormhole-v2-testnet-api.certus.one/
To use ledger with custom derivation account and/or change:
npm start -- execute -c devnet -v HezRVdwZmKpdKbksxFytKnHTQVztiTmL3GHdNadMFYui -l -lda 0 -m keys/message.json -t GSC8r7Qsi9pc698fckaQgzHufG6LqVq3vZijyu5KsXLh -u https://wormhole-v2-testnet-api.certus.one/
npm start -- execute -c devnet -v HezRVdwZmKpdKbksxFytKnHTQVztiTmL3GHdNadMFYui -l -lda 0 -ldc 1 -m keys/message.json -t GSC8r7Qsi9pc698fckaQgzHufG6LqVq3vZijyu5KsXLh -u https://wormhole-v2-testnet-api.certus.one/
Example:
npm start -- execute -c devnet -v HezRVdwZmKpdKbksxFytKnHTQVztiTmL3GHdNadMFYui -w keys/key.json -m keys/message.json -t GSC8r7Qsi9pc698fckaQgzHufG6LqVq3vZijyu5KsXLh -u https://wormhole-v2-testnet-api.certus.one/