aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/src/schemas/zero_ex_config_schema.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/0x.js/src/schemas/zero_ex_config_schema.ts')
-rw-r--r--packages/0x.js/src/schemas/zero_ex_config_schema.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/0x.js/src/schemas/zero_ex_config_schema.ts b/packages/0x.js/src/schemas/zero_ex_config_schema.ts
new file mode 100644
index 000000000..6d4b3ed27
--- /dev/null
+++ b/packages/0x.js/src/schemas/zero_ex_config_schema.ts
@@ -0,0 +1,23 @@
+export const zeroExConfigSchema = {
+ id: '/ZeroExConfig',
+ properties: {
+ gasPrice: {$ref: '/Number'},
+ exchangeContractAddress: {$ref: '/Address'},
+ tokenRegistryContractAddress: {$ref: '/Address'},
+ etherTokenContractAddress: {$ref: '/Address'},
+ orderWatcherConfig: {
+ type: 'object',
+ properties: {
+ pollingIntervalMs: {
+ type: 'number',
+ minimum: 0,
+ },
+ numConfirmations: {
+ type: 'number',
+ minimum: 0,
+ },
+ },
+ },
+ },
+ type: 'object',
+};