aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/order_watcher/order_state_watcher.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-04-17 22:09:05 +0800
committerGitHub <noreply@github.com>2018-04-17 22:09:05 +0800
commitbf4873e519762c6e13bb68c7a6757cc1ec25eb77 (patch)
tree2723d1e1eb7a3cf63fcb40a9d5a7d55abd808418 /packages/0x.js/src/order_watcher/order_state_watcher.ts
parent7a8edb5018acaf7aaf49ebefd8b3afec713a19eb (diff)
parent8fc1b38ff20cf1b528070ecc824b4696d93a2e0f (diff)
downloaddexon-0x-contracts-bf4873e519762c6e13bb68c7a6757cc1ec25eb77.tar
dexon-0x-contracts-bf4873e519762c6e13bb68c7a6757cc1ec25eb77.tar.gz
dexon-0x-contracts-bf4873e519762c6e13bb68c7a6757cc1ec25eb77.tar.bz2
dexon-0x-contracts-bf4873e519762c6e13bb68c7a6757cc1ec25eb77.tar.lz
dexon-0x-contracts-bf4873e519762c6e13bb68c7a6757cc1ec25eb77.tar.xz
dexon-0x-contracts-bf4873e519762c6e13bb68c7a6757cc1ec25eb77.tar.zst
dexon-0x-contracts-bf4873e519762c6e13bb68c7a6757cc1ec25eb77.zip
Merge pull request #510 from avonian/development
Implement `zeroEx.exchange.getOrderStateAsync`
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;
}