Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions governance/xc_admin/packages/xc_admin_cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export async function loadHotWalletOrLedger(
}
}

const mutlisigCommand = (name: string, description: string) =>
const multisigCommand = (name: string, description: string) =>
program
.command(name)
.description(description)
Expand All @@ -77,7 +77,7 @@ program
.description("CLI for interacting with Pyth's xc_admin")
.version("0.1.0");

mutlisigCommand(
multisigCommand(
"accept-authority",
"Accept authority from the program authority escrow"
)
Expand Down Expand Up @@ -155,7 +155,7 @@ mutlisigCommand(
);
});

mutlisigCommand("upgrade-program", "Upgrade a program from a buffer")
multisigCommand("upgrade-program", "Upgrade a program from a buffer")
.requiredOption(
"-p, --program-id <pubkey>",
"program that you want to upgrade"
Expand Down Expand Up @@ -218,7 +218,7 @@ mutlisigCommand("upgrade-program", "Upgrade a program from a buffer")
);
});

mutlisigCommand(
multisigCommand(
"init-price",
"Init price (useful for changing the exponent), only to be used on unused price feeds"
)
Expand Down Expand Up @@ -287,7 +287,7 @@ program
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(
"-t, --transaction <pubkey>",
"address of the outstanding transaction"
Expand All @@ -305,7 +305,7 @@ mutlisigCommand("approve", "Approve a transaction sitting in the multisig")
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("-d, --destination <pubkey>", "destination address")
.option(
Expand Down Expand Up @@ -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
*/
mutlisigCommand("activate", "Activate a transaction sitting in the multisig")
multisigCommand("activate", "Activate a transaction sitting in the multisig")
.requiredOption(
"-t, --transaction <pubkey>",
"address of the draft transaction"
Expand Down