import { ChainId } from '../constants'; import { Currency } from './currency'; /** * Represents an ERC20 token with a unique address and some metadata. */ /** * @TODO check why we have 2 different token lists here and * src/entities/trades/uniswap-v2/constants.ts */ export declare class Token extends Currency { readonly chainId: ChainId; readonly address: string; static readonly ARB: Record; static readonly BUSD: Record; static readonly CAKE: Record; static readonly DXD: Record; static readonly SWPR: Record; static readonly WBNB: Record; static readonly WETH: Record; static readonly WMATIC: Record; static readonly WXDAI: Record; private static readonly NATIVE_CURRENCY_WRAPPER; constructor(chainId: ChainId, address: string, decimals: number, symbol?: string, name?: string); /** * Returns true if the two tokens are equivalent, i.e. have the same chainId and address. * @param other other token to compare */ equals(other: Token): boolean; /** * Returns true if the address of this token sorts before the address of the other token * @param other other token to compare * @throws if the tokens have the same address * @throws if the tokens are on different chains */ sortsBefore(other: Token): boolean; static getNativeWrapper(chainId: ChainId): Token; static isNativeWrapper(token: Token): boolean; } /** * Compares two currencies for equality */ export declare function currencyEquals(currencyA: Currency, currencyB: Currency): boolean; export declare const ARB: Record; export declare const BUSD: Record; export declare const CAKE: Record; export declare const DXD: Record; export declare const SWPR: Record; export declare const WBNB: Record; export declare const WETH: Record; export declare const WMATIC: Record; export declare const WXDAI: Record;