/** * 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 SET_TEST_ORACLE_PRICE_DISCRIMINATOR: Uint8Array; export declare function getSetTestOraclePriceDiscriminatorBytes(): ReadonlyUint8Array; export type SetTestOraclePriceInstruction = string, TAccountPerpetuals extends string | AccountMeta = string, TAccountPool extends string | AccountMeta = string, TAccountCustody extends string | AccountMeta = string, TAccountOracleAccount extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAdmin extends string ? WritableSignerAccount & AccountSignerMeta : TAccountAdmin, TAccountPerpetuals extends string ? ReadonlyAccount : TAccountPerpetuals, TAccountPool extends string ? ReadonlyAccount : TAccountPool, TAccountCustody extends string ? ReadonlyAccount : TAccountCustody, TAccountOracleAccount extends string ? WritableAccount : TAccountOracleAccount, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, ...TRemainingAccounts ]>; export type SetTestOraclePriceInstructionData = { discriminator: ReadonlyUint8Array; price: bigint; expo: number; conf: bigint; publishTime: bigint; }; export type SetTestOraclePriceInstructionDataArgs = { price: number | bigint; expo: number; conf: number | bigint; publishTime: number | bigint; }; export declare function getSetTestOraclePriceInstructionDataEncoder(): FixedSizeEncoder; export declare function getSetTestOraclePriceInstructionDataDecoder(): FixedSizeDecoder; export declare function getSetTestOraclePriceInstructionDataCodec(): FixedSizeCodec; export type SetTestOraclePriceInput = { admin: TransactionSigner; perpetuals: Address; pool: Address; custody: Address; oracleAccount: Address; systemProgram?: Address; price: SetTestOraclePriceInstructionDataArgs["price"]; expo: SetTestOraclePriceInstructionDataArgs["expo"]; conf: SetTestOraclePriceInstructionDataArgs["conf"]; publishTime: SetTestOraclePriceInstructionDataArgs["publishTime"]; }; export declare function getSetTestOraclePriceInstruction(input: SetTestOraclePriceInput, config?: { programAddress?: TProgramAddress; }): SetTestOraclePriceInstruction; export type ParsedSetTestOraclePriceInstruction = { programAddress: Address; accounts: { admin: TAccountMetas[0]; perpetuals: TAccountMetas[1]; pool: TAccountMetas[2]; custody: TAccountMetas[3]; oracleAccount: TAccountMetas[4]; systemProgram: TAccountMetas[5]; }; data: SetTestOraclePriceInstructionData; }; export declare function parseSetTestOraclePriceInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetTestOraclePriceInstruction; //# sourceMappingURL=setTestOraclePrice.d.ts.map