aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-09-04 21:26:47 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-09-04 22:36:18 +0800
commitba6351841d3cf3ff800b3cd1143b363a64344d2d (patch)
tree758366232f5523e6cb599931a5a41cc8b00913f1 /packages
parentcdc786a1e36ad60106244fa183e335b36e6889b9 (diff)
downloaddexon-sol-tools-ba6351841d3cf3ff800b3cd1143b363a64344d2d.tar.gz
dexon-sol-tools-ba6351841d3cf3ff800b3cd1143b363a64344d2d.tar.zst
dexon-sol-tools-ba6351841d3cf3ff800b3cd1143b363a64344d2d.zip
Add temporarily missing web3-provider-engine types in subproviders
Diffstat (limited to 'packages')
-rw-r--r--packages/subproviders/src/globals.d.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/subproviders/src/globals.d.ts b/packages/subproviders/src/globals.d.ts
index 94e63a32d..3cbf84e37 100644
--- a/packages/subproviders/src/globals.d.ts
+++ b/packages/subproviders/src/globals.d.ts
@@ -4,3 +4,21 @@ declare module '*.json' {
export default json;
/* tslint:enable */
}
+declare module 'web3-provider-engine/util/rpc-cache-utils' {
+ class ProviderEngineRpcUtils {
+ public static blockTagForPayload(payload: any): string | null;
+ }
+ export = ProviderEngineRpcUtils;
+}
+declare module 'web3-provider-engine/subproviders/fixture' {
+ import { JSONRPCRequestPayload, JSONRPCResponsePayload } from 'ethereum-types';
+ class FixtureSubprovider {
+ constructor(staticResponses: any);
+ public handleRequest(
+ payload: JSONRPCRequestPayload,
+ next: () => void,
+ end: (err: Error | null, data?: JSONRPCResponsePayload) => void,
+ ): void;
+ }
+ export = FixtureSubprovider;
+}