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

20 lines
708 B
TypeScript
Raw Normal View History

2020-01-19 05:48:12 +03:00
import { Provider } from "@ethersproject/abstract-provider";
2020-05-04 04:11:18 +03:00
import { Network } from "@ethersproject/networks";
2019-05-15 01:48:48 +03:00
import { BaseProvider } from "./base-provider";
2020-01-19 05:48:12 +03:00
export interface FallbackProviderConfig {
provider: Provider;
priority?: number;
stallTimeout?: number;
weight?: number;
}
2019-05-15 01:48:48 +03:00
export declare class FallbackProvider extends BaseProvider {
2020-02-07 02:21:34 +03:00
readonly providerConfigs: ReadonlyArray<FallbackProviderConfig>;
2019-05-15 01:48:48 +03:00
readonly quorum: number;
2020-01-19 05:48:12 +03:00
_highestBlockNumber: number;
constructor(providers: Array<Provider | FallbackProviderConfig>, quorum?: number);
2020-05-04 00:53:58 +03:00
detectNetwork(): Promise<Network>;
2019-05-15 01:48:48 +03:00
perform(method: string, params: {
[name: string]: any;
2020-01-19 05:48:12 +03:00
}): Promise<any>;
2019-05-15 01:48:48 +03:00
}