/** * 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 ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from "@solana/kit"; import { PERPETUALS_PROGRAM_ADDRESS } from "../programs"; import { type Fees, type FeesArgs, type Limit, type LimitArgs } from "../types"; export declare const SET_POOL_CONFIG_DISCRIMINATOR: Uint8Array; export declare function getSetPoolConfigDiscriminatorBytes(): ReadonlyUint8Array; export type SetPoolConfigInstruction = string, TAccountPerpetuals extends string | AccountMeta = string, TAccountPool extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdmin extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountAdmin, TAccountPerpetuals extends string ? ReadonlyAccount : TAccountPerpetuals, TAccountPool extends string ? WritableAccount : TAccountPool, ...TRemainingAccounts ]>; export type SetPoolConfigInstructionData = { discriminator: ReadonlyUint8Array; fees: Fees; limit: Limit; maxRequestExecutionSec: bigint; }; export type SetPoolConfigInstructionDataArgs = { fees: FeesArgs; limit: LimitArgs; maxRequestExecutionSec: number | bigint; }; export declare function getSetPoolConfigInstructionDataEncoder(): FixedSizeEncoder; export declare function getSetPoolConfigInstructionDataDecoder(): FixedSizeDecoder; export declare function getSetPoolConfigInstructionDataCodec(): FixedSizeCodec; export type SetPoolConfigInput = { admin: TransactionSigner; perpetuals: Address; pool: Address; fees: SetPoolConfigInstructionDataArgs["fees"]; limit: SetPoolConfigInstructionDataArgs["limit"]; maxRequestExecutionSec: SetPoolConfigInstructionDataArgs["maxRequestExecutionSec"]; }; export declare function getSetPoolConfigInstruction(input: SetPoolConfigInput, config?: { programAddress?: TProgramAddress; }): SetPoolConfigInstruction; export type ParsedSetPoolConfigInstruction = { programAddress: Address; accounts: { admin: TAccountMetas[0]; perpetuals: TAccountMetas[1]; pool: TAccountMetas[2]; }; data: SetPoolConfigInstructionData; }; export declare function parseSetPoolConfigInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetPoolConfigInstruction; //# sourceMappingURL=setPoolConfig.d.ts.map