ethers.js/src.ts/providers/index.ts
2018-08-02 20:30:44 -04:00

48 lines
1023 B
TypeScript

'use strict';
import { BaseProvider } from './base-provider';
import { EtherscanProvider } from './etherscan-provider';
import { FallbackProvider } from './fallback-provider';
import { IpcProvider } from './ipc-provider';
import { InfuraProvider } from './infura-provider';
import { JsonRpcProvider, JsonRpcSigner } from './json-rpc-provider';
import { Web3Provider } from './web3-provider';
///////////////////////////////
// Imported Abstracts
//import { Provider as AbstractProvider } from './abstract-provider';
///////////////////////////////
// Imported Types
//import { Network } from '../utils/networks';
///////////////////////////////
/*
function getDefaultProvider(network?: Network | string): Provider {
return new FallbackProvider([
new InfuraProvider(network),
new EtherscanProvider(network),
]);
}
*/
export {
BaseProvider,
FallbackProvider,
EtherscanProvider,
InfuraProvider,
JsonRpcProvider,
Web3Provider,
IpcProvider,
JsonRpcSigner
};