diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-06-09 21:53:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-09 21:53:23 +0800 |
commit | 389894088d2372e1eb9bf4d39bde2efe8ab38713 (patch) | |
tree | f1ff72e8adf01bf75579dc92ce8a37cd46355d94 /src/schemas | |
parent | ab40123768a3376bd2b36bd0d85a8e476b89dc10 (diff) | |
parent | 862685aa41b7ba0a107c20a524dc0769cd353409 (diff) | |
download | dexon-sol-tools-389894088d2372e1eb9bf4d39bde2efe8ab38713.tar dexon-sol-tools-389894088d2372e1eb9bf4d39bde2efe8ab38713.tar.gz dexon-sol-tools-389894088d2372e1eb9bf4d39bde2efe8ab38713.tar.bz2 dexon-sol-tools-389894088d2372e1eb9bf4d39bde2efe8ab38713.tar.lz dexon-sol-tools-389894088d2372e1eb9bf4d39bde2efe8ab38713.tar.xz dexon-sol-tools-389894088d2372e1eb9bf4d39bde2efe8ab38713.tar.zst dexon-sol-tools-389894088d2372e1eb9bf4d39bde2efe8ab38713.zip |
Merge pull request #50 from 0xProject/schemas
Add orderCancelrequestsSchema and orderFillRequestsSchema
Diffstat (limited to 'src/schemas')
-rw-r--r-- | src/schemas/order_cancel_schema.ts | 12 | ||||
-rw-r--r-- | src/schemas/order_fill_requests_schema.ts | 12 |
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..5cc8f745c --- /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'}, + takerTokenCancelAmount: {type: '/numberSchema'}, + }, + required: ['order', 'takerTokenCancelAmount'], + 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', + }, +}; |