filter.watch callback param accepts arguments

This commit is contained in:
Sergey Ukustov 2017-07-10 01:04:47 +03:00 committed by Leonid Logvinov
parent 9e1c142f02
commit 2bc9d5d490
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4

View File

@ -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;
}