aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/order_watcher/order_state_watcher.ts
diff options
context:
space:
mode:
authorAra Kevonian <ara@dextroid.io>2018-04-17 21:47:36 +0800
committerAra Kevonian <ara@dextroid.io>2018-04-17 21:47:36 +0800
commit7d957538b46bbc9cd757d5b9a0351bf27e4e5419 (patch)
tree6bb5c372c5e6f74b5b69d683658dc17b46c6fcbc /packages/0x.js/src/order_watcher/order_state_watcher.ts
parent5355da6cad157bb67d1b55a2f8463efe3e072385 (diff)
downloaddexon-sol-tools-7d957538b46bbc9cd757d5b9a0351bf27e4e5419.tar
dexon-sol-tools-7d957538b46bbc9cd757d5b9a0351bf27e4e5419.tar.gz
dexon-sol-tools-7d957538b46bbc9cd757d5b9a0351bf27e4e5419.tar.bz2
dexon-sol-tools-7d957538b46bbc9cd757d5b9a0351bf27e4e5419.tar.lz
dexon-sol-tools-7d957538b46bbc9cd757d5b9a0351bf27e4e5419.tar.xz
dexon-sol-tools-7d957538b46bbc9cd757d5b9a0351bf27e4e5419.tar.zst
dexon-sol-tools-7d957538b46bbc9cd757d5b9a0351bf27e4e5419.zip
Add stateLayer param to getOrderState and clean up variable names
Diffstat (limited to 'packages/0x.js/src/order_watcher/order_state_watcher.ts')
-rw-r--r--packages/0x.js/src/order_watcher/order_state_watcher.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/0x.js/src/order_watcher/order_state_watcher.ts b/packages/0x.js/src/order_watcher/order_state_watcher.ts
index 0aa0c33bd..a9df8ac9d 100644
--- a/packages/0x.js/src/order_watcher/order_state_watcher.ts
+++ b/packages/0x.js/src/order_watcher/order_state_watcher.ts
@@ -87,7 +87,7 @@ export class OrderStateWatcher {
_.isUndefined(config) || _.isUndefined(config.stateLayer) ? BlockParamLiteral.Latest : config.stateLayer;
this._eventWatcher = new EventWatcher(web3Wrapper, pollingIntervalIfExistsMs, stateLayer);
this._balanceAndProxyAllowanceLazyStore = new BalanceAndProxyAllowanceLazyStore(token, stateLayer);
- this._orderFilledCancelledLazyStore = new OrderFilledCancelledLazyStore(exchange);
+ this._orderFilledCancelledLazyStore = new OrderFilledCancelledLazyStore(exchange, stateLayer);
this._orderStateUtils = new OrderStateUtils(
this._balanceAndProxyAllowanceLazyStore,
this._orderFilledCancelledLazyStore,
@@ -131,7 +131,7 @@ export class OrderStateWatcher {
}
delete this._orderByOrderHash[orderHash];
delete this._orderStateByOrderHashCache[orderHash];
- const exchange = (this._orderFilledCancelledLazyStore as any)._exchange as ExchangeWrapper;
+ const exchange = (this._orderFilledCancelledLazyStore as any)._exchangeWrapper as ExchangeWrapper;
const zrxTokenAddress = exchange.getZRXTokenAddress();
this._removeFromDependentOrderHashes(signedOrder.maker, zrxTokenAddress, orderHash);
@@ -374,7 +374,7 @@ export class OrderStateWatcher {
}
}
private _getZRXTokenAddress(): string {
- const exchange = (this._orderFilledCancelledLazyStore as any)._exchange as ExchangeWrapper;
+ const exchange = (this._orderFilledCancelledLazyStore as any)._exchangeWrapper as ExchangeWrapper;
const zrxTokenAddress = exchange.getZRXTokenAddress();
return zrxTokenAddress;
}