diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-10-31 00:38:10 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-10-31 00:49:16 +0800 |
commit | a896904ae7c453f51b1f46de2be3a28416db72d1 (patch) | |
tree | c50c3638b0b9bee982816bb48a4c935de798476a /src/schemas | |
parent | 6bfcd253f8e9689ce787899a42f80914b067a4f1 (diff) | |
download | dexon-sol-tools-a896904ae7c453f51b1f46de2be3a28416db72d1.tar dexon-sol-tools-a896904ae7c453f51b1f46de2be3a28416db72d1.tar.gz dexon-sol-tools-a896904ae7c453f51b1f46de2be3a28416db72d1.tar.bz2 dexon-sol-tools-a896904ae7c453f51b1f46de2be3a28416db72d1.tar.lz dexon-sol-tools-a896904ae7c453f51b1f46de2be3a28416db72d1.tar.xz dexon-sol-tools-a896904ae7c453f51b1f46de2be3a28416db72d1.tar.zst dexon-sol-tools-a896904ae7c453f51b1f46de2be3a28416db72d1.zip |
Add naive order state watcher implementation
Revalidate all orders upon event received and emit order states even if
not changed
Diffstat (limited to 'src/schemas')
-rw-r--r-- | src/schemas/order_watcher_config_schema.ts | 10 | ||||
-rw-r--r-- | src/schemas/zero_ex_config_schema.ts | 4 |
2 files changed, 4 insertions, 10 deletions
diff --git a/src/schemas/order_watcher_config_schema.ts b/src/schemas/order_watcher_config_schema.ts deleted file mode 100644 index 9c2dc38a4..000000000 --- a/src/schemas/order_watcher_config_schema.ts +++ /dev/null @@ -1,10 +0,0 @@ -export const orderWatcherConfigSchema = { - id: '/OrderWatcherConfig', - properties: { - mempoolPollingIntervalMs: { - type: 'number', - min: 0, - }, - }, - type: 'object', -}; diff --git a/src/schemas/zero_ex_config_schema.ts b/src/schemas/zero_ex_config_schema.ts index 179e29c31..5be651a9a 100644 --- a/src/schemas/zero_ex_config_schema.ts +++ b/src/schemas/zero_ex_config_schema.ts @@ -5,6 +5,10 @@ export const zeroExConfigSchema = { exchangeContractAddress: {$ref: '/Address'}, tokenRegistryContractAddress: {$ref: '/Address'}, etherTokenContractAddress: {$ref: '/Address'}, + mempoolPollingIntervalMs: { + type: 'number', + min: 0, + }, }, type: 'object', }; |