aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSergey Ukustov <sergey@ukstv.me>2017-07-10 06:04:47 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-10 18:24:33 +0800
commit2bc9d5d490363fabafb75ff9cda7f80095a0372d (patch)
tree19feeddec6b201254cac326db1fe9722a07e57ac /packages
parent9e1c142f0296acd74d0392d48568f294cdbf4e27 (diff)
downloaddexon-sol-tools-2bc9d5d490363fabafb75ff9cda7f80095a0372d.tar.gz
dexon-sol-tools-2bc9d5d490363fabafb75ff9cda7f80095a0372d.tar.zst
dexon-sol-tools-2bc9d5d490363fabafb75ff9cda7f80095a0372d.zip
filter.watch callback param accepts arguments
Diffstat (limited to 'packages')
-rw-r--r--packages/web3-typescript-typings/index.d.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts
index e492e2946..147a211a3 100644
--- a/packages/web3-typescript-typings/index.d.ts
+++ b/packages/web3-typescript-typings/index.d.ts
@@ -68,9 +68,15 @@ declare module 'web3' {
topics: string[];
}
+ interface SolidityEvent<A> {
+ event: string
+ address: string
+ args: A
+ }
+
interface FilterResult {
get(callback: () => void): void;
- watch(callback: () => void): void;
+ watch<A>(callback: (error: string|null, result: SolidityEvent<A>) => void): void;
stopWatching(): void;
}