/** * 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 Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array } from "@solana/kit"; import { PERPETUALS_PROGRAM_ADDRESS } from "../programs"; export declare const GET_SWAP_AMOUNT_AND_FEES_DISCRIMINATOR: Uint8Array; export declare function getGetSwapAmountAndFeesDiscriminatorBytes(): ReadonlyUint8Array; export type GetSwapAmountAndFeesInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountReceivingCustody extends string | AccountMeta = string, TAccountReceivingCustodyOracleAccount extends string | AccountMeta = string, TAccountDispensingCustody extends string | AccountMeta = string, TAccountDispensingCustodyOracleAccount extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPerpetuals extends string ? ReadonlyAccount : TAccountPerpetuals, TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountReceivingCustody extends string ? ReadonlyAccount : TAccountReceivingCustody, TAccountReceivingCustodyOracleAccount extends string ? ReadonlyAccount : TAccountReceivingCustodyOracleAccount, TAccountDispensingCustody extends string ? ReadonlyAccount : TAccountDispensingCustody, TAccountDispensingCustodyOracleAccount extends string ? ReadonlyAccount : TAccountDispensingCustodyOracleAccount, ...TRemainingAccounts ]>; export type GetSwapAmountAndFeesInstructionData = { discriminator: ReadonlyUint8Array; amountIn: bigint; }; export type GetSwapAmountAndFeesInstructionDataArgs = { amountIn: number | bigint; }; export declare function getGetSwapAmountAndFeesInstructionDataEncoder(): FixedSizeEncoder; export declare function getGetSwapAmountAndFeesInstructionDataDecoder(): FixedSizeDecoder; export declare function getGetSwapAmountAndFeesInstructionDataCodec(): FixedSizeCodec; export type GetSwapAmountAndFeesInput = { perpetuals: Address; pool: Address; receivingCustody: Address; receivingCustodyOracleAccount: Address; dispensingCustody: Address; dispensingCustodyOracleAccount: Address; amountIn: GetSwapAmountAndFeesInstructionDataArgs["amountIn"]; }; export declare function getGetSwapAmountAndFeesInstruction(input: GetSwapAmountAndFeesInput, config?: { programAddress?: TProgramAddress; }): GetSwapAmountAndFeesInstruction; export type ParsedGetSwapAmountAndFeesInstruction = { programAddress: Address; accounts: { perpetuals: TAccountMetas[0]; pool: TAccountMetas[1]; receivingCustody: TAccountMetas[2]; receivingCustodyOracleAccount: TAccountMetas[3]; dispensingCustody: TAccountMetas[4]; dispensingCustodyOracleAccount: TAccountMetas[5]; }; data: GetSwapAmountAndFeesInstructionData; }; export declare function parseGetSwapAmountAndFeesInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedGetSwapAmountAndFeesInstruction; //# sourceMappingURL=getSwapAmountAndFees.d.ts.map