Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WhirlpoolAccountFetcherInterface

Fetcher interface for fetching WhirlpoolSupportedTypes from the network

Hierarchy

  • WhirlpoolAccountFetcherInterface

Implemented by

Index

Methods

  • getAccountRentExempt(refresh?: boolean): Promise<number>
  • getConfigs(addresses: Address[], opts?: SimpleAccountFetchOptions): Promise<ReadonlyMap<string, null | WhirlpoolsConfigData>>
  • getFeeTier(address: Address, opts?: SimpleAccountFetchOptions): Promise<null | FeeTierData>
  • getFeeTiers(addresses: Address[], opts?: SimpleAccountFetchOptions): Promise<ReadonlyMap<string, null | FeeTierData>>
  • getMintInfo(address: Address, opts?: SimpleAccountFetchOptions): Promise<null | Mint>
  • getMintInfos(addresses: Address[], opts?: SimpleAccountFetchOptions): Promise<ReadonlyMap<string, null | Mint>>
  • 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)[]>
  • getTokenInfo(address: Address, opts?: SimpleAccountFetchOptions): Promise<null | Account>
  • getTokenInfos(addresses: Address[], opts?: SimpleAccountFetchOptions): Promise<ReadonlyMap<string, null | Account>>
  • populateCache<T>(accounts: ReadonlyMap<string, T>, parser: ParsableEntity<T>, now: number): void
  • Populate the fetcher's cache with the given {@link WhirlpoolsData} accounts

    Type Parameters

    Parameters

    • accounts: ReadonlyMap<string, T>

      The map of addresses to on-chain account data

    • parser: ParsableEntity<T>

      The {@link ParsableEntity} instance to parse the accounts

    • now: number

      The current timestamp to use for the cache

    Returns void

Generated using TypeDoc