aboutsummaryrefslogtreecommitdiffstats
path: root/src/types.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/types.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/types.ts')
-rw-r--r--src/types.ts11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/types.ts b/src/types.ts
index 4a0a74826..704c0b866 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -396,18 +396,25 @@ export interface JSONRPCPayload {
}
/*
+ * pollingIntervalMs: How often to check for new mempool events
+ */
+export interface OrderStateWatcherConfig {
+ pollingIntervalMs?: number;
+}
+
+/*
* gasPrice: Gas price to use with every transaction
* exchangeContractAddress: The address of an exchange contract to use
* tokenRegistryContractAddress: The address of a token registry contract to use
* etherTokenContractAddress: The address of an ether token contract to use
- * mempoolPollingIntervalMs: How often to check for new mempool events
+ * orderWatcherConfig: All the configs related to the orderWatcher
*/
export interface ZeroExConfig {
gasPrice?: BigNumber; // Gas price to use with every transaction
exchangeContractAddress?: string;
tokenRegistryContractAddress?: string;
etherTokenContractAddress?: string;
- mempoolPollingIntervalMs?: number;
+ orderWatcherConfig?: OrderStateWatcherConfig;
}
export type TransactionReceipt = Web3.TransactionReceipt;