aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/schemas
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-07 22:09:06 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-02-07 22:09:06 +0800
commit223df8006a30a95db544a2af080224a4d9d2d474 (patch)
tree6b995cab8326ab91e4b347fad8caeaf96357665c /packages/website/ts/schemas
parent1c9428cbba873fe8d5bd18b2cb10522cbdb17a3f (diff)
downloaddexon-sol-tools-223df8006a30a95db544a2af080224a4d9d2d474.tar
dexon-sol-tools-223df8006a30a95db544a2af080224a4d9d2d474.tar.gz
dexon-sol-tools-223df8006a30a95db544a2af080224a4d9d2d474.tar.bz2
dexon-sol-tools-223df8006a30a95db544a2af080224a4d9d2d474.tar.lz
dexon-sol-tools-223df8006a30a95db544a2af080224a4d9d2d474.tar.xz
dexon-sol-tools-223df8006a30a95db544a2af080224a4d9d2d474.tar.zst
dexon-sol-tools-223df8006a30a95db544a2af080224a4d9d2d474.zip
Move .taker.amount to .takerTokenAmount and .maker.amount to .makerTokenAmount
Diffstat (limited to 'packages/website/ts/schemas')
-rw-r--r--packages/website/ts/schemas/order_schema.ts4
-rw-r--r--packages/website/ts/schemas/order_taker_schema.ts3
2 files changed, 5 insertions, 2 deletions
diff --git a/packages/website/ts/schemas/order_schema.ts b/packages/website/ts/schemas/order_schema.ts
index e69891df1..ccf4af671 100644
--- a/packages/website/ts/schemas/order_schema.ts
+++ b/packages/website/ts/schemas/order_schema.ts
@@ -5,6 +5,8 @@ export const orderSchema = {
taker: { $ref: '/OrderTaker' },
makerFee: { type: 'string' },
takerFee: { type: 'string' },
+ makerTokenAmount: { type: 'string' },
+ takerTokenAmount: { type: 'string' },
salt: { type: 'string' },
ecSignature: { $ref: '/SignatureData' },
expirationUnixTimestampSec: { type: 'string' },
@@ -17,6 +19,8 @@ export const orderSchema = {
'taker',
'makerFee',
'takerFee',
+ 'makerTokenAmount',
+ 'takerTokenAmount',
'salt',
'ecSignature',
'expirationUnixTimestampSec',
diff --git a/packages/website/ts/schemas/order_taker_schema.ts b/packages/website/ts/schemas/order_taker_schema.ts
index c8d56a417..bce71f74b 100644
--- a/packages/website/ts/schemas/order_taker_schema.ts
+++ b/packages/website/ts/schemas/order_taker_schema.ts
@@ -3,8 +3,7 @@ export const orderTakerSchema = {
properties: {
address: { type: 'string' },
token: { $ref: '/Token' },
- amount: { type: 'string' },
},
- required: ['address', 'token', 'amount'],
+ required: ['address', 'token'],
type: 'object',
};