Type alias TokenConfig

TokenConfig: {
    address: string;
    decimals?: number;
    feeSettings: {
        address: string;
        type: FeeType;
    };
    imageUri?: string;
    isDoubleApproval?: boolean;
    isNativeWrappedToken?: boolean;
    name?: string;
    resourceId: string;
    symbol?: string;
    type: "erc20" | "erc721";
}

Type declaration

  • address: string

    The address of the token contract.

  • Optional decimals?: number

    The optional number of decimals for the token.

  • feeSettings: {
        address: string;
        type: FeeType;
    }

    The fee settings for the token.

    • address: string

      The address of fee handler contract.

    • type: FeeType

      The type of fee, either 'basic', 'feeOracle', or 'none'.

  • Optional imageUri?: string

    The optional URI of the token image.

  • Optional isDoubleApproval?: boolean

    An optional flag indicating if the token requires double approval (like USDT).

  • Optional isNativeWrappedToken?: boolean

    An optional flag indicating if the token is a native wrapped token.

  • Optional name?: string

    The optional name of the token.

  • resourceId: string

    The resource identifier of the token.

  • Optional symbol?: string

    The optional symbol of the token.

  • type: "erc20" | "erc721"

    The token type (ERC20 or ERC721)

Generated using TypeDoc