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.ts5
1 files changed, 5 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
index 6d4b3ed27..121d81257 100644
--- a/packages/0x.js/src/schemas/zero_ex_config_schema.ts
+++ b/packages/0x.js/src/schemas/zero_ex_config_schema.ts
@@ -1,6 +1,10 @@
export const zeroExConfigSchema = {
id: '/ZeroExConfig',
properties: {
+ networkId: {
+ type: 'number',
+ minimum: 0,
+ },
gasPrice: {$ref: '/Number'},
exchangeContractAddress: {$ref: '/Address'},
tokenRegistryContractAddress: {$ref: '/Address'},
@@ -20,4 +24,5 @@ export const zeroExConfigSchema = {
},
},
type: 'object',
+ required: ['networkId'],
};