aboutsummaryrefslogtreecommitdiffstats
path: root/src/schemas
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-06-09 21:59:19 +0800
committerGitHub <noreply@github.com>2017-06-09 21:59:19 +0800
commitba9a0b0bb9e87e69c818a5fe73183d8d22476948 (patch)
tree87a2416fa3c0506ce0fffe2021de05069db4fbc2 /src/schemas
parent6d4cb28b9d08df574e7f335196dfdd82f02a74c3 (diff)
parent389894088d2372e1eb9bf4d39bde2efe8ab38713 (diff)
downloaddexon-sol-tools-ba9a0b0bb9e87e69c818a5fe73183d8d22476948.tar
dexon-sol-tools-ba9a0b0bb9e87e69c818a5fe73183d8d22476948.tar.gz
dexon-sol-tools-ba9a0b0bb9e87e69c818a5fe73183d8d22476948.tar.bz2
dexon-sol-tools-ba9a0b0bb9e87e69c818a5fe73183d8d22476948.tar.lz
dexon-sol-tools-ba9a0b0bb9e87e69c818a5fe73183d8d22476948.tar.xz
dexon-sol-tools-ba9a0b0bb9e87e69c818a5fe73183d8d22476948.tar.zst
dexon-sol-tools-ba9a0b0bb9e87e69c818a5fe73183d8d22476948.zip
Merge branch 'master' into fillOrderUpToAsync
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..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',
+ },
+};