/** * 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 { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from "@solana/kit"; import { type TwapEnabledBitmask, type TwapEnabledBitmaskArgs } from "../types"; export declare const ORACLE_MAPPINGS_DISCRIMINATOR: Uint8Array; export declare function getOracleMappingsDiscriminatorBytes(): ReadonlyUint8Array; export type OracleMappings = { discriminator: ReadonlyUint8Array; priceInfoAccounts: Array
; priceTypes: ReadonlyUint8Array; twapSourceOrRefPriceToleranceBps: Array; twapEnabledBitmask: Array; refPrice: Array; generic: Array; }; export type OracleMappingsArgs = { priceInfoAccounts: Array
; priceTypes: ReadonlyUint8Array; twapSourceOrRefPriceToleranceBps: Array; twapEnabledBitmask: Array; refPrice: Array; generic: Array; }; /** Gets the encoder for {@link OracleMappingsArgs} account data. */ export declare function getOracleMappingsEncoder(): FixedSizeEncoder; /** Gets the decoder for {@link OracleMappings} account data. */ export declare function getOracleMappingsDecoder(): FixedSizeDecoder; /** Gets the codec for {@link OracleMappings} account data. */ export declare function getOracleMappingsCodec(): FixedSizeCodec; export declare function decodeOracleMappings(encodedAccount: EncodedAccount): Account; export declare function decodeOracleMappings(encodedAccount: MaybeEncodedAccount): MaybeAccount; export declare function fetchOracleMappings(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchMaybeOracleMappings(rpc: Parameters[0], address: Address, config?: FetchAccountConfig): Promise>; export declare function fetchAllOracleMappings(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function fetchAllMaybeOracleMappings(rpc: Parameters[0], addresses: Array
, config?: FetchAccountsConfig): Promise[]>; export declare function getOracleMappingsSize(): number; //# sourceMappingURL=oracleMappings.d.ts.map