/** * 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 Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount } from "@solana/kit"; import { SCOPE_PROGRAM_ADDRESS } from "../programs"; export declare const REFRESH_PRICE_LIST_DISCRIMINATOR: Uint8Array; export declare function getRefreshPriceListDiscriminatorBytes(): ReadonlyUint8Array; export type RefreshPriceListInstruction = string, TAccountOracleMappings extends string | AccountMeta = string, TAccountOracleTwaps extends string | AccountMeta = string, TAccountInstructionSysvarAccountInfo extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountOraclePrices extends string ? WritableAccount : TAccountOraclePrices, TAccountOracleMappings extends string ? ReadonlyAccount : TAccountOracleMappings, TAccountOracleTwaps extends string ? WritableAccount : TAccountOracleTwaps, TAccountInstructionSysvarAccountInfo extends string ? ReadonlyAccount : TAccountInstructionSysvarAccountInfo, ...TRemainingAccounts ]>; export type RefreshPriceListInstructionData = { discriminator: ReadonlyUint8Array; tokens: Array; }; export type RefreshPriceListInstructionDataArgs = { tokens: Array; }; export declare function getRefreshPriceListInstructionDataEncoder(): Encoder; export declare function getRefreshPriceListInstructionDataDecoder(): Decoder; export declare function getRefreshPriceListInstructionDataCodec(): Codec; export type RefreshPriceListInput = { oraclePrices: Address; oracleMappings: Address; oracleTwaps: Address; instructionSysvarAccountInfo: Address; tokens: RefreshPriceListInstructionDataArgs["tokens"]; }; export declare function getRefreshPriceListInstruction(input: RefreshPriceListInput, config?: { programAddress?: TProgramAddress; }): RefreshPriceListInstruction; export type ParsedRefreshPriceListInstruction = { programAddress: Address; accounts: { oraclePrices: TAccountMetas[0]; oracleMappings: TAccountMetas[1]; oracleTwaps: TAccountMetas[2]; instructionSysvarAccountInfo: TAccountMetas[3]; }; data: RefreshPriceListInstructionData; }; export declare function parseRefreshPriceListInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedRefreshPriceListInstruction; //# sourceMappingURL=refreshPriceList.d.ts.map