From 6eb5411029d8177ed93dc46dc98c255c9f99feb5 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Wed, 25 Oct 2017 18:47:31 +0300 Subject: Improve log events types --- packages/web3-typescript-typings/index.d.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'packages') diff --git a/packages/web3-typescript-typings/index.d.ts b/packages/web3-typescript-typings/index.d.ts index 847f5c961..b5d6c08fc 100644 --- a/packages/web3-typescript-typings/index.d.ts +++ b/packages/web3-typescript-typings/index.d.ts @@ -114,15 +114,22 @@ declare module 'web3' { type LogTopic = null|string|string[]; - interface SolidityEvent { + interface DecodedLogEntry extends LogEntry { event: string; - address: string; args: A; } + interface DecodedLogEntryEvent extends DecodedLogEntry { + removed: boolean; + } + + interface LogEntryEvent extends LogEntry { + removed: boolean; + } + interface FilterResult { get(callback: () => void): void; - watch(callback: (err: Error, result: SolidityEvent) => void): void; + watch(callback: (err: Error, result: LogEntryEvent) => void): void; stopWatching(callback: () => void): void; } -- cgit v1.2.3