/** * 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_ORACLE_PRICE_DISCRIMINATOR: Uint8Array; export declare function getGetOraclePriceDiscriminatorBytes(): ReadonlyUint8Array; export type GetOraclePriceInstruction = string, TAccountPool extends string | AccountMeta = string, TAccountCustody extends string | AccountMeta = string, TAccountCustodyOracleAccount extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPerpetuals extends string ? ReadonlyAccount : TAccountPerpetuals, TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountCustody extends string ? ReadonlyAccount : TAccountCustody, TAccountCustodyOracleAccount extends string ? ReadonlyAccount : TAccountCustodyOracleAccount, ...TRemainingAccounts ]>; export type GetOraclePriceInstructionData = { discriminator: ReadonlyUint8Array; }; export type GetOraclePriceInstructionDataArgs = {}; export declare function getGetOraclePriceInstructionDataEncoder(): FixedSizeEncoder; export declare function getGetOraclePriceInstructionDataDecoder(): FixedSizeDecoder; export declare function getGetOraclePriceInstructionDataCodec(): FixedSizeCodec; export type GetOraclePriceInput = { perpetuals: Address; pool: Address; custody: Address; custodyOracleAccount: Address; }; export declare function getGetOraclePriceInstruction(input: GetOraclePriceInput, config?: { programAddress?: TProgramAddress; }): GetOraclePriceInstruction; export type ParsedGetOraclePriceInstruction = { programAddress: Address; accounts: { perpetuals: TAccountMetas[0]; pool: TAccountMetas[1]; custody: TAccountMetas[2]; custodyOracleAccount: TAccountMetas[3]; }; data: GetOraclePriceInstructionData; }; export declare function parseGetOraclePriceInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedGetOraclePriceInstruction; //# sourceMappingURL=getOraclePrice.d.ts.map