import { PublicKey } from "@solana/web3.js"; import { OptionChain, OptionVault, TokenWhitelist, TradingAccount, TransferQueue, TransferType, VolatilityFeed, TransferRecord, PrizePool, SpinRecord } from "../../types"; import { AssetType, ProgramAuthority, SdxClient } from "../SdxClient"; /** * Fetches OptionChain data for a specified asset. * * @param {AssetType} asset - The type of asset for which to fetch the OptionChain data. * @param {boolean} [fromCache=false] - If true, data is loaded from cache. If false, data is fetched from chain. * @param {boolean} [enableLogging=false] - If true, logging is enabled for the function. * * @returns {Promise} A promise resolving to the OptionChain data for the specified asset. * * @throws {Error} If there is an issue with the RPC call or parsing the OptionChain data. */ export declare function loadOptionChainImpl(this: SdxClient, asset: AssetType, fromCache?: boolean, enableLogging?: boolean): Promise; /** * Fetches the TradingAccount data associated with a given key or the client's default trading account. * * @param {PublicKey} [tradingAccountKey] - The key of the TradingAccount to fetch. If not provided, the client's default trading account is used. * @param {boolean} [fromCache=false] - If true, data is loaded from cache. If false, data is fetched from chain. * @param {boolean} [enableLogging=false] - If true, logging is enabled for the function. * * @returns {Promise} A promise that resolves to the TradingAccount data. * * @throws {Error} If there is an issue with the RPC call or parsing the TradingAccount data. */ export declare function loadTradingAccountImpl(this: SdxClient, tradingAccountKey?: PublicKey, fromCache?: boolean, enableLogging?: boolean): Promise; /** * Fetches the balance for each token account already cached in the client, * in a single RPC call. * * @param {boolean} [fromCache=false] - Determines whether to load data from the cache. * * @returns {Promise>} A promise resolving to a map of * token account addresses to balances. */ export declare function loadAccountBalancesImpl(this: SdxClient, fromCache?: boolean): Promise>; /** * Fetches OptionVault data for a specified asset. * * @param {AssetType} asset - The type of asset for which to fetch the OptionVault data. * @param {boolean} [fromCache=false] - If true, data is loaded from cache. If false, data is fetched from chain. * @param {boolean} [enableLogging=false] - If true, logging is enabled for the function. * * @returns {Promise} A promise that resolves to the OptionVault data for the specified asset. * * @throws {Error} If there is an issue with the RPC call or parsing the OptionVault data. */ export declare function loadOptionVaultImpl(this: SdxClient, asset: AssetType, fromCache?: boolean, enableLogging?: boolean): Promise; /** * Fetches TransferRecord data for a specified transfer record. * * @param {PublicKey} transferRecord - The key of the transfer record to fetch. * @param {boolean} [fromCache=false] - If true, data is loaded from cache. If false, data is fetched from chain. * @param {boolean} [enableLogging=false] - If true, logging is enabled for the function. * * @returns {Promise} A promise that resolves to the TransferRecord data. * * @throws {Error} If there is an issue with the RPC call or parsing the TransferRecord data. */ export declare function loadTransferRecordImpl(this: SdxClient, transferRecord: PublicKey, fromCache?: boolean, enableLogging?: boolean): Promise; /** * Fetches TransferQueue data for a specified asset and transfer type. * * @param {AssetType} asset - The type of asset for which to fetch the TransferQueue data. * @param {TransferType} transferType - The type of transfer for which to fetch the TransferQueue data. * @param {boolean} [fromCache=false] - If true, data is loaded from cache. If false, data is fetched from chain. * @param {boolean} [enableLogging=false] - If true, logging is enabled for the function. * * @returns {Promise} A promise that resolves to the TransferQueue data. * * @throws {Error} If there is an issue with the RPC call or parsing the TransferQueue data. */ export declare function loadTransferQueueImpl(this: SdxClient, asset: AssetType, transferType: TransferType, fromCache?: boolean, enableLogging?: boolean): Promise; /** * Fetches VolatilityFeed data. * * @param {boolean} [fromCache=false] - If true, data is loaded from cache. If false, data is fetched from chain. * @param {boolean} [enableLogging=false] - If true, logging is enabled for the function. * * @returns {Promise} A promise that resolves to the VolatilityFeed data. * * @throws {Error} If there is an issue with the RPC call or parsing the VolatilityFeed data. */ export declare function loadVolatilityFeedImpl(this: SdxClient, fromCache?: boolean, enableLogging?: boolean): Promise; /** * Fetches TokenWhitelist data. * * @param {boolean} [fromCache=false] - If true, data is loaded from cache. If false, data is fetched from chain. * @param {boolean} [enableLogging=false] - If true, logging is enabled for the function. * * @returns {Promise} A promise that resolves to the TokenWhitelist data. * * @throws {Error} If there is an issue with the RPC call or parsing the TokenWhitelist data. */ export declare function loadTokenWhitelistImpl(this: SdxClient, fromCache?: boolean, enableLogging?: boolean): Promise; /** * Fetches ProgramAuthority data. * * @param {boolean} [enableLogging=false] - If true, logging is enabled for the function. * * @returns {Promise} A promise that resolves to the ProgramAuthority data. * * @throws {Error} If there is an issue with the RPC call or parsing the ProgramAuthority data. */ export declare function loadProgramAuthorityImpl(this: SdxClient, enableLogging?: boolean): Promise; /** * Fetches PrizePool data. * * @param {boolean} [enableLogging=false] - If true, logging is enabled for the function. * * @returns {Promise} A promise that resolves to the PrizePool data. * * @throws {Error} If there is an issue with the RPC call or parsing the PrizePool data. */ export declare function loadPrizePoolImpl(this: SdxClient, season?: number, enableLogging?: boolean): Promise; /** * Fetches SpinRecord data. * * @param {boolean} [enableLogging=false] - If true, logging is enabled for the function. * * @returns {Promise} A promise that resolves to the SpinRecord data. * * @throws {Error} If there is an issue with the RPC call or parsing the SpinRecord data. */ export declare function loadSpinRecordImpl(this: SdxClient, season?: number, enableLogging?: boolean): Promise; //# sourceMappingURL=accountLoaders.d.ts.map