diff options
author | Jacob Evans <jacob@dekz.net> | 2018-01-31 13:19:47 +0800 |
---|---|---|
committer | Jacob Evans <jacob@dekz.net> | 2018-02-02 08:06:22 +0800 |
commit | ead990a734e0caf0ce0e5d0297c487756894acf2 (patch) | |
tree | 6adac8f131439c4fec897fb98c2f5626aa8c7548 /packages/subproviders/src/globals.d.ts | |
parent | d4631e14b2203bfd95b995d25819d8d9cb834336 (diff) | |
download | dexon-sol-tools-ead990a734e0caf0ce0e5d0297c487756894acf2.tar.gz dexon-sol-tools-ead990a734e0caf0ce0e5d0297c487756894acf2.tar.zst dexon-sol-tools-ead990a734e0caf0ce0e5d0297c487756894acf2.zip |
Nonce tracker subprovider
Caches the nonce when a request to getTransactionCount is made
and increments the pending nonce after successful transactions
Diffstat (limited to 'packages/subproviders/src/globals.d.ts')
-rw-r--r-- | packages/subproviders/src/globals.d.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/subproviders/src/globals.d.ts b/packages/subproviders/src/globals.d.ts index 53457fa24..595bae89e 100644 --- a/packages/subproviders/src/globals.d.ts +++ b/packages/subproviders/src/globals.d.ts @@ -1,3 +1,4 @@ + declare module 'dirty-chai'; declare module 'es6-promisify'; @@ -13,7 +14,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 +100,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' { |