/** * 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 ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit"; import { PERPETUALS_PROGRAM_ADDRESS } from "../programs"; export declare const UPDATE_DECREASE_POSITION_REQUEST_DISCRIMINATOR: Uint8Array; export declare function getUpdateDecreasePositionRequestDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateDecreasePositionRequestInstruction = string, TAccountPerpetuals extends string | AccountMeta = string, TAccountPool extends string | AccountMeta = string, TAccountPosition extends string | AccountMeta = string, TAccountPositionRequest extends string | AccountMeta = string, TAccountCustody extends string | AccountMeta = string, TAccountCustodyOracleAccount extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountOwner extends string ? WritableSignerAccount & AccountSignerMeta : TAccountOwner, TAccountPerpetuals extends string ? ReadonlyAccount : TAccountPerpetuals, TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountPosition extends string ? ReadonlyAccount : TAccountPosition, TAccountPositionRequest extends string ? WritableAccount : TAccountPositionRequest, TAccountCustody extends string ? ReadonlyAccount : TAccountCustody, TAccountCustodyOracleAccount extends string ? ReadonlyAccount : TAccountCustodyOracleAccount, ...TRemainingAccounts ]>; export type UpdateDecreasePositionRequestInstructionData = { discriminator: ReadonlyUint8Array; sizeUsdDelta: bigint; triggerPrice: bigint; }; export type UpdateDecreasePositionRequestInstructionDataArgs = { sizeUsdDelta: number | bigint; triggerPrice: number | bigint; }; export declare function getUpdateDecreasePositionRequestInstructionDataEncoder(): FixedSizeEncoder; export declare function getUpdateDecreasePositionRequestInstructionDataDecoder(): FixedSizeDecoder; export declare function getUpdateDecreasePositionRequestInstructionDataCodec(): FixedSizeCodec; export type UpdateDecreasePositionRequestInput = { owner: TransactionSigner; perpetuals: Address; pool: Address; position: Address; positionRequest: Address; custody: Address; custodyOracleAccount: Address; sizeUsdDelta: UpdateDecreasePositionRequestInstructionDataArgs["sizeUsdDelta"]; triggerPrice: UpdateDecreasePositionRequestInstructionDataArgs["triggerPrice"]; }; export declare function getUpdateDecreasePositionRequestInstruction(input: UpdateDecreasePositionRequestInput, config?: { programAddress?: TProgramAddress; }): UpdateDecreasePositionRequestInstruction; export type ParsedUpdateDecreasePositionRequestInstruction = { programAddress: Address; accounts: { owner: TAccountMetas[0]; perpetuals: TAccountMetas[1]; pool: TAccountMetas[2]; position: TAccountMetas[3]; positionRequest: TAccountMetas[4]; custody: TAccountMetas[5]; custodyOracleAccount: TAccountMetas[6]; }; data: UpdateDecreasePositionRequestInstructionData; }; export declare function parseUpdateDecreasePositionRequestInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateDecreasePositionRequestInstruction; //# sourceMappingURL=updateDecreasePositionRequest.d.ts.map