aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-10-30 16:53:59 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-10 03:11:45 +0800
commitfd54a6a3ad91a6aaff0e2a81f4fd9856b02ff320 (patch)
tree1b702de7d4efa36e543aa032090688ebd4d6c9bb /src
parenta2ffd7de2ec718b87dcaee950160f000d9e3d28f (diff)
downloaddexon-sol-tools-fd54a6a3ad91a6aaff0e2a81f4fd9856b02ff320.tar
dexon-sol-tools-fd54a6a3ad91a6aaff0e2a81f4fd9856b02ff320.tar.gz
dexon-sol-tools-fd54a6a3ad91a6aaff0e2a81f4fd9856b02ff320.tar.bz2
dexon-sol-tools-fd54a6a3ad91a6aaff0e2a81f4fd9856b02ff320.tar.lz
dexon-sol-tools-fd54a6a3ad91a6aaff0e2a81f4fd9856b02ff320.tar.xz
dexon-sol-tools-fd54a6a3ad91a6aaff0e2a81f4fd9856b02ff320.tar.zst
dexon-sol-tools-fd54a6a3ad91a6aaff0e2a81f4fd9856b02ff320.zip
Rename MempoolWatcher to EventWatcher and remove from public interface
Diffstat (limited to 'src')
-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;