aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-11-11 06:30:16 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-11-13 09:06:13 +0800
commit81ce4a02290cc38e6dc30873c18b0f9c8c9c4db3 (patch)
tree6b2fbfaf882470186ae4c7f695fe3a90a64f97d5
parent6bcd9adb9e41ccc45ef5e117df243526bbd281ec (diff)
downloaddexon-sol-tools-81ce4a02290cc38e6dc30873c18b0f9c8c9c4db3.tar.gz
dexon-sol-tools-81ce4a02290cc38e6dc30873c18b0f9c8c9c4db3.tar.zst
dexon-sol-tools-81ce4a02290cc38e6dc30873c18b0f9c8c9c4db3.zip
Add more configs for order watcher
-rw-r--r--src/types.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/types.ts b/src/types.ts
index 10faa5cf3..555fef855 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -400,12 +400,14 @@ export interface JSONRPCPayload {
}
/*
- * pollingIntervalMs: How often to poll the Ethereum node for new events.
+ * eventPollingIntervalMs: How often to poll the Ethereum node for new events
+ * blockPollingIntervalMs: How often to poll the Ethereum node for new blocks
* numConfirmations: How many confirmed blocks deep you wish to listen for events at.
*/
export interface OrderStateWatcherConfig {
- pollingIntervalMs?: number;
- numConfirmations: number;
+ eventPollingIntervalMs?: number;
+ blockPollingIntervalMs?: number;
+ numConfirmations?: number;
}
/*