aboutsummaryrefslogtreecommitdiffstats
path: root/src/globals.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/globals.d.ts')
-rw-r--r--src/globals.d.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/globals.d.ts b/src/globals.d.ts
index 6f5f13b4e..39d0860eb 100644
--- a/src/globals.d.ts
+++ b/src/globals.d.ts
@@ -69,3 +69,18 @@ declare class HDWalletProvider {
declare module 'truffle-hdwallet-provider' {
export = HDWalletProvider;
}
+
+// abi-decoder declarations
+interface DecodedLogArg {
+ name: string;
+ value: string|BigNumber.BigNumber;
+}
+interface DecodedLog {
+ name: string;
+ events: DecodedLogArg[];
+}
+declare module 'abi-decoder' {
+ import * as Web3 from 'web3';
+ const addABI: (abi: Web3.AbiDefinition) => void;
+ const decodeLogs: (logs: Web3.LogEntry[]) => DecodedLog[];
+}