2018-06-13 22:39:39 +03:00
|
|
|
'use strict';
|
|
|
|
|
2018-08-03 03:30:44 +03:00
|
|
|
import { BaseProvider } from './base-provider';
|
2018-06-13 22:39:39 +03:00
|
|
|
|
|
|
|
import { EtherscanProvider } from './etherscan-provider';
|
|
|
|
import { FallbackProvider } from './fallback-provider';
|
2018-06-18 12:42:41 +03:00
|
|
|
import { IpcProvider } from './ipc-provider';
|
2018-06-13 22:39:39 +03:00
|
|
|
import { InfuraProvider } from './infura-provider';
|
2018-07-15 00:19:08 +03:00
|
|
|
import { JsonRpcProvider, JsonRpcSigner } from './json-rpc-provider';
|
2018-06-13 22:39:39 +03:00
|
|
|
import { Web3Provider } from './web3-provider';
|
|
|
|
|
2018-07-31 01:59:52 +03:00
|
|
|
///////////////////////////////
|
|
|
|
// Imported Abstracts
|
|
|
|
|
2018-08-03 03:30:44 +03:00
|
|
|
//import { Provider as AbstractProvider } from './abstract-provider';
|
2018-07-31 01:59:52 +03:00
|
|
|
|
|
|
|
///////////////////////////////
|
|
|
|
// Imported Types
|
|
|
|
|
2018-08-03 03:30:44 +03:00
|
|
|
//import { Network } from '../utils/networks';
|
2018-07-31 01:59:52 +03:00
|
|
|
|
|
|
|
///////////////////////////////
|
2018-07-15 00:19:08 +03:00
|
|
|
|
2018-08-03 03:30:44 +03:00
|
|
|
/*
|
2018-07-17 08:44:04 +03:00
|
|
|
function getDefaultProvider(network?: Network | string): Provider {
|
2018-06-13 22:39:39 +03:00
|
|
|
return new FallbackProvider([
|
|
|
|
new InfuraProvider(network),
|
|
|
|
new EtherscanProvider(network),
|
|
|
|
]);
|
|
|
|
}
|
2018-08-03 03:30:44 +03:00
|
|
|
*/
|
2018-06-13 22:39:39 +03:00
|
|
|
|
|
|
|
export {
|
2018-08-03 03:30:44 +03:00
|
|
|
BaseProvider,
|
2018-06-13 22:39:39 +03:00
|
|
|
|
|
|
|
FallbackProvider,
|
|
|
|
|
|
|
|
EtherscanProvider,
|
|
|
|
InfuraProvider,
|
|
|
|
JsonRpcProvider,
|
|
|
|
Web3Provider,
|
|
|
|
|
2018-07-15 00:19:08 +03:00
|
|
|
IpcProvider,
|
|
|
|
|
|
|
|
JsonRpcSigner
|
2018-06-18 12:42:41 +03:00
|
|
|
};
|
2018-06-24 11:03:21 +03:00
|
|
|
|