UNPKG

eulith-web3js

Version:

Official Eulith Typescript client library

48 lines (47 loc) 1.6 kB
export declare module Networks { /** * Eulith ships with compatibility with many EVM networks. This module helps * you manage the configuration of the network you're pointing to */ class Network { constructor({ chainId, name, eulithURL }: { chainId: number; name: string; eulithURL: string; }); /** * Return a new Network, with the provided values updated/replaced */ with({ chainId, name, eulithURL }: { chainId?: number; name?: string; eulithURL?: string; }): Network; readonly chainId: number; readonly name: string; readonly eulithURL: string; } class Predefined { static get all(): Network[]; /** * Lookup the network, either by chainId, or eulithURL, or name. Throws if none found. */ static get({ chainId, eulithURL, name }: { chainId?: number; eulithURL?: string; name?: string; }): Network; static readonly mainnet: Network; static readonly goerli: Network; static readonly polygon: Network; static readonly polygonMumbai: Network; static readonly arbitrum: Network; static readonly arbitrumGoerli: Network; static readonly optimism: Network; static readonly optimismGoerli: Network; static readonly avax: Network; static readonly celo: Network; static readonly base: Network; static readonly celoAlfajores: Network; } }