/** * 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_INCREASE_POSITION_REQUEST_DISCRIMINATOR: Uint8Array; export declare function getUpdateIncreasePositionRequestDiscriminatorBytes(): ReadonlyUint8Array; export type UpdateIncreasePositionRequestInstruction = 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 UpdateIncreasePositionRequestInstructionData = { discriminator: ReadonlyUint8Array; sizeUsdDelta: bigint; triggerPrice: bigint; }; export type UpdateIncreasePositionRequestInstructionDataArgs = { sizeUsdDelta: number | bigint; triggerPrice: number | bigint; }; export declare function getUpdateIncreasePositionRequestInstructionDataEncoder(): FixedSizeEncoder; export declare function getUpdateIncreasePositionRequestInstructionDataDecoder(): FixedSizeDecoder; export declare function getUpdateIncreasePositionRequestInstructionDataCodec(): FixedSizeCodec; export type UpdateIncreasePositionRequestInput = { owner: TransactionSigner; perpetuals: Address; pool: Address; position: Address; positionRequest: Address; custody: Address; custodyOracleAccount: Address; sizeUsdDelta: UpdateIncreasePositionRequestInstructionDataArgs["sizeUsdDelta"]; triggerPrice: UpdateIncreasePositionRequestInstructionDataArgs["triggerPrice"]; }; export declare function getUpdateIncreasePositionRequestInstruction(input: UpdateIncreasePositionRequestInput, config?: { programAddress?: TProgramAddress; }): UpdateIncreasePositionRequestInstruction; export type ParsedUpdateIncreasePositionRequestInstruction = { 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: UpdateIncreasePositionRequestInstructionData; }; export declare function parseUpdateIncreasePositionRequestInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedUpdateIncreasePositionRequestInstruction; //# sourceMappingURL=updateIncreasePositionRequest.d.ts.map