aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-07-03 20:48:22 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-07-05 21:05:57 +0800
commit3cc1a952ca343a29249ccffda35bf151c849ebcd (patch)
tree724dfad096c00c103eb90a6e9053925f2ab9f1bd /packages/json-schemas
parent9c8de3e933d607b54e0d0a19f0a3e39bc356d6d9 (diff)
downloaddexon-sol-tools-3cc1a952ca343a29249ccffda35bf151c849ebcd.tar
dexon-sol-tools-3cc1a952ca343a29249ccffda35bf151c849ebcd.tar.gz
dexon-sol-tools-3cc1a952ca343a29249ccffda35bf151c849ebcd.tar.bz2
dexon-sol-tools-3cc1a952ca343a29249ccffda35bf151c849ebcd.tar.lz
dexon-sol-tools-3cc1a952ca343a29249ccffda35bf151c849ebcd.tar.xz
dexon-sol-tools-3cc1a952ca343a29249ccffda35bf151c849ebcd.tar.zst
dexon-sol-tools-3cc1a952ca343a29249ccffda35bf151c849ebcd.zip
Add ordersSchema to json-schemas
Diffstat (limited to 'packages/json-schemas')
-rw-r--r--packages/json-schemas/schemas/orders_schema.ts5
-rw-r--r--packages/json-schemas/src/schemas.ts2
2 files changed, 7 insertions, 0 deletions
diff --git a/packages/json-schemas/schemas/orders_schema.ts b/packages/json-schemas/schemas/orders_schema.ts
new file mode 100644
index 000000000..3ba3291a2
--- /dev/null
+++ b/packages/json-schemas/schemas/orders_schema.ts
@@ -0,0 +1,5 @@
+export const ordersSchema = {
+ id: '/ordersSchema',
+ type: 'array',
+ items: { $ref: '/Order' },
+};
diff --git a/packages/json-schemas/src/schemas.ts b/packages/json-schemas/src/schemas.ts
index 77ea88f5c..dc504e465 100644
--- a/packages/json-schemas/src/schemas.ts
+++ b/packages/json-schemas/src/schemas.ts
@@ -7,6 +7,7 @@ import { orderFillOrKillRequestsSchema } from '../schemas/order_fill_or_kill_req
import { orderFillRequestsSchema } from '../schemas/order_fill_requests_schema';
import { orderHashSchema } from '../schemas/order_hash_schema';
import { orderSchema, signedOrderSchema } from '../schemas/order_schemas';
+import { ordersSchema } from '../schemas/orders_schema';
import { relayerApiErrorResponseSchema } from '../schemas/relayer_api_error_response_schema';
import { relayerApiFeesPayloadSchema } from '../schemas/relayer_api_fees_payload_schema';
import { relayerApiFeesResponseSchema } from '../schemas/relayer_api_fees_response_schema';
@@ -41,6 +42,7 @@ export const schemas = {
orderSchema,
signedOrderSchema,
signedOrdersSchema,
+ ordersSchema,
blockParamSchema,
blockRangeSchema,
tokenSchema,