2018-07-31 01:59:52 +03:00
|
|
|
export declare type Network = {
|
|
|
|
name: string;
|
|
|
|
chainId: number;
|
|
|
|
ensAddress?: string;
|
2018-11-20 23:45:47 +03:00
|
|
|
_defaultProvider?: (providers: any) => any;
|
2018-07-31 01:59:52 +03:00
|
|
|
};
|
|
|
|
export declare type Networkish = Network | string | number;
|
2018-07-24 02:21:42 +03:00
|
|
|
/**
|
|
|
|
* getNetwork
|
|
|
|
*
|
|
|
|
* Converts a named common networks or chain ID (network ID) to a Network
|
|
|
|
* and verifies a network is a valid Network..
|
|
|
|
*/
|
|
|
|
export declare function getNetwork(network: Networkish): Network;
|