diff options
author | Jacob Evans <dekz@dekz.net> | 2018-02-07 07:29:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-07 07:29:19 +0800 |
commit | 548246c05f128d23d701d9b738ce53deaf783f63 (patch) | |
tree | 2dd525ed3624352160c1de2747b7eb7932e28820 /packages/subproviders/src/globals.d.ts | |
parent | 629653425da973df0ac5d21d11da5a61c3a31e09 (diff) | |
parent | 4be8eca3fe6a81b468776f5413f25ec726e4e752 (diff) | |
download | dexon-sol-tools-548246c05f128d23d701d9b738ce53deaf783f63.tar dexon-sol-tools-548246c05f128d23d701d9b738ce53deaf783f63.tar.gz dexon-sol-tools-548246c05f128d23d701d9b738ce53deaf783f63.tar.bz2 dexon-sol-tools-548246c05f128d23d701d9b738ce53deaf783f63.tar.lz dexon-sol-tools-548246c05f128d23d701d9b738ce53deaf783f63.tar.xz dexon-sol-tools-548246c05f128d23d701d9b738ce53deaf783f63.tar.zst dexon-sol-tools-548246c05f128d23d701d9b738ce53deaf783f63.zip |
Merge pull request #355 from 0xProject/feature/subproviders/nonce-tracker
Nonce tracker subprovider
Diffstat (limited to 'packages/subproviders/src/globals.d.ts')
-rw-r--r-- | packages/subproviders/src/globals.d.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/subproviders/src/globals.d.ts b/packages/subproviders/src/globals.d.ts index 53457fa24..6f344dcd3 100644 --- a/packages/subproviders/src/globals.d.ts +++ b/packages/subproviders/src/globals.d.ts @@ -13,7 +13,9 @@ declare module 'ethereumjs-tx' { public r: Buffer; public s: Buffer; public v: Buffer; + public nonce: Buffer; public serialize(): Buffer; + public getSenderAddress(): Buffer; constructor(txParams: any); } export = EthereumTx; @@ -97,6 +99,24 @@ declare module 'web3-provider-engine' { } export = Web3ProviderEngine; } +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 * as Web3 from 'web3'; + class FixtureSubprovider { + constructor(staticResponses: any); + public handleRequest( + payload: Web3.JSONRPCRequestPayload, + next: () => void, + end: (err: Error | null, data?: any) => void, + ): void; + } + export = FixtureSubprovider; +} // hdkey declarations declare module 'hdkey' { |