import { JsonRpcProvider } from 'ethers/providers'; import { Networkish } from 'ethers/utils'; import { ConnectionInfo } from 'ethers/utils/web'; /** * Custom ethers.js provider automatically retrying any errors coming from node */ export declare class RetryProvider extends JsonRpcProvider { maxAttempts: number; constructor(url: ConnectionInfo | string, attempts: number, network?: Networkish); perform(method: string, params: any): Promise; private handleError; /** * Wraps not critical errors in RetryableError */ private transformError; }