This commit is contained in:
guibescos 2023-03-14 22:48:36 -05:00 committed by GitHub
parent a5ddf84eb7
commit eaf5f45212
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -53,7 +53,7 @@ export async function loadHotWalletOrLedger(
} }
} }
const mutlisigCommand = (name: string, description: string) => const multisigCommand = (name: string, description: string) =>
program program
.command(name) .command(name)
.description(description) .description(description)
@ -77,7 +77,7 @@ program
.description("CLI for interacting with Pyth's xc_admin") .description("CLI for interacting with Pyth's xc_admin")
.version("0.1.0"); .version("0.1.0");
mutlisigCommand( multisigCommand(
"accept-authority", "accept-authority",
"Accept authority from the program authority escrow" "Accept authority from the program authority escrow"
) )
@ -155,7 +155,7 @@ mutlisigCommand(
); );
}); });
mutlisigCommand("upgrade-program", "Upgrade a program from a buffer") multisigCommand("upgrade-program", "Upgrade a program from a buffer")
.requiredOption( .requiredOption(
"-p, --program-id <pubkey>", "-p, --program-id <pubkey>",
"program that you want to upgrade" "program that you want to upgrade"
@ -218,7 +218,7 @@ mutlisigCommand("upgrade-program", "Upgrade a program from a buffer")
); );
}); });
mutlisigCommand( multisigCommand(
"init-price", "init-price",
"Init price (useful for changing the exponent), only to be used on unused price feeds" "Init price (useful for changing the exponent), only to be used on unused price feeds"
) )
@ -287,7 +287,7 @@ program
console.log(JSON.stringify(parsed, null, 2)); console.log(JSON.stringify(parsed, null, 2));
}); });
mutlisigCommand("approve", "Approve a transaction sitting in the multisig") multisigCommand("approve", "Approve a transaction sitting in the multisig")
.requiredOption( .requiredOption(
"-t, --transaction <pubkey>", "-t, --transaction <pubkey>",
"address of the outstanding transaction" "address of the outstanding transaction"
@ -305,7 +305,7 @@ mutlisigCommand("approve", "Approve a transaction sitting in the multisig")
await squad.approveTransaction(transaction); await squad.approveTransaction(transaction);
}); });
mutlisigCommand("propose-token-transfer", "Propose token transfer") multisigCommand("propose-token-transfer", "Propose token transfer")
.requiredOption("-a, --amount <number>", "amount in dollars") .requiredOption("-a, --amount <number>", "amount in dollars")
.requiredOption("-d, --destination <pubkey>", "destination address") .requiredOption("-d, --destination <pubkey>", "destination address")
.option( .option(
@ -363,7 +363,7 @@ mutlisigCommand("propose-token-transfer", "Propose token transfer")
/** /**
* Activate proposal, mostly useful for cleaning up draft proposals that happen when the browser wallet fails to send all transactions succesfully * Activate proposal, mostly useful for cleaning up draft proposals that happen when the browser wallet fails to send all transactions succesfully
*/ */
mutlisigCommand("activate", "Activate a transaction sitting in the multisig") multisigCommand("activate", "Activate a transaction sitting in the multisig")
.requiredOption( .requiredOption(
"-t, --transaction <pubkey>", "-t, --transaction <pubkey>",
"address of the draft transaction" "address of the draft transaction"