aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}