/** * 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 Codec, type Decoder, type Encoder, 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"; import { type Fees, type FeesArgs, type Limit, type LimitArgs } from "../types"; export declare const ADD_POOL_DISCRIMINATOR: Uint8Array; export declare function getAddPoolDiscriminatorBytes(): ReadonlyUint8Array; export type AddPoolInstruction = string, TAccountTransferAuthority extends string | AccountMeta = string, TAccountPerpetuals extends string | AccountMeta = string, TAccountPool extends string | AccountMeta = string, TAccountLpTokenMint extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TAccountTokenProgram extends string | AccountMeta = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountRent extends string | AccountMeta = "SysvarRent111111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdmin extends string ? WritableSignerAccount & AccountSignerMeta : TAccountAdmin, TAccountTransferAuthority extends string ? ReadonlyAccount : TAccountTransferAuthority, TAccountPerpetuals extends string ? WritableAccount : TAccountPerpetuals, TAccountPool extends string ? WritableAccount : TAccountPool, TAccountLpTokenMint extends string ? WritableAccount : TAccountLpTokenMint, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, TAccountRent extends string ? ReadonlyAccount : TAccountRent, ...TRemainingAccounts ]>; export type AddPoolInstructionData = { discriminator: ReadonlyUint8Array; name: string; limit: Limit; fees: Fees; maxRequestExecutionSec: bigint; }; export type AddPoolInstructionDataArgs = { name: string; limit: LimitArgs; fees: FeesArgs; maxRequestExecutionSec: number | bigint; }; export declare function getAddPoolInstructionDataEncoder(): Encoder; export declare function getAddPoolInstructionDataDecoder(): Decoder; export declare function getAddPoolInstructionDataCodec(): Codec; export type AddPoolInput = { admin: TransactionSigner; transferAuthority: Address; perpetuals: Address; pool: Address; lpTokenMint: Address; systemProgram?: Address; tokenProgram?: Address; rent?: Address; name: AddPoolInstructionDataArgs["name"]; limit: AddPoolInstructionDataArgs["limit"]; fees: AddPoolInstructionDataArgs["fees"]; maxRequestExecutionSec: AddPoolInstructionDataArgs["maxRequestExecutionSec"]; }; export declare function getAddPoolInstruction(input: AddPoolInput, config?: { programAddress?: TProgramAddress; }): AddPoolInstruction; export type ParsedAddPoolInstruction = { programAddress: Address; accounts: { admin: TAccountMetas[0]; transferAuthority: TAccountMetas[1]; perpetuals: TAccountMetas[2]; pool: TAccountMetas[3]; lpTokenMint: TAccountMetas[4]; systemProgram: TAccountMetas[5]; tokenProgram: TAccountMetas[6]; rent: TAccountMetas[7]; }; data: AddPoolInstructionData; }; export declare function parseAddPoolInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedAddPoolInstruction; //# sourceMappingURL=addPool.d.ts.map