Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • TokenMetaUtils

Index

Constructors

  • Parameters

    • tokens: Record<string, TokenMeta>

    Returns TokenMetaUtils

Properties

tokens: Record<string, TokenMeta>
tokensByCw20Address: Record<string, TokenMeta>
tokensByErc20Address: Record<string, TokenMeta>
tokensByHash: Record<string, TokenMeta>
tokensByName: Record<string, TokenMeta>

Methods

  • getCoinGeckoIdFromSymbol(symbol: string): string
  • Parameters

    • symbol: string

    Returns string

  • getMetaByAddress(address: string): undefined | TokenMeta
  • Parameters

    • address: string

    Returns undefined | TokenMeta

  • getMetaByCw20Address(address: string): undefined | TokenMeta
  • Parameters

    • address: string

    Returns undefined | TokenMeta

  • getMetaByErc20Address(address: string): undefined | TokenMeta
  • Parameters

    • address: string

    Returns undefined | TokenMeta

  • getMetaByHash(hash: string): undefined | TokenMeta
  • Parameters

    • hash: string

    Returns undefined | TokenMeta

  • getMetaByName(name: string): undefined | TokenMeta
  • Parameters

    • name: string

    Returns undefined | TokenMeta

  • getMetaBySymbol(symbol: string): undefined | TokenMeta
  • Symbol can be:

    • Main symbol of the token meta,
    • BaseDenom based on the ibc hash
    • Variation of a symbol for multiple versions of the same token (ex: USDC, USDCet, USDCso)

    Parameters

    • symbol: string

    Returns undefined | TokenMeta

Generated using TypeDoc