diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-27 17:02:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-27 17:02:40 +0800 |
commit | f9fab216e9874a2457e614e55209705dd7828386 (patch) | |
tree | 5d9c16c1a51513a7da60cb6a4278845511144228 /packages/typescript-typings/types | |
parent | e59c57106cd15d45efb6f4100529cf6e5dfe71a8 (diff) | |
parent | 84bd54ba4025a33f4e311ec66d81d58b45e54d6b (diff) | |
download | dexon-sol-tools-f9fab216e9874a2457e614e55209705dd7828386.tar dexon-sol-tools-f9fab216e9874a2457e614e55209705dd7828386.tar.gz dexon-sol-tools-f9fab216e9874a2457e614e55209705dd7828386.tar.bz2 dexon-sol-tools-f9fab216e9874a2457e614e55209705dd7828386.tar.lz dexon-sol-tools-f9fab216e9874a2457e614e55209705dd7828386.tar.xz dexon-sol-tools-f9fab216e9874a2457e614e55209705dd7828386.tar.zst dexon-sol-tools-f9fab216e9874a2457e614e55209705dd7828386.zip |
Merge branch 'v2-prototype' into invalid-argument-error
Diffstat (limited to 'packages/typescript-typings/types')
-rw-r--r-- | packages/typescript-typings/types/web3-provider-engine/index.d.ts | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/typescript-typings/types/web3-provider-engine/index.d.ts b/packages/typescript-typings/types/web3-provider-engine/index.d.ts index 1733f2731..72ef434a7 100644 --- a/packages/typescript-typings/types/web3-provider-engine/index.d.ts +++ b/packages/typescript-typings/types/web3-provider-engine/index.d.ts @@ -1,6 +1,12 @@ declare module 'web3-provider-engine' { import { Provider, JSONRPCRequestPayload, JSONRPCResponsePayload } from 'ethereum-types'; + interface Web3ProviderEngineOptions { + pollingInterval?: number; + blockTracker?: any; + blockTrackerProvider?: any; + } class Web3ProviderEngine implements Provider { + constructor(options?: Web3ProviderEngineOptions); public on(event: string, handler: () => void): void; public send(payload: JSONRPCRequestPayload): void; public sendAsync( @@ -8,7 +14,9 @@ declare module 'web3-provider-engine' { callback: (error: null | Error, response: JSONRPCResponsePayload) => void, ): void; public addProvider(provider: any): void; - public start(): void; + // start block polling + public start(callback?: () => void): void; + // stop block polling public stop(): void; } export = Web3ProviderEngine; |