UNPKG

@xspswap/smart-order-router

Version:
26 lines (25 loc) 923 B
import { ChainId, Ether, NativeCurrency, Token } from '@x-swap-protocol/sdk-core'; export declare const V2_SUPPORTED: ChainId[]; export declare const ID_TO_CHAIN_ID: (id: number) => ChainId; export declare enum ChainName { XDC = "xdc-mainnet", APOTHEM = "xdc-apothem" } export declare enum NativeCurrencyName { XDC = "XDC" } export declare const NATIVE_NAMES_BY_ID: { [chainId: number]: string[]; }; export declare const NATIVE_CURRENCY: { [chainId: number]: NativeCurrencyName; }; export declare const ID_TO_NETWORK_NAME: (id: number) => ChainName; export declare const CHAIN_IDS_LIST: string[]; export declare const ID_TO_PROVIDER: (id: ChainId) => string; export declare class ExtendedEther extends Ether { get wrapped(): Token; private static _cachedExtendedEther; static onChain(chainId: number): ExtendedEther; } export declare function nativeOnChain(chainId: number): NativeCurrency;