import { BigNumber } from '../utils/bignumber'; import { Provider as AbstractProvider } from './abstract-provider'; import { Block, BlockTag, EventType, Filter, Listener, Log, TransactionReceipt, TransactionRequest, TransactionResponse } from './abstract-provider'; import { BigNumberish } from '../utils/bignumber'; import { Transaction } from '../utils/transaction'; import { Network, Networkish } from '../utils/networks'; export declare class Provider extends AbstractProvider { private _network; private _events; protected _emitted: any; private _pollingInterval; private _poller; private _lastBlockNumber; private _balances; /** * ready * * A Promise that resolves only once the provider is ready. * * Sub-classes that call the super with a network without a chainId * MUST set this. Standard named networks have a known chainId. * */ protected ready: Promise; constructor(network: Networkish | Promise); private _doPoll; resetEventsBlock(blockNumber: number): void; readonly network: Network; getNetwork(): Promise; readonly blockNumber: number; polling: boolean; pollingInterval: number; waitForTransaction(transactionHash: string, timeout?: number): Promise; getBlockNumber(): Promise; getGasPrice(): Promise; getBalance(addressOrName: string | Promise, blockTag?: BlockTag | Promise): Promise; getTransactionCount(addressOrName: string | Promise, blockTag?: BlockTag | Promise): Promise; getCode(addressOrName: string | Promise, blockTag?: BlockTag | Promise): Promise; getStorageAt(addressOrName: string | Promise, position: BigNumberish | Promise, blockTag?: BlockTag | Promise): Promise; sendTransaction(signedTransaction: string | Promise): Promise; _wrapTransaction(tx: Transaction, hash?: string): TransactionResponse; call(transaction: TransactionRequest): Promise; estimateGas(transaction: TransactionRequest): Promise; getBlock(blockHashOrBlockTag: BlockTag | string | Promise): Promise; getTransaction(transactionHash: string): Promise; getTransactionReceipt(transactionHash: string): Promise; getLogs(filter: Filter): Promise>; getEtherPrice(): Promise; private _resolveNames; private _getResolver; resolveName(name: string | Promise): Promise; lookupAddress(address: string | Promise): Promise; static checkTransactionResponse(transaction: any): TransactionResponse; doPoll(): void; perform(method: string, params: any): Promise; protected _startPending(): void; protected _stopPending(): void; private _addEventListener; on(eventName: EventType, listener: Listener): Provider; once(eventName: EventType, listener: Listener): Provider; addEventListener(eventName: EventType, listener: Listener): Provider; emit(eventName: EventType, ...args: Array): boolean; listenerCount(eventName?: EventType): number; listeners(eventName: EventType): Array; removeAllListeners(eventName: EventType): Provider; removeListener(eventName: EventType, listener: Listener): Provider; }