2019-05-15 01:25:46 +03:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
import {
|
|
|
|
Block,
|
|
|
|
BlockTag,
|
|
|
|
EventType,
|
|
|
|
Filter,
|
|
|
|
Log,
|
|
|
|
Listener,
|
|
|
|
Provider,
|
|
|
|
TransactionReceipt,
|
|
|
|
TransactionRequest,
|
|
|
|
TransactionResponse
|
|
|
|
} from "@ethersproject/abstract-provider";
|
|
|
|
|
|
|
|
import { getNetwork } from "@ethersproject/networks";
|
|
|
|
import { Network, Networkish } from "@ethersproject/networks";
|
|
|
|
|
|
|
|
import { BaseProvider } from "./base-provider";
|
|
|
|
|
|
|
|
import { AlchemyProvider } from "./alchemy-provider";
|
2019-08-21 08:45:06 +03:00
|
|
|
import { CloudflareProvider } from "./cloudflare-provider";
|
2019-05-15 01:25:46 +03:00
|
|
|
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 { NodesmithProvider } from "./nodesmith-provider";
|
|
|
|
import { Web3Provider } from "./web3-provider";
|
|
|
|
|
|
|
|
import { AsyncSendable } from "./web3-provider";
|
|
|
|
|
2019-07-21 02:09:49 +03:00
|
|
|
import { Formatter } from "./formatter";
|
2019-05-15 01:25:46 +03:00
|
|
|
|
|
|
|
////////////////////////
|
|
|
|
// Exports
|
|
|
|
|
|
|
|
export {
|
|
|
|
|
|
|
|
// Abstract Providers (or Abstract-ish)
|
|
|
|
Provider,
|
|
|
|
BaseProvider,
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////
|
|
|
|
// Concreate Providers
|
|
|
|
|
|
|
|
FallbackProvider,
|
|
|
|
|
|
|
|
AlchemyProvider,
|
2019-08-21 08:45:06 +03:00
|
|
|
CloudflareProvider,
|
2019-05-15 01:25:46 +03:00
|
|
|
EtherscanProvider,
|
|
|
|
InfuraProvider,
|
|
|
|
JsonRpcProvider,
|
|
|
|
NodesmithProvider,
|
|
|
|
Web3Provider,
|
|
|
|
|
|
|
|
IpcProvider,
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////
|
|
|
|
// Signer
|
|
|
|
|
|
|
|
JsonRpcSigner,
|
|
|
|
|
|
|
|
|
|
|
|
///////////////////////
|
|
|
|
// Functions
|
|
|
|
|
|
|
|
getNetwork,
|
|
|
|
|
|
|
|
|
2019-07-21 02:09:49 +03:00
|
|
|
///////////////////////
|
|
|
|
// Objects
|
|
|
|
|
|
|
|
Formatter,
|
|
|
|
|
|
|
|
|
2019-05-15 01:25:46 +03:00
|
|
|
///////////////////////
|
|
|
|
// Types
|
|
|
|
|
|
|
|
Block,
|
|
|
|
BlockTag,
|
|
|
|
EventType,
|
|
|
|
Filter,
|
|
|
|
Log,
|
|
|
|
Listener,
|
|
|
|
TransactionReceipt,
|
|
|
|
TransactionRequest,
|
|
|
|
TransactionResponse,
|
|
|
|
|
|
|
|
AsyncSendable,
|
|
|
|
|
|
|
|
Network,
|
|
|
|
Networkish
|
|
|
|
};
|
|
|
|
|