aboutsummaryrefslogtreecommitdiffstats
path: root/src/0x.ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-10 05:59:41 +0800
committerFabio Berger <me@fabioberger.com>2017-11-10 05:59:41 +0800
commit126a165f558326625d892c4a379c0ebd66088c9a (patch)
treeac7b872b3cd84e0fcb650845eae08bf40c841f50 /src/0x.ts
parent6f5a55b5fe4c6f0f56303b6ac5dcbd99129ee7bd (diff)
downloaddexon-sol-tools-126a165f558326625d892c4a379c0ebd66088c9a.tar
dexon-sol-tools-126a165f558326625d892c4a379c0ebd66088c9a.tar.gz
dexon-sol-tools-126a165f558326625d892c4a379c0ebd66088c9a.tar.bz2
dexon-sol-tools-126a165f558326625d892c4a379c0ebd66088c9a.tar.lz
dexon-sol-tools-126a165f558326625d892c4a379c0ebd66088c9a.tar.xz
dexon-sol-tools-126a165f558326625d892c4a379c0ebd66088c9a.tar.zst
dexon-sol-tools-126a165f558326625d892c4a379c0ebd66088c9a.zip
Add nested config for orderWatcher
Diffstat (limited to 'src/0x.ts')
-rw-r--r--src/0x.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/0x.ts b/src/0x.ts
index 75a154930..dfe64f2df 100644
--- a/src/0x.ts
+++ b/src/0x.ts
@@ -26,6 +26,7 @@ import {
SignedOrder,
Web3Provider,
ZeroExConfig,
+ OrderStateWatcherConfig,
TransactionReceiptWithDecodedLogs,
} from './types';
import {zeroExConfigSchema} from './schemas/zero_ex_config_schema';
@@ -213,10 +214,10 @@ export class ZeroEx {
this.tokenRegistry = new TokenRegistryWrapper(this._web3Wrapper, 'tokenRegistryContractAddressIfExists');
const etherTokenContractAddressIfExists = _.get(config, 'etherTokenContractAddress');
this.etherToken = new EtherTokenWrapper(this._web3Wrapper, this.token, 'etherTokenContractAddressIfExists');
- const mempoolPollingIntervalMs: number|undefined = _.get(config, 'mempoolPollingIntervalMs');
+ const orderWatcherConfig: OrderStateWatcherConfig|undefined = _.get(config, 'orderWatcherConfig');
const orderStateUtils = new OrderStateUtils(this.token, this.exchange);
this.orderStateWatcher = new OrderStateWatcher(
- this._web3Wrapper, this._abiDecoder, orderStateUtils, mempoolPollingIntervalMs,
+ this._web3Wrapper, this._abiDecoder, orderStateUtils, orderWatcherConfig,
);
}
/**