Add temporarily missing web3-provider-engine types in subproviders

This commit is contained in:
Leonid Logvinov
2018-09-04 15:26:47 +02:00
parent cdc786a1e3
commit ba6351841d

View File

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