/** * 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_LIQUIDATION_STATE_DISCRIMINATOR: Uint8Array; export declare function getGetLiquidationStateDiscriminatorBytes(): ReadonlyUint8Array; export type GetLiquidationStateInstruction = 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, 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, ...TRemainingAccounts ]>; export type GetLiquidationStateInstructionData = { discriminator: ReadonlyUint8Array; }; export type GetLiquidationStateInstructionDataArgs = {}; export declare function getGetLiquidationStateInstructionDataEncoder(): FixedSizeEncoder; export declare function getGetLiquidationStateInstructionDataDecoder(): FixedSizeDecoder; export declare function getGetLiquidationStateInstructionDataCodec(): FixedSizeCodec; export type GetLiquidationStateInput = { perpetuals: Address; pool: Address; position: Address; custody: Address; custodyOracleAccount: Address; collateralCustody: Address; }; export declare function getGetLiquidationStateInstruction(input: GetLiquidationStateInput, config?: { programAddress?: TProgramAddress; }): GetLiquidationStateInstruction; export type ParsedGetLiquidationStateInstruction = { programAddress: Address; accounts: { perpetuals: TAccountMetas[0]; pool: TAccountMetas[1]; position: TAccountMetas[2]; custody: TAccountMetas[3]; custodyOracleAccount: TAccountMetas[4]; collateralCustody: TAccountMetas[5]; }; data: GetLiquidationStateInstructionData; }; export declare function parseGetLiquidationStateInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedGetLiquidationStateInstruction; //# sourceMappingURL=getLiquidationState.d.ts.map