Type Alias TokenInfo

TokenInfo: {
    icon: string;
    id: Currency;
    isRebaseToken: boolean;
    name: string;
    underlyingToken: string;
    underlyingTokenDecimals: number;
    wrapToken: string;
    wrapTokenDecimals: number;
}

TokenInfo represents the details of a token that can be used in the AlexSDK.

Type declaration

  • icon: string

    The URL to the icon image of the token, maintained by ALEX.

  • id: Currency

    The unique identifier of the currency.

  • isRebaseToken: boolean

    A boolean flag indicating whether the token is a rebase token. In a rebase token, getBalance is different from ft-balance Also postcondition would need to be adjusted since amount is different from ft-events

  • name: string

    The display name of the token that ALEX maintains, usually the token symbol.

  • underlyingToken: string

    The full asset id of the underlying token in the format of "{deployer}.{contract}::{asset}".

  • underlyingTokenDecimals: number

    The number of decimal places for the underlying token.

  • wrapToken: string

    The full asset id of the alex wrapped token in the format of "{deployer}.{contract}::{asset}".

  • wrapTokenDecimals: number

    The number of decimal places for the wrapped token.