36 lines
1.6 KiB
JavaScript
36 lines
1.6 KiB
JavaScript
'use strict';
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var provider_1 = require("./provider");
|
|
exports.Provider = provider_1.Provider;
|
|
exports.ProviderSigner = provider_1.ProviderSigner;
|
|
var etherscan_provider_1 = require("./etherscan-provider");
|
|
exports.EtherscanProvider = etherscan_provider_1.EtherscanProvider;
|
|
var fallback_provider_1 = require("./fallback-provider");
|
|
exports.FallbackProvider = fallback_provider_1.FallbackProvider;
|
|
var ipc_provider_1 = require("./ipc-provider");
|
|
exports.IpcProvider = ipc_provider_1.IpcProvider;
|
|
var infura_provider_1 = require("./infura-provider");
|
|
exports.InfuraProvider = infura_provider_1.InfuraProvider;
|
|
var json_rpc_provider_1 = require("./json-rpc-provider");
|
|
exports.JsonRpcProvider = json_rpc_provider_1.JsonRpcProvider;
|
|
var web3_provider_1 = require("./web3-provider");
|
|
exports.Web3Provider = web3_provider_1.Web3Provider;
|
|
function getDefaultProvider(network) {
|
|
return new fallback_provider_1.FallbackProvider([
|
|
new infura_provider_1.InfuraProvider(network),
|
|
new etherscan_provider_1.EtherscanProvider(network),
|
|
]);
|
|
}
|
|
exports.getDefaultProvider = getDefaultProvider;
|
|
exports.default = {
|
|
Provider: provider_1.Provider,
|
|
getDefaultProvider: getDefaultProvider,
|
|
ProviderSigner: provider_1.ProviderSigner,
|
|
FallbackProvider: fallback_provider_1.FallbackProvider,
|
|
EtherscanProvider: etherscan_provider_1.EtherscanProvider,
|
|
InfuraProvider: infura_provider_1.InfuraProvider,
|
|
JsonRpcProvider: json_rpc_provider_1.JsonRpcProvider,
|
|
Web3Provider: web3_provider_1.Web3Provider,
|
|
IpcProvider: ipc_provider_1.IpcProvider
|
|
};
|