This class manages retrieving information from up-to-date Mayachain.

Constructors

  • Constructor to create a MayachainCache.

    Parameters

    • midgardQuery: MidgardQuery = ...

      An instance of the Maya MidgardQuery API.

    • mayanode: Mayanode = ...

      An instance of the Maya Mayanode API.

    • Optional configuration: Partial<MayachainCacheConf>

      Optional configuration for the cache.

    Returns MayachainCache

    MayachainCache.

Properties

assetDecimalsCache: CachedValue<Record<string, number>>
inboundDetailCache: CachedValue<Record<string, InboundDetail>>
mayanode: Mayanode
midgardQuery: MidgardQuery

Methods

  • Get the number of decimals of the supported Mayachain tokens.

    Returns Promise<Record<string, number>>

    A record with the string asset notation as key and the number of decimals as value.

  • Refreshes the number of decimals of the supported Mayachain tokens.

    Returns Promise<Record<string, number>>

Generated using TypeDoc