diff options
author | Fabio Berger <me@fabioberger.com> | 2017-11-09 07:59:59 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-11-09 07:59:59 +0800 |
commit | ee3115550e26b276c35b33fed085f46a08ca05d5 (patch) | |
tree | 56681d764d96f1c646e53367327204cc1961f4a9 /src/mempool/event_watcher.ts | |
parent | d39852c0cf8112015235e938df16a481e84b9ab0 (diff) | |
download | dexon-sol-tools-ee3115550e26b276c35b33fed085f46a08ca05d5.tar dexon-sol-tools-ee3115550e26b276c35b33fed085f46a08ca05d5.tar.gz dexon-sol-tools-ee3115550e26b276c35b33fed085f46a08ca05d5.tar.bz2 dexon-sol-tools-ee3115550e26b276c35b33fed085f46a08ca05d5.tar.lz dexon-sol-tools-ee3115550e26b276c35b33fed085f46a08ca05d5.tar.xz dexon-sol-tools-ee3115550e26b276c35b33fed085f46a08ca05d5.tar.zst dexon-sol-tools-ee3115550e26b276c35b33fed085f46a08ca05d5.zip |
Add todo comments
Diffstat (limited to 'src/mempool/event_watcher.ts')
-rw-r--r-- | src/mempool/event_watcher.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mempool/event_watcher.ts b/src/mempool/event_watcher.ts index ac07badfe..cb8921cfd 100644 --- a/src/mempool/event_watcher.ts +++ b/src/mempool/event_watcher.ts @@ -47,6 +47,7 @@ export class EventWatcher { this._lastMempoolEvents = pendingEvents; } private async _getMempoolEventsAsync(): Promise<Web3.LogEntry[]> { + // TODO: Allow users to listen to any number of confirmations deep, not just mempool const mempoolFilter = { fromBlock: BlockParamLiteral.Pending, toBlock: BlockParamLiteral.Pending, @@ -54,6 +55,7 @@ export class EventWatcher { const pendingEvents = await this._web3Wrapper.getLogsAsync(mempoolFilter); return pendingEvents; } + // TODO: Let's emit out own LogEntry type that has property isRemoved rather then removed private async _emitDifferencesAsync(logs: Web3.LogEntry[], isRemoved: boolean): Promise<void> { for (const log of logs) { const logEvent = { |