/** * 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 DECREASE_POSITION_DISCRIMINATOR: Uint8Array; export declare function getDecreasePositionDiscriminatorBytes(): ReadonlyUint8Array; export type DecreasePositionInstruction = string, TAccountKeeperAta extends string | AccountMeta = string, TAccountOwner extends string | AccountMeta = string, TAccountTransferAuthority extends string | AccountMeta = string, TAccountPerpetuals extends string | AccountMeta = string, TAccountPool extends string | AccountMeta = string, TAccountPositionRequest extends string | AccountMeta = string, TAccountPositionRequestAta extends string | AccountMeta = string, TAccountPosition extends string | AccountMeta = string, TAccountCustody extends string | AccountMeta = string, TAccountCustodyOracleAccount extends string | AccountMeta = string, TAccountCollateralCustody extends string | AccountMeta = string, TAccountCollateralCustodyOracleAccount extends string | AccountMeta = string, TAccountCollateralCustodyTokenAccount extends string | AccountMeta = string, TAccountInstruction extends string | AccountMeta = string, TAccountTokenProgram extends string | AccountMeta = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA", TAccountEventAuthority extends string | AccountMeta = string, TAccountProgram extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountKeeper extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountKeeper, TAccountKeeperAta extends string ? WritableAccount : TAccountKeeperAta, TAccountOwner extends string ? WritableAccount : TAccountOwner, TAccountTransferAuthority extends string ? ReadonlyAccount : TAccountTransferAuthority, TAccountPerpetuals extends string ? ReadonlyAccount : TAccountPerpetuals, TAccountPool extends string ? WritableAccount : TAccountPool, TAccountPositionRequest extends string ? WritableAccount : TAccountPositionRequest, TAccountPositionRequestAta extends string ? WritableAccount : TAccountPositionRequestAta, TAccountPosition extends string ? WritableAccount : TAccountPosition, TAccountCustody extends string ? WritableAccount : TAccountCustody, TAccountCustodyOracleAccount extends string ? ReadonlyAccount : TAccountCustodyOracleAccount, TAccountCollateralCustody extends string ? WritableAccount : TAccountCollateralCustody, TAccountCollateralCustodyOracleAccount extends string ? ReadonlyAccount : TAccountCollateralCustodyOracleAccount, TAccountCollateralCustodyTokenAccount extends string ? WritableAccount : TAccountCollateralCustodyTokenAccount, TAccountInstruction extends string ? ReadonlyAccount : TAccountInstruction, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, TAccountEventAuthority extends string ? ReadonlyAccount : TAccountEventAuthority, TAccountProgram extends string ? ReadonlyAccount : TAccountProgram, ...TRemainingAccounts ]>; export type DecreasePositionInstructionData = { discriminator: ReadonlyUint8Array; }; export type DecreasePositionInstructionDataArgs = {}; export declare function getDecreasePositionInstructionDataEncoder(): FixedSizeEncoder; export declare function getDecreasePositionInstructionDataDecoder(): FixedSizeDecoder; export declare function getDecreasePositionInstructionDataCodec(): FixedSizeCodec; export type DecreasePositionInput = { keeper: TransactionSigner; keeperAta?: Address; owner: Address; transferAuthority: Address; perpetuals: Address; pool: Address; positionRequest: Address; positionRequestAta: Address; position: Address; custody: Address; custodyOracleAccount: Address; collateralCustody: Address; collateralCustodyOracleAccount: Address; collateralCustodyTokenAccount: Address; instruction: Address; tokenProgram?: Address; eventAuthority: Address; program: Address; }; export declare function getDecreasePositionInstruction(input: DecreasePositionInput, config?: { programAddress?: TProgramAddress; }): DecreasePositionInstruction; export type ParsedDecreasePositionInstruction = { programAddress: Address; accounts: { keeper: TAccountMetas[0]; keeperAta?: TAccountMetas[1] | undefined; owner: TAccountMetas[2]; transferAuthority: TAccountMetas[3]; perpetuals: TAccountMetas[4]; pool: TAccountMetas[5]; positionRequest: TAccountMetas[6]; positionRequestAta: TAccountMetas[7]; position: TAccountMetas[8]; custody: TAccountMetas[9]; custodyOracleAccount: TAccountMetas[10]; collateralCustody: TAccountMetas[11]; collateralCustodyOracleAccount: TAccountMetas[12]; collateralCustodyTokenAccount: TAccountMetas[13]; instruction: TAccountMetas[14]; tokenProgram: TAccountMetas[15]; eventAuthority: TAccountMetas[16]; program: TAccountMetas[17]; }; data: DecreasePositionInstructionData; }; export declare function parseDecreasePositionInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedDecreasePositionInstruction; //# sourceMappingURL=decreasePosition.d.ts.map