/** * 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 ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from "@solana/kit"; import { PERPETUALS_PROGRAM_ADDRESS } from "../programs"; export declare const SET_CUSTODY_GLOBAL_LIMIT_DISCRIMINATOR: Uint8Array; export declare function getSetCustodyGlobalLimitDiscriminatorBytes(): ReadonlyUint8Array; export type SetCustodyGlobalLimitInstruction = string, TAccountCustody extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountKeeper extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountKeeper, TAccountCustody extends string ? WritableAccount : TAccountCustody, ...TRemainingAccounts ]>; export type SetCustodyGlobalLimitInstructionData = { discriminator: ReadonlyUint8Array; maxGlobalLongSizes: bigint; maxGlobalShortSizes: bigint; }; export type SetCustodyGlobalLimitInstructionDataArgs = { maxGlobalLongSizes: number | bigint; maxGlobalShortSizes: number | bigint; }; export declare function getSetCustodyGlobalLimitInstructionDataEncoder(): FixedSizeEncoder; export declare function getSetCustodyGlobalLimitInstructionDataDecoder(): FixedSizeDecoder; export declare function getSetCustodyGlobalLimitInstructionDataCodec(): FixedSizeCodec; export type SetCustodyGlobalLimitInput = { keeper: TransactionSigner; custody: Address; maxGlobalLongSizes: SetCustodyGlobalLimitInstructionDataArgs["maxGlobalLongSizes"]; maxGlobalShortSizes: SetCustodyGlobalLimitInstructionDataArgs["maxGlobalShortSizes"]; }; export declare function getSetCustodyGlobalLimitInstruction(input: SetCustodyGlobalLimitInput, config?: { programAddress?: TProgramAddress; }): SetCustodyGlobalLimitInstruction; export type ParsedSetCustodyGlobalLimitInstruction = { programAddress: Address; accounts: { keeper: TAccountMetas[0]; custody: TAccountMetas[1]; }; data: SetCustodyGlobalLimitInstructionData; }; export declare function parseSetCustodyGlobalLimitInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetCustodyGlobalLimitInstruction; //# sourceMappingURL=setCustodyGlobalLimit.d.ts.map