2018-07-30 18:59:52 -04:00
|
|
|
export declare type Network = {
|
|
|
|
name: string;
|
|
|
|
chainId: number;
|
|
|
|
ensAddress?: string;
|
2018-11-20 15:45:47 -05:00
|
|
|
_defaultProvider?: (providers: any) => any;
|
2018-07-30 18:59:52 -04:00
|
|
|
};
|
|
|
|
export declare type Networkish = Network | string | number;
|
2018-07-23 19:21:42 -04: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;
|