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<null | AdaptiveFeeTierData>;
        getAdaptiveFeeTiers(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, null | AdaptiveFeeTierData>>;
        getConfig(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<null | WhirlpoolsConfigData>;
        getConfigExtension(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<null | WhirlpoolsConfigExtensionData>;
        getConfigExtensions(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, null | WhirlpoolsConfigExtensionData>>;
        getConfigs(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, null | WhirlpoolsConfigData>>;
        getEpoch(refresh?: boolean): Promise<number>;
        getFeeTier(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<null | FeeTierData>;
        getFeeTiers(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, null | FeeTierData>>;
        getLockConfig(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<null | LockConfigData>;
        getLockConfigs(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, null | LockConfigData>>;
        getMintInfo(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<null | MintWithTokenProgram>;
        getMintInfos(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, null | MintWithTokenProgram>>;
        getOracle(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<null | OracleData>;
        getOracles(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, null | OracleData>>;
        getPool(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<null | WhirlpoolData>;
        getPools(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, null | WhirlpoolData>>;
        getPosition(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<null | PositionData>;
        getPositionBundle(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<null | PositionBundleData>;
        getPositionBundles(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, null | PositionBundleData>>;
        getPositions(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, null | PositionData>>;
        getTickArray(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<null | TickArrayData>;
        getTickArrays(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<readonly (null | TickArrayData)[]>;
        getTokenBadge(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<null | TokenBadgeData>;
        getTokenBadges(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, null | TokenBadgeData>>;
        getTokenInfo(
            address: Address,
            opts?: SimpleAccountFetchOptions,
        ): Promise<null | AccountWithTokenProgram>;
        getTokenInfos(
            addresses: Address[],
            opts?: SimpleAccountFetchOptions,
        ): Promise<ReadonlyMap<string, null | AccountWithTokenProgram>>;
        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>