diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-25 23:47:31 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-10 18:24:36 +0800 |
commit | 6eb5411029d8177ed93dc46dc98c255c9f99feb5 (patch) | |
tree | 7e10263e5a67218f76c493dd038082d8c0e37d63 | |
parent | 73d13d61a764a0bae13f32d1e04552233d0844eb (diff) | |
download | dexon-sol-tools-6eb5411029d8177ed93dc46dc98c255c9f99feb5.tar.gz dexon-sol-tools-6eb5411029d8177ed93dc46dc98c255c9f99feb5.tar.zst dexon-sol-tools-6eb5411029d8177ed93dc46dc98c255c9f99feb5.zip |
Improve log events types
-rw-r--r-- | packages/web3-typescript-typings/index.d.ts | 13 |
1 files changed, 10 insertions, 3 deletions
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<A> { + interface DecodedLogEntry<A> extends LogEntry { event: string; - address: string; args: A; } + interface DecodedLogEntryEvent<A> extends DecodedLogEntry<A> { + removed: boolean; + } + + interface LogEntryEvent extends LogEntry { + removed: boolean; + } + interface FilterResult { get(callback: () => void): void; - watch<A>(callback: (err: Error, result: SolidityEvent<A>) => void): void; + watch(callback: (err: Error, result: LogEntryEvent) => void): void; stopWatching(callback: () => void): void; } |