diff options
author | Fabio Berger <me@fabioberger.com> | 2017-11-10 05:59:41 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-11-10 05:59:41 +0800 |
commit | 126a165f558326625d892c4a379c0ebd66088c9a (patch) | |
tree | ac7b872b3cd84e0fcb650845eae08bf40c841f50 /src/0x.ts | |
parent | 6f5a55b5fe4c6f0f56303b6ac5dcbd99129ee7bd (diff) | |
download | dexon-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.ts | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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, ); } /** |