UNPKG

ulysses-sdk

Version:

An sdk for interacting with the Ulysses contracts

29 lines (28 loc) 1.07 kB
import { Currency, SupportedChainId } from 'maia-core-sdk'; import { BaseVirtualizedToken } from '../baseVirtualizedToken'; import { GlobalToken } from '../globalToken'; /** * These tokens reside on the branch chains of the ulysses system, * and represent a deposit of the global token on the branch chain. * * @export * @class LocalToken * @extends {BaseVirtualizedToken} */ export declare class LocalToken extends BaseVirtualizedToken { readonly isGlobal: false; /** * The global token that this local token represents. * * @type {GlobalToken} * @memberof LocalToken */ readonly globalToken: GlobalToken; constructor(chainId: number, address: string, decimals: number, underlyingCurrency: Currency, globalToken: GlobalToken, symbol?: string, name?: string); /** * Gets the token address of the hToken for a given chain. * @param chainId chainId to get the hToken balance from * @returns */ getChainTokenAddress(chainId: SupportedChainId): string | undefined; }