1 | import { SupportedProvider, ZeroExProvider } from 'ethereum-types';
|
2 | export declare const providerUtils: {
|
3 | /**
|
4 | * Starts the Web3ProviderEngine without excess block polling
|
5 | * @param providerEngine The Web3ProviderEngine
|
6 | */
|
7 | startProviderEngine(providerEngine: any): void;
|
8 | /**
|
9 | * Standardize the supported provider types into our internal provider interface
|
10 | * or throw if unsupported provider supplied.
|
11 | * @param supportedProvider Potentially supported provider instance
|
12 | * @return Provider that conforms of our internal provider interface
|
13 | */
|
14 | standardizeOrThrow(supportedProvider: SupportedProvider): ZeroExProvider;
|
15 | /**
|
16 | * Retrieve the chain ID from a supported provider.
|
17 | * @param supportedProvider A supported provider instance.
|
18 | * @return A promise that resolves to the chain ID of the network the provider
|
19 | * is connected to.
|
20 | */
|
21 | getChainIdAsync(supportedProvider: SupportedProvider): Promise<number>;
|
22 | };
|
23 | //# sourceMappingURL=provider_utils.d.ts.map |
\ | No newline at end of file |