2018-07-31 01:59:52 +03:00
|
|
|
export declare type Network = {
|
|
|
|
name: string;
|
|
|
|
chainId: number;
|
|
|
|
ensAddress?: string;
|
|
|
|
};
|
|
|
|
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;
|