aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/schemas
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-07 22:02:41 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-02-07 22:02:41 +0800
commit1c9428cbba873fe8d5bd18b2cb10522cbdb17a3f (patch)
tree23da49f5ad132e4e9f623e1da6a5fcd02e2d8c9c /packages/website/ts/schemas
parent18dc5d17b552f03294c6ea13ae0d2cdcc72ac0fd (diff)
downloaddexon-sol-tools-1c9428cbba873fe8d5bd18b2cb10522cbdb17a3f.tar
dexon-sol-tools-1c9428cbba873fe8d5bd18b2cb10522cbdb17a3f.tar.gz
dexon-sol-tools-1c9428cbba873fe8d5bd18b2cb10522cbdb17a3f.tar.bz2
dexon-sol-tools-1c9428cbba873fe8d5bd18b2cb10522cbdb17a3f.tar.lz
dexon-sol-tools-1c9428cbba873fe8d5bd18b2cb10522cbdb17a3f.tar.xz
dexon-sol-tools-1c9428cbba873fe8d5bd18b2cb10522cbdb17a3f.tar.zst
dexon-sol-tools-1c9428cbba873fe8d5bd18b2cb10522cbdb17a3f.zip
Move .taker.feeAmount to .takerFee and .maker.feeAmount to .makerFee
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 430f707da..e69891df1 100644
--- a/packages/website/ts/schemas/order_schema.ts
+++ b/packages/website/ts/schemas/order_schema.ts
@@ -3,6 +3,8 @@ export const orderSchema = {
properties: {
maker: { $ref: '/OrderTaker' },
taker: { $ref: '/OrderTaker' },
+ makerFee: { type: 'string' },
+ takerFee: { type: 'string' },
salt: { type: 'string' },
ecSignature: { $ref: '/SignatureData' },
expirationUnixTimestampSec: { type: 'string' },
@@ -13,6 +15,8 @@ export const orderSchema = {
required: [
'maker',
'taker',
+ 'makerFee',
+ 'takerFee',
'salt',
'ecSignature',
'expirationUnixTimestampSec',
diff --git a/packages/website/ts/schemas/order_taker_schema.ts b/packages/website/ts/schemas/order_taker_schema.ts
index c784c29c5..c8d56a417 100644
--- a/packages/website/ts/schemas/order_taker_schema.ts
+++ b/packages/website/ts/schemas/order_taker_schema.ts
@@ -4,8 +4,7 @@ export const orderTakerSchema = {
address: { type: 'string' },
token: { $ref: '/Token' },
amount: { type: 'string' },
- feeAmount: { type: 'string' },
},
- required: ['address', 'token', 'amount', 'feeAmount'],
+ required: ['address', 'token', 'amount'],
type: 'object',
};