/** * 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 Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit"; import { SCOPE_PROGRAM_ADDRESS } from "../programs"; export declare const REFRESH_PYTH_LAZER_PRICE_DISCRIMINATOR: Uint8Array; export declare function getRefreshPythLazerPriceDiscriminatorBytes(): ReadonlyUint8Array; export type RefreshPythLazerPriceInstruction = string, TAccountOraclePrices extends string | AccountMeta = string, TAccountOracleMappings extends string | AccountMeta = string, TAccountOracleTwaps extends string | AccountMeta = string, TAccountPythProgram extends string | AccountMeta = string, TAccountPythStorage extends string | AccountMeta = string, TAccountPythTreasury extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = "11111111111111111111111111111111", TAccountInstructionsSysvar extends string | AccountMeta = "Sysvar1nstructions1111111111111111111111111", TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountUser extends string ? WritableSignerAccount & AccountSignerMeta : TAccountUser, TAccountOraclePrices extends string ? WritableAccount : TAccountOraclePrices, TAccountOracleMappings extends string ? ReadonlyAccount : TAccountOracleMappings, TAccountOracleTwaps extends string ? WritableAccount : TAccountOracleTwaps, TAccountPythProgram extends string ? ReadonlyAccount : TAccountPythProgram, TAccountPythStorage extends string ? ReadonlyAccount : TAccountPythStorage, TAccountPythTreasury extends string ? WritableAccount : TAccountPythTreasury, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountInstructionsSysvar extends string ? ReadonlyAccount : TAccountInstructionsSysvar, ...TRemainingAccounts ]>; export type RefreshPythLazerPriceInstructionData = { discriminator: ReadonlyUint8Array; tokens: Array; serializedPythMessage: ReadonlyUint8Array; ed25519InstructionIndex: number; }; export type RefreshPythLazerPriceInstructionDataArgs = { tokens: Array; serializedPythMessage: ReadonlyUint8Array; ed25519InstructionIndex: number; }; export declare function getRefreshPythLazerPriceInstructionDataEncoder(): Encoder; export declare function getRefreshPythLazerPriceInstructionDataDecoder(): Decoder; export declare function getRefreshPythLazerPriceInstructionDataCodec(): Codec; export type RefreshPythLazerPriceInput = { /** The account that signs the transaction. */ user: TransactionSigner; oraclePrices: Address; oracleMappings: Address; oracleTwaps: Address; pythProgram: Address; pythStorage: Address; pythTreasury: Address; systemProgram?: Address; instructionsSysvar?: Address; tokens: RefreshPythLazerPriceInstructionDataArgs["tokens"]; serializedPythMessage: RefreshPythLazerPriceInstructionDataArgs["serializedPythMessage"]; ed25519InstructionIndex: RefreshPythLazerPriceInstructionDataArgs["ed25519InstructionIndex"]; }; export declare function getRefreshPythLazerPriceInstruction(input: RefreshPythLazerPriceInput, config?: { programAddress?: TProgramAddress; }): RefreshPythLazerPriceInstruction; export type ParsedRefreshPythLazerPriceInstruction = { programAddress: Address; accounts: { /** The account that signs the transaction. */ user: TAccountMetas[0]; oraclePrices: TAccountMetas[1]; oracleMappings: TAccountMetas[2]; oracleTwaps: TAccountMetas[3]; pythProgram: TAccountMetas[4]; pythStorage: TAccountMetas[5]; pythTreasury: TAccountMetas[6]; systemProgram: TAccountMetas[7]; instructionsSysvar: TAccountMetas[8]; }; data: RefreshPythLazerPriceInstructionData; }; export declare function parseRefreshPythLazerPriceInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedRefreshPythLazerPriceInstruction; //# sourceMappingURL=refreshPythLazerPrice.d.ts.map