aboutsummaryrefslogtreecommitdiffstats
path: root/src/schemas
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-06-09 00:50:39 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-06-09 00:50:39 +0800
commit62b8a2690b20a7fde83144a2205d5927ac0a55d1 (patch)
treef0e45874bd7c5241b319bb01b9d09b8e8d69fdc2 /src/schemas
parent743ba29918715e21c7891b3c7426dcb5fdc14e17 (diff)
downloaddexon-0x-contracts-62b8a2690b20a7fde83144a2205d5927ac0a55d1.tar.gz
dexon-0x-contracts-62b8a2690b20a7fde83144a2205d5927ac0a55d1.tar.zst
dexon-0x-contracts-62b8a2690b20a7fde83144a2205d5927ac0a55d1.zip
Add orderCancelrequestsSchema and orderFillRequestsSchema
Diffstat (limited to 'src/schemas')
-rw-r--r--src/schemas/order_cancel_schema.ts12
-rw-r--r--src/schemas/order_fill_requests_schema.ts12
2 files changed, 24 insertions, 0 deletions
diff --git a/src/schemas/order_cancel_schema.ts b/src/schemas/order_cancel_schema.ts
new file mode 100644
index 000000000..d64df08f1
--- /dev/null
+++ b/src/schemas/order_cancel_schema.ts
@@ -0,0 +1,12 @@
+export const orderCancellationRequestsSchema = {
+ id: '/OrderCancellationRequests',
+ type: 'array',
+ items: {
+ properties: {
+ order: {$ref: '/orderSchema'},
+ takerTokenFillAmount: {type: '/numberSchema'},
+ },
+ required: ['order', 'takerTokenFillAmount'],
+ type: 'object',
+ },
+};
diff --git a/src/schemas/order_fill_requests_schema.ts b/src/schemas/order_fill_requests_schema.ts
new file mode 100644
index 000000000..44f4e33e2
--- /dev/null
+++ b/src/schemas/order_fill_requests_schema.ts
@@ -0,0 +1,12 @@
+export const orderFillRequestsSchema = {
+ id: '/OrderFillRequests',
+ type: 'array',
+ items: {
+ properties: {
+ signedOrder: {$ref: '/signedOrderSchema'},
+ takerTokenFillAmount: {type: '/numberSchema'},
+ },
+ required: ['signedOrder', 'takerTokenFillAmount'],
+ type: 'object',
+ },
+};