diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-06 19:00:13 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-09-06 19:00:13 +0800 |
commit | 7377df8a4d3fb72f19ba1e43ccc6f7648513c899 (patch) | |
tree | 6522b177aa087df6a63983dc888f52e10f9954a9 | |
parent | 70a7f02d0fef4d09b46f5cf545e16b47d0186cdc (diff) | |
download | dexon-0x-contracts-7377df8a4d3fb72f19ba1e43ccc6f7648513c899.tar dexon-0x-contracts-7377df8a4d3fb72f19ba1e43ccc6f7648513c899.tar.gz dexon-0x-contracts-7377df8a4d3fb72f19ba1e43ccc6f7648513c899.tar.bz2 dexon-0x-contracts-7377df8a4d3fb72f19ba1e43ccc6f7648513c899.tar.lz dexon-0x-contracts-7377df8a4d3fb72f19ba1e43ccc6f7648513c899.tar.xz dexon-0x-contracts-7377df8a4d3fb72f19ba1e43ccc6f7648513c899.tar.zst dexon-0x-contracts-7377df8a4d3fb72f19ba1e43ccc6f7648513c899.zip |
Define sendAsync on HDWalletProvider
-rw-r--r-- | src/globals.d.ts | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/globals.d.ts b/src/globals.d.ts index 39d0860eb..2120bd45d 100644 --- a/src/globals.d.ts +++ b/src/globals.d.ts @@ -63,10 +63,15 @@ declare module 'ethereumjs-abi' { } // truffle-hdwallet-provider declarations -declare class HDWalletProvider { - constructor(mnemonic: string, rpcUrl: string); -} declare module 'truffle-hdwallet-provider' { + import * as Web3 from 'web3'; + class HDWalletProvider implements Web3.Provider { + constructor(mnemonic: string, rpcUrl: string); + public sendAsync( + payload: Web3.JSONRPCRequestPayload, + callback: (err: Error, result: Web3.JSONRPCResponsePayload) => void, + ): void; + } export = HDWalletProvider; } |