/** * 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 } from "@solana/kit"; import { PERPETUALS_PROGRAM_ADDRESS } from "../programs"; export declare const DECREASE_POSITION_POST_SWAP_DISCRIMINATOR: Uint8Array; export declare function getDecreasePositionPostSwapDiscriminatorBytes(): ReadonlyUint8Array; export type DecreasePositionPostSwapInstruction = string, TAccountPositionRequest extends string | AccountMeta = string, TAccountPositionRequestAta extends string | AccountMeta = string, TAccountEventAuthority extends string | AccountMeta = string, TAccountProgram extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountKeeper extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountKeeper, TAccountPositionRequest extends string ? ReadonlyAccount : TAccountPositionRequest, TAccountPositionRequestAta extends string ? ReadonlyAccount : TAccountPositionRequestAta, TAccountEventAuthority extends string ? ReadonlyAccount : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount : TAccountProgram, ...TRemainingAccounts ]>; export type DecreasePositionPostSwapInstructionData = { discriminator: ReadonlyUint8Array; }; export type DecreasePositionPostSwapInstructionDataArgs = {}; export declare function getDecreasePositionPostSwapInstructionDataEncoder(): FixedSizeEncoder; export declare function getDecreasePositionPostSwapInstructionDataDecoder(): FixedSizeDecoder; export declare function getDecreasePositionPostSwapInstructionDataCodec(): FixedSizeCodec; export type DecreasePositionPostSwapInput = { keeper: TransactionSigner; positionRequest: Address; positionRequestAta: Address; eventAuthority: Address; program: Address; }; export declare function getDecreasePositionPostSwapInstruction(input: DecreasePositionPostSwapInput, config?: { programAddress?: TProgramAddress; }): DecreasePositionPostSwapInstruction; export type ParsedDecreasePositionPostSwapInstruction = { programAddress: Address; accounts: { keeper: TAccountMetas[0]; positionRequest: TAccountMetas[1]; positionRequestAta: TAccountMetas[2]; eventAuthority: TAccountMetas[3]; program: TAccountMetas[4]; }; data: DecreasePositionPostSwapInstructionData; }; export declare function parseDecreasePositionPostSwapInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedDecreasePositionPostSwapInstruction; //# sourceMappingURL=decreasePositionPostSwap.d.ts.map