UNPKG

eamutils

Version:

Some reusable functions in some projects

25 lines (24 loc) 706 B
export interface IProvider { chainId: number; rpcs: string[]; logo: string; weth?: IWETH; name?: string; explorer?: string; router?: string; factory?: string; factory_abi?: string; router_abi?: string; multicall?: string; base_pairs?: string[]; } export interface IWETH { address: string; name: string; symbol: string; decimals: number; } export declare const createProvider: (provider: IProvider) => IProvider; export declare const getDefaultProviders: () => IProvider[]; export declare const configureProviders: (providers: IProvider[]) => IProvider[]; export declare const getProviderByChainId: (chainId: number) => IProvider | undefined;