aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-07-04 13:31:59 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-07-04 13:31:59 +0800
commit551b6db35e07907ad4dec767c8e76953fe98bb72 (patch)
tree66b630dae47f8838b5b759e6e60c283336f99601 /src/utils
parent64cf47f297827a869120b85e734406db87b87db8 (diff)
downloaddexon-sol-tools-551b6db35e07907ad4dec767c8e76953fe98bb72.tar
dexon-sol-tools-551b6db35e07907ad4dec767c8e76953fe98bb72.tar.gz
dexon-sol-tools-551b6db35e07907ad4dec767c8e76953fe98bb72.tar.bz2
dexon-sol-tools-551b6db35e07907ad4dec767c8e76953fe98bb72.tar.lz
dexon-sol-tools-551b6db35e07907ad4dec767c8e76953fe98bb72.tar.xz
dexon-sol-tools-551b6db35e07907ad4dec767c8e76953fe98bb72.tar.zst
dexon-sol-tools-551b6db35e07907ad4dec767c8e76953fe98bb72.zip
Add orderHashSchema
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/schema_validator.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/schema_validator.ts b/src/utils/schema_validator.ts
index 609d11a1a..20c160068 100644
--- a/src/utils/schema_validator.ts
+++ b/src/utils/schema_validator.ts
@@ -1,6 +1,6 @@
import {Validator, ValidatorResult, Schema} from 'jsonschema';
import {ecSignatureSchema, ecSignatureParameterSchema} from '../schemas/ec_signature_schema';
-import {orderSchema, signedOrderSchema} from '../schemas/order_schemas';
+import {orderSchema, signedOrderSchema, orderHashSchema} from '../schemas/order_schemas';
import {addressSchema, numberSchema} from '../schemas/basic_type_schemas';
import {tokenSchema} from '../schemas/token_schema';
import {subscriptionOptsSchema, blockParamSchema} from '../schemas/subscription_opts_schema';
@@ -15,6 +15,7 @@ export class SchemaValidator {
this.validator.addSchema(orderSchema, orderSchema.id);
this.validator.addSchema(numberSchema, numberSchema.id);
this.validator.addSchema(addressSchema, addressSchema.id);
+ this.validator.addSchema(orderHashSchema, orderHashSchema.id);
this.validator.addSchema(blockParamSchema, blockParamSchema.id);
this.validator.addSchema(ecSignatureSchema, ecSignatureSchema.id);
this.validator.addSchema(signedOrderSchema, signedOrderSchema.id);