Move .taker.amount to .takerTokenAmount and .maker.amount to .makerTokenAmount

This commit is contained in:
Leonid Logvinov
2018-02-07 15:09:06 +01:00
parent 1c9428cbba
commit 223df8006a
5 changed files with 21 additions and 17 deletions

View File

@@ -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',

View File

@@ -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',
};