/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit"; import { PERPETUALS_PROGRAM_ADDRESS } from "../programs"; export declare const TRANSFER_ADMIN_DISCRIMINATOR: Uint8Array; export declare function getTransferAdminDiscriminatorBytes(): ReadonlyUint8Array; export type TransferAdminInstruction = string, TAccountNewAdmin extends string | AccountMeta = string, TAccountPerpetuals extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdmin extends string ? WritableSignerAccount & AccountSignerMeta : TAccountAdmin, TAccountNewAdmin extends string ? ReadonlyAccount : TAccountNewAdmin, TAccountPerpetuals extends string ? WritableAccount : TAccountPerpetuals, ...TRemainingAccounts ]>; export type TransferAdminInstructionData = { discriminator: ReadonlyUint8Array; }; export type TransferAdminInstructionDataArgs = {}; export declare function getTransferAdminInstructionDataEncoder(): FixedSizeEncoder; export declare function getTransferAdminInstructionDataDecoder(): FixedSizeDecoder; export declare function getTransferAdminInstructionDataCodec(): FixedSizeCodec; export type TransferAdminInput = { admin: TransactionSigner; newAdmin: Address; perpetuals: Address; }; export declare function getTransferAdminInstruction(input: TransferAdminInput, config?: { programAddress?: TProgramAddress; }): TransferAdminInstruction; export type ParsedTransferAdminInstruction = { programAddress: Address; accounts: { admin: TAccountMetas[0]; newAdmin: TAccountMetas[1]; perpetuals: TAccountMetas[2]; }; data: TransferAdminInstructionData; }; export declare function parseTransferAdminInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedTransferAdminInstruction; //# sourceMappingURL=transferAdmin.d.ts.map