aboutsummaryrefslogtreecommitdiffstats
path: root/src/order_watcher/order_state_watcher.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 02:06:25 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 09:06:13 +0800
commita9ae555b88cc36ff2cbd92fdd37a339702860c01 (patch)
treed42ed590c81683a3f6acd0882d31392a9a97f1ca /src/order_watcher/order_state_watcher.ts
parentd4dc428124a210cc6b8e1c50527a08e902bfadd0 (diff)
downloaddexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar
dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.gz
dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.bz2
dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.lz
dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.xz
dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.tar.zst
dexon-sol-tools-a9ae555b88cc36ff2cbd92fdd37a339702860c01.zip
Store number of confirmations in a blockStore
Diffstat (limited to 'src/order_watcher/order_state_watcher.ts')
-rw-r--r--src/order_watcher/order_state_watcher.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/order_watcher/order_state_watcher.ts b/src/order_watcher/order_state_watcher.ts
index e6250cef5..0f5b5c30c 100644
--- a/src/order_watcher/order_state_watcher.ts
+++ b/src/order_watcher/order_state_watcher.ts
@@ -78,15 +78,15 @@ export class OrderStateWatcher {
const numConfirmations = (_.isUndefined(config) || _.isUndefined(config.numConfirmations)) ?
DEFAULT_NUM_CONFIRMATIONS :
config.numConfirmations;
- this._blockStore = new BlockStore(this._web3Wrapper, blockPollingIntervalMs);
+ this._blockStore = new BlockStore(numConfirmations, this._web3Wrapper, blockPollingIntervalMs);
this._eventWatcher = new EventWatcher(
- web3Wrapper, this._blockStore, eventPollingIntervalMs, numConfirmations,
+ web3Wrapper, this._blockStore, eventPollingIntervalMs,
);
this._balanceAndProxyAllowanceLazyStore = new BalanceAndProxyAllowanceLazyStore(
- this._token, this._blockStore, numConfirmations,
+ this._token, this._blockStore,
);
this._orderFilledCancelledLazyStore = new OrderFilledCancelledLazyStore(
- this._exchange, this._blockStore, numConfirmations,
+ this._exchange, this._blockStore,
);
this._orderStateUtils = new OrderStateUtils(
this._balanceAndProxyAllowanceLazyStore, this._orderFilledCancelledLazyStore,