ethers.js/packages/experimental/retry-provider.d.ts
2019-05-14 18:48:48 -04:00

15 lines
490 B
TypeScript

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>;
}