|
| 1 | +import { Program } from "@coral-xyz/anchor"; |
| 2 | +import NodeWallet from "@coral-xyz/anchor/dist/cjs/nodewallet"; |
| 3 | +import { Wallet } from "@coral-xyz/anchor/dist/cjs/provider"; |
| 4 | +import { TOKEN_PROGRAM_ID } from "@coral-xyz/anchor/dist/cjs/utils/token"; |
| 5 | +import { pythOracleProgram } from "@pythnetwork/client"; |
| 6 | +import { |
| 7 | + PythCluster, |
| 8 | + getPythClusterApiUrl, |
| 9 | + getPythProgramKeyForCluster, |
| 10 | +} from "@pythnetwork/client/lib/cluster"; |
| 11 | +import { |
| 12 | + createTransferInstruction, |
| 13 | + getAssociatedTokenAddress, |
| 14 | + getMint, |
| 15 | +} from "@solana/spl-token"; |
1 | 16 | import {
|
| 17 | + AccountMeta, |
| 18 | + Connection, |
2 | 19 | Keypair,
|
| 20 | + LAMPORTS_PER_SOL, |
3 | 21 | PublicKey,
|
4 |
| - TransactionInstruction, |
5 |
| - SYSVAR_RENT_PUBKEY, |
6 | 22 | SYSVAR_CLOCK_PUBKEY,
|
7 |
| - AccountMeta, |
| 23 | + SYSVAR_RENT_PUBKEY, |
8 | 24 | StakeProgram,
|
9 | 25 | SystemProgram,
|
10 |
| - LAMPORTS_PER_SOL, |
11 |
| - Connection, |
| 26 | + TransactionInstruction, |
12 | 27 | } from "@solana/web3.js";
|
| 28 | +import SquadsMesh from "@sqds/mesh"; |
13 | 29 | import { program } from "commander";
|
14 |
| -import { |
15 |
| - getPythProgramKeyForCluster, |
16 |
| - PythCluster, |
17 |
| -} from "@pythnetwork/client/lib/cluster"; |
18 |
| -import { getPythClusterApiUrl } from "@pythnetwork/client/lib/cluster"; |
19 |
| -import { AnchorProvider, Program } from "@coral-xyz/anchor"; |
20 | 30 | import fs from "fs";
|
21 |
| -import SquadsMesh from "@sqds/mesh"; |
22 |
| -import NodeWallet from "@coral-xyz/anchor/dist/cjs/nodewallet"; |
23 | 31 | import {
|
24 | 32 | BPF_UPGRADABLE_LOADER,
|
25 |
| - getMultisigCluster, |
26 |
| - getProposalInstructions, |
27 | 33 | MultisigParser,
|
28 |
| - PROGRAM_AUTHORITY_ESCROW, |
29 | 34 | MultisigVault,
|
| 35 | + PROGRAM_AUTHORITY_ESCROW, |
| 36 | + getMultisigCluster, |
| 37 | + getProposalInstructions, |
30 | 38 | } from "xc_admin_common";
|
31 |
| -import { pythOracleProgram } from "@pythnetwork/client"; |
32 |
| -import { Wallet } from "@coral-xyz/anchor/dist/cjs/provider"; |
33 | 39 | import { LedgerNodeWallet } from "./ledger";
|
34 |
| -import { |
35 |
| - createTransferInstruction, |
36 |
| - getAssociatedTokenAddress, |
37 |
| - getMint, |
38 |
| -} from "@solana/spl-token"; |
39 |
| -import { TOKEN_PROGRAM_ID } from "@coral-xyz/anchor/dist/cjs/utils/token"; |
40 | 40 |
|
41 | 41 | export async function loadHotWalletOrLedger(
|
42 | 42 | wallet: string,
|
|
0 commit comments