aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-10-30 16:53:59 +0800
committerFabio Berger <me@fabioberger.com>2017-10-31 00:49:16 +0800
commit68a8556cd20e45731343053ece9fb92944799a4c (patch)
treef92d4092c9f46c9b5d2435cda2caddd56e8d4eb1
parente4d8b1c4d2a3498d5bc0ce84006d15d6b80a9587 (diff)
downloaddexon-sol-tools-68a8556cd20e45731343053ece9fb92944799a4c.tar
dexon-sol-tools-68a8556cd20e45731343053ece9fb92944799a4c.tar.gz
dexon-sol-tools-68a8556cd20e45731343053ece9fb92944799a4c.tar.bz2
dexon-sol-tools-68a8556cd20e45731343053ece9fb92944799a4c.tar.lz
dexon-sol-tools-68a8556cd20e45731343053ece9fb92944799a4c.tar.xz
dexon-sol-tools-68a8556cd20e45731343053ece9fb92944799a4c.tar.zst
dexon-sol-tools-68a8556cd20e45731343053ece9fb92944799a4c.zip
Rename MempoolWatcher to EventWatcher and remove from public interface
-rw-r--r--src/0x.ts9
-rw-r--r--src/mempool/event_watcher.ts (renamed from src/mempool/mempool_watcher.ts)2
2 files changed, 1 insertions, 10 deletions
diff --git a/src/0x.ts b/src/0x.ts
index 10db7e158..4bd37c260 100644
--- a/src/0x.ts
+++ b/src/0x.ts
@@ -11,7 +11,6 @@ import {assert} from './utils/assert';
import {AbiDecoder} from './utils/abi_decoder';
import {intervalUtils} from './utils/interval_utils';
import {artifacts} from './artifacts';
-import {MempoolWatcher} from './mempool/mempool_watcher';
import {ExchangeWrapper} from './contract_wrappers/exchange_wrapper';
import {TokenRegistryWrapper} from './contract_wrappers/token_registry_wrapper';
import {EtherTokenWrapper} from './contract_wrappers/ether_token_wrapper';
@@ -66,10 +65,6 @@ export class ZeroEx {
* tokenTransferProxy smart contract.
*/
public proxy: TokenTransferProxyWrapper;
- /**
- * An instance of the MempoolWatcher class containing methods for watching pending events.
- */
- public mempool: MempoolWatcher;
private _web3Wrapper: Web3Wrapper;
private _abiDecoder: AbiDecoder;
/**
@@ -197,10 +192,6 @@ export class ZeroEx {
};
this._web3Wrapper = new Web3Wrapper(provider, defaults);
const mempoolPollingIntervalMs = _.isUndefined(config) ? undefined : config.mempoolPollingIntervalMs;
- this.mempool = new MempoolWatcher(
- this._web3Wrapper,
- mempoolPollingIntervalMs,
- );
this.token = new TokenWrapper(
this._web3Wrapper,
this._abiDecoder,
diff --git a/src/mempool/mempool_watcher.ts b/src/mempool/event_watcher.ts
index 70d263fcb..e28219682 100644
--- a/src/mempool/mempool_watcher.ts
+++ b/src/mempool/event_watcher.ts
@@ -7,7 +7,7 @@ import {intervalUtils} from '../utils/interval_utils';
const DEFAULT_MEMPOOL_POLLING_INTERVAL = 200;
-export class MempoolWatcher {
+export class EventWatcher {
private _web3Wrapper: Web3Wrapper;
private _pollingIntervalMs: number;
private _intervalId: NodeJS.Timer;