aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-09-06 19:00:13 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-09-06 19:00:13 +0800
commit7377df8a4d3fb72f19ba1e43ccc6f7648513c899 (patch)
tree6522b177aa087df6a63983dc888f52e10f9954a9
parent70a7f02d0fef4d09b46f5cf545e16b47d0186cdc (diff)
downloaddexon-sol-tools-7377df8a4d3fb72f19ba1e43ccc6f7648513c899.tar
dexon-sol-tools-7377df8a4d3fb72f19ba1e43ccc6f7648513c899.tar.gz
dexon-sol-tools-7377df8a4d3fb72f19ba1e43ccc6f7648513c899.tar.bz2
dexon-sol-tools-7377df8a4d3fb72f19ba1e43ccc6f7648513c899.tar.lz
dexon-sol-tools-7377df8a4d3fb72f19ba1e43ccc6f7648513c899.tar.xz
dexon-sol-tools-7377df8a4d3fb72f19ba1e43ccc6f7648513c899.tar.zst
dexon-sol-tools-7377df8a4d3fb72f19ba1e43ccc6f7648513c899.zip
Define sendAsync on HDWalletProvider
-rw-r--r--src/globals.d.ts11
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;
}