diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-09 01:01:53 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-15 03:22:36 +0800 |
commit | f3e6ef0fa96e2252e41b7ed6f2c3e88a1560153e (patch) | |
tree | 0208e1e119e1a6976e8e2332eaca9681b4ae20ed /packages/0x.js/src/0x.ts | |
parent | 18e1c2dea5d3c5387db6f616cd0ebbfe89dc308b (diff) | |
download | dexon-sol-tools-f3e6ef0fa96e2252e41b7ed6f2c3e88a1560153e.tar dexon-sol-tools-f3e6ef0fa96e2252e41b7ed6f2c3e88a1560153e.tar.gz dexon-sol-tools-f3e6ef0fa96e2252e41b7ed6f2c3e88a1560153e.tar.bz2 dexon-sol-tools-f3e6ef0fa96e2252e41b7ed6f2c3e88a1560153e.tar.lz dexon-sol-tools-f3e6ef0fa96e2252e41b7ed6f2c3e88a1560153e.tar.xz dexon-sol-tools-f3e6ef0fa96e2252e41b7ed6f2c3e88a1560153e.tar.zst dexon-sol-tools-f3e6ef0fa96e2252e41b7ed6f2c3e88a1560153e.zip |
Better validate ZeroExConfig on public networks
Diffstat (limited to 'packages/0x.js/src/0x.ts')
-rw-r--r-- | packages/0x.js/src/0x.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/0x.js/src/0x.ts b/packages/0x.js/src/0x.ts index 6cfa65cc2..d024e6097 100644 --- a/packages/0x.js/src/0x.ts +++ b/packages/0x.js/src/0x.ts @@ -13,6 +13,8 @@ import { TokenTransferProxyWrapper } from './contract_wrappers/token_transfer_pr import { TokenWrapper } from './contract_wrappers/token_wrapper'; import { OrderStateWatcher } from './order_watcher/order_state_watcher'; import { zeroExConfigSchema } from './schemas/zero_ex_config_schema'; +import { zeroExPrivateNetworkConfigSchema } from './schemas/zero_ex_private_network_config_schema'; +import { zeroExPublicNetworkConfigSchema } from './schemas/zero_ex_public_network_config_schema'; import { ECSignature, Order, SignedOrder, Web3Provider, ZeroExConfig, ZeroExError } from './types'; import { assert } from './utils/assert'; import { constants } from './utils/constants'; @@ -20,6 +22,9 @@ import { decorators } from './utils/decorators'; import { signatureUtils } from './utils/signature_utils'; import { utils } from './utils/utils'; +assert.schemaValidator.addSchema(zeroExPrivateNetworkConfigSchema); +assert.schemaValidator.addSchema(zeroExPublicNetworkConfigSchema); + /** * The ZeroEx class is the single entry-point into the 0x.js library. It contains all of the library's functionality * and all calls to the library should be made through a ZeroEx instance. |