ethers.js/packages/experimental/lib/retry-provider.d.ts

15 lines
490 B
TypeScript
Raw Normal View History

2019-05-15 01:48:48 +03:00
import { ethers } from "ethers";
export declare type RetryOptions = {
timeout?: number;
floor?: number;
ceiling?: number;
interval?: number;
retryLimit?: number;
};
export declare class RetryProvider extends ethers.providers.BaseProvider {
readonly provider: ethers.providers.BaseProvider;
readonly options: RetryOptions;
constructor(provider: ethers.providers.BaseProvider, options?: RetryOptions);
perform(method: string, params: any): Promise<any>;
}