Documentation
    Preparing search index...

    Interface WhirlpoolAccountFetcherInterface

    Fetcher interface for fetching WhirlpoolSupportedTypes from the network

    interface WhirlpoolAccountFetcherInterface {
        getAccountRentExempt(refresh?: boolean): Promise<number>;
        getAdaptiveFeeTier(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<AdaptiveFeeTierData | null>;
        getAdaptiveFeeTiers(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, AdaptiveFeeTierData | null>>;
        getConfig(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<WhirlpoolsConfigData | null>;
        getConfigExtension(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<WhirlpoolsConfigExtensionData | null>;
        getConfigExtensions(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, WhirlpoolsConfigExtensionData | null>>;
        getConfigs(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, WhirlpoolsConfigData | null>>;
        getEpoch(refresh?: boolean): Promise<number>;
        getFeeTier(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<FeeTierData | null>;
        getFeeTiers(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, FeeTierData | null>>;
        getLockConfig(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<LockConfigData | null>;
        getLockConfigs(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, LockConfigData | null>>;
        getMintInfo(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<MintWithTokenProgram | null>;
        getMintInfos(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, MintWithTokenProgram | null>>;
        getOracle(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<OracleData | null>;
        getOracles(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, OracleData | null>>;
        getPool(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<WhirlpoolData | null>;
        getPools(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, WhirlpoolData | null>>;
        getPosition(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<PositionData | null>;
        getPositionBundle(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<PositionBundleData | null>;
        getPositionBundles(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, PositionBundleData | null>>;
        getPositions(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, PositionData | null>>;
        getTickArray(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<TickArrayData | null>;
        getTickArrays(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<readonly (TickArrayData | null)[]>;
        getTokenBadge(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<TokenBadgeData | null>;
        getTokenBadges(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, TokenBadgeData | null>>;
        getTokenInfo(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<AccountWithTokenProgram | null>;
        getTokenInfos(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, AccountWithTokenProgram | null>>;
        populateCache<T extends WhirlpoolSupportedTypes>(
            accounts: ReadonlyMap<string, T>,
            parser: ParsableEntity<T>,
            now: number,
        ): void;
    }

    Implemented by

    Index

    Methods

    • Fetch and cache the rent exempt value

      Parameters

      • Optionalrefresh: boolean

        If true, will always fetch from the network

      Returns Promise<number>

    • Fetch and cache the current epoch info

      Parameters

      • Optionalrefresh: boolean

        If true, will always fetch from the network

      Returns Promise<number>