/** * 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"; export declare const WITHDRAW_FEES_DISCRIMINATOR: Uint8Array; export declare function getWithdrawFeesDiscriminatorBytes(): ReadonlyUint8Array; export type WithdrawFeesInstruction = string, TAccountTransferAuthority extends string | AccountMeta = string, TAccountPerpetuals extends string | AccountMeta = string, TAccountPool extends string | AccountMeta = string, TAccountCustody extends string | AccountMeta = string, TAccountCustodyTokenAccount extends string | AccountMeta = string, TAccountCustodyOracleAccount extends string | AccountMeta = string, TAccountReceivingTokenAccount extends string | AccountMeta = string, TAccountTokenProgram extends string | AccountMeta = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountKeeper extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountKeeper, TAccountTransferAuthority extends string ? ReadonlyAccount : TAccountTransferAuthority, TAccountPerpetuals extends string ? ReadonlyAccount : TAccountPerpetuals, TAccountPool extends string ? WritableAccount : TAccountPool, TAccountCustody extends string ? WritableAccount : TAccountCustody, TAccountCustodyTokenAccount extends string ? WritableAccount : TAccountCustodyTokenAccount, TAccountCustodyOracleAccount extends string ? ReadonlyAccount : TAccountCustodyOracleAccount, TAccountReceivingTokenAccount extends string ? WritableAccount : TAccountReceivingTokenAccount, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, ...TRemainingAccounts ]>; export type WithdrawFeesInstructionData = { discriminator: ReadonlyUint8Array; }; export type WithdrawFeesInstructionDataArgs = {}; export declare function getWithdrawFeesInstructionDataEncoder(): FixedSizeEncoder; export declare function getWithdrawFeesInstructionDataDecoder(): FixedSizeDecoder; export declare function getWithdrawFeesInstructionDataCodec(): FixedSizeCodec; export type WithdrawFeesInput = { keeper: TransactionSigner; transferAuthority: Address; perpetuals: Address; pool: Address; custody: Address; custodyTokenAccount: Address; custodyOracleAccount: Address; receivingTokenAccount: Address; tokenProgram?: Address; }; export declare function getWithdrawFeesInstruction(input: WithdrawFeesInput, config?: { programAddress?: TProgramAddress; }): WithdrawFeesInstruction; export type ParsedWithdrawFeesInstruction = { programAddress: Address; accounts: { keeper: TAccountMetas[0]; transferAuthority: TAccountMetas[1]; perpetuals: TAccountMetas[2]; pool: TAccountMetas[3]; custody: TAccountMetas[4]; custodyTokenAccount: TAccountMetas[5]; custodyOracleAccount: TAccountMetas[6]; receivingTokenAccount: TAccountMetas[7]; tokenProgram: TAccountMetas[8]; }; data: WithdrawFeesInstructionData; }; export declare function parseWithdrawFeesInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedWithdrawFeesInstruction; //# sourceMappingURL=withdrawFees.d.ts.map