diff options
Diffstat (limited to 'packages/web3-typescript-typings/index.d.ts')
-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; } |