Class DenomFetcher

The DenomFetcher class provides methods to fetch and cache denom trace data. It works with IBC denom traces, caching results for efficiency.

Constructors

Methods

  • Retrieves the denom trace data for a given denom and chain. It initializes the cache if not already initialized and caches the fetched data.

    Parameters

    Returns Promise<DenomTraceData>

    A Promise that resolves to the denom trace data (DenomTraceData), or throws an error if the trace cannot be fetched.

  • Initializes the cache for storing denom trace data.

    Parameters

    Returns void

  • Checks if the cache has been initialized.

    Returns boolean

    true if the cache is initialized, false otherwise.