diff options
author | Sergey Ukustov <sergey@ukstv.me> | 2017-07-10 06:04:47 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-10 18:24:33 +0800 |
commit | 2bc9d5d490363fabafb75ff9cda7f80095a0372d (patch) | |
tree | 19feeddec6b201254cac326db1fe9722a07e57ac /packages | |
parent | 9e1c142f0296acd74d0392d48568f294cdbf4e27 (diff) | |
download | dexon-sol-tools-2bc9d5d490363fabafb75ff9cda7f80095a0372d.tar dexon-sol-tools-2bc9d5d490363fabafb75ff9cda7f80095a0372d.tar.gz dexon-sol-tools-2bc9d5d490363fabafb75ff9cda7f80095a0372d.tar.bz2 dexon-sol-tools-2bc9d5d490363fabafb75ff9cda7f80095a0372d.tar.lz dexon-sol-tools-2bc9d5d490363fabafb75ff9cda7f80095a0372d.tar.xz 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.ts | 8 |
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; } |