diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-22 06:08:24 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-11-24 05:13:36 +0800 |
commit | 45c9171a2c1991e2eb75a1d9d8656a8b1ad7e2e6 (patch) | |
tree | d6c57ee76832db6d2a67d079f9244b347937af6b /packages/0x.js/src/schemas | |
parent | 311d42626a8eb6c07e4746172b8d868920e37e6c (diff) | |
download | dexon-sol-tools-45c9171a2c1991e2eb75a1d9d8656a8b1ad7e2e6.tar dexon-sol-tools-45c9171a2c1991e2eb75a1d9d8656a8b1ad7e2e6.tar.gz dexon-sol-tools-45c9171a2c1991e2eb75a1d9d8656a8b1ad7e2e6.tar.bz2 dexon-sol-tools-45c9171a2c1991e2eb75a1d9d8656a8b1ad7e2e6.tar.lz dexon-sol-tools-45c9171a2c1991e2eb75a1d9d8656a8b1ad7e2e6.tar.xz dexon-sol-tools-45c9171a2c1991e2eb75a1d9d8656a8b1ad7e2e6.tar.zst dexon-sol-tools-45c9171a2c1991e2eb75a1d9d8656a8b1ad7e2e6.zip |
Add networkId to zeroExConfig schema
Diffstat (limited to 'packages/0x.js/src/schemas')
-rw-r--r-- | packages/0x.js/src/schemas/zero_ex_config_schema.ts | 5 |
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'], }; |