/** * 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_DECREASE_POSITION_DISCRIMINATOR: Uint8Array; export declare function getGetDecreasePositionDiscriminatorBytes(): ReadonlyUint8Array; export type GetDecreasePositionInstruction = string, TAccountPool 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, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPerpetuals extends string ? ReadonlyAccount : TAccountPerpetuals, TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountPosition extends string ? ReadonlyAccount : TAccountPosition, TAccountCustody extends string ? ReadonlyAccount : TAccountCustody, TAccountCustodyOracleAccount extends string ? ReadonlyAccount : TAccountCustodyOracleAccount, TAccountCollateralCustody extends string ? ReadonlyAccount : TAccountCollateralCustody, TAccountCollateralCustodyOracleAccount extends string ? ReadonlyAccount : TAccountCollateralCustodyOracleAccount, ...TRemainingAccounts ]>; export type GetDecreasePositionInstructionData = { discriminator: ReadonlyUint8Array; collateralUsdDelta: bigint; sizeUsdDelta: bigint; }; export type GetDecreasePositionInstructionDataArgs = { collateralUsdDelta: number | bigint; sizeUsdDelta: number | bigint; }; export declare function getGetDecreasePositionInstructionDataEncoder(): FixedSizeEncoder; export declare function getGetDecreasePositionInstructionDataDecoder(): FixedSizeDecoder; export declare function getGetDecreasePositionInstructionDataCodec(): FixedSizeCodec; export type GetDecreasePositionInput = { perpetuals: Address; pool: Address; position: Address; custody: Address; custodyOracleAccount: Address; collateralCustody: Address; collateralCustodyOracleAccount: Address; collateralUsdDelta: GetDecreasePositionInstructionDataArgs["collateralUsdDelta"]; sizeUsdDelta: GetDecreasePositionInstructionDataArgs["sizeUsdDelta"]; }; export declare function getGetDecreasePositionInstruction(input: GetDecreasePositionInput, config?: { programAddress?: TProgramAddress; }): GetDecreasePositionInstruction; export type ParsedGetDecreasePositionInstruction = { programAddress: Address; accounts: { perpetuals: TAccountMetas[0]; pool: TAccountMetas[1]; position: TAccountMetas[2]; custody: TAccountMetas[3]; custodyOracleAccount: TAccountMetas[4]; collateralCustody: TAccountMetas[5]; collateralCustodyOracleAccount: TAccountMetas[6]; }; data: GetDecreasePositionInstructionData; }; export declare function parseGetDecreasePositionInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedGetDecreasePositionInstruction; //# sourceMappingURL=getDecreasePosition.d.ts.map