ethers.js/packages/providers/lib.esm/fallback-provider.d.ts

14 lines
515 B
TypeScript
Raw Normal View History

2019-05-15 01:48:48 +03:00
import { BaseProvider } from "./base-provider";
export declare class FallbackProvider extends BaseProvider {
readonly providers: Array<BaseProvider>;
readonly weights: Array<number>;
readonly quorum: number;
constructor(providers: Array<BaseProvider>, quorum?: number, weights?: Array<number>);
2019-08-21 08:52:13 +03:00
static doPerform(provider: BaseProvider, method: string, params: {
[name: string]: any;
}): Promise<any>;
2019-05-15 01:48:48 +03:00
perform(method: string, params: {
[name: string]: any;
}): any;
}