pyth-crosschain/governance/xc_admin/packages/xc_admin_cli
Ali Behjati ab7560ad35
feat(governance/xc_admin): add initial support for solana receiver (#1365)
* feat(governance/xc_admin): add initial support for solana receiver

This change adds Solana Receiver IDL to xc-admin to support parsing
them in the xc-admin Frontend. Also adds two CLI commands to request
and accept governance authority transfer.

* chore: address comments

* chore: bump version
2024-03-18 20:00:43 +01:00
..
src feat(governance/xc_admin): add initial support for solana receiver (#1365) 2024-03-18 20:00:43 +01:00
README.md Update readme (#939) 2023-07-04 14:49:38 +01:00
package.json feat(governance/xc_admin): add initial support for solana receiver (#1365) 2024-03-18 20:00:43 +01:00
tsconfig.json Expose pythnet message buffer idls (#865) 2023-06-09 14:10:28 +02:00

README.md

Pyth Cross-chain Governance Admin CLI Program

The goal of this CLI is interacting with the Pyth Squads multisig. It allows to :

  • Make proposals :
    • accept-authority
    • upgrade-program
    • init-price
    • propose-token-transfer
  • Interact with proposals :
    • approve
    • activate
  • Inspect proposals :
    • parse-transaction

Usage

Note:

  • When using with Ledger, please enable blind signing in the Solana app settings. TLDR: When you enable blind signing, you enable your device to approve a smart contract transaction, even though it hasnt been able to display full contract data to you. In other words, youre agreeing to trust, instead of verify, the transaction. You still have to manually approve each transactions.
  • Information about ledger derivation can be found here.

Example

To activate a transaction:

npm install
npx lerna run build --scope "xc_admin_common"  --include-dependencies
npx ts-node src/index.ts activate -t <TRANSACTION_HASH> -c <CLUSTER: [mainnet|devnet|testnet] -v <VAULT_ADDRESS> -w <WALLET_SECRET_KEY_FILEPATH: [filepath|"ledger"]> -lda <LEDGER_DERIVATION_ACCOUNT> -ldc <LEDGER_DERIVATION_CHANGE>