aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas/schemas/order_schemas.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/json-schemas/schemas/order_schemas.ts')
-rw-r--r--packages/json-schemas/schemas/order_schemas.ts38
1 files changed, 23 insertions, 15 deletions
diff --git a/packages/json-schemas/schemas/order_schemas.ts b/packages/json-schemas/schemas/order_schemas.ts
index 3cce49351..6f17224ad 100644
--- a/packages/json-schemas/schemas/order_schemas.ts
+++ b/packages/json-schemas/schemas/order_schemas.ts
@@ -1,22 +1,30 @@
export const orderSchema = {
id: '/Order',
properties: {
- maker: {$ref: '/Address'},
- taker: {$ref: '/Address'},
- makerFee: {$ref: '/Number'},
- takerFee: {$ref: '/Number'},
- makerTokenAmount: {$ref: '/Number'},
- takerTokenAmount: {$ref: '/Number'},
- makerTokenAddress: {$ref: '/Address'},
- takerTokenAddress: {$ref: '/Address'},
- salt: {$ref: '/Number'},
- feeRecipient: {$ref: '/Address'},
- expirationUnixTimestampSec: {$ref: '/Number'},
- exchangeContractAddress: {$ref: '/Address'},
+ maker: { $ref: '/Address' },
+ taker: { $ref: '/Address' },
+ makerFee: { $ref: '/Number' },
+ takerFee: { $ref: '/Number' },
+ makerTokenAmount: { $ref: '/Number' },
+ takerTokenAmount: { $ref: '/Number' },
+ makerTokenAddress: { $ref: '/Address' },
+ takerTokenAddress: { $ref: '/Address' },
+ salt: { $ref: '/Number' },
+ feeRecipient: { $ref: '/Address' },
+ expirationUnixTimestampSec: { $ref: '/Number' },
+ exchangeContractAddress: { $ref: '/Address' },
},
required: [
- 'maker', 'taker', 'makerFee', 'takerFee', 'makerTokenAmount', 'takerTokenAmount',
- 'salt', 'feeRecipient', 'expirationUnixTimestampSec', 'exchangeContractAddress',
+ 'maker',
+ 'taker',
+ 'makerFee',
+ 'takerFee',
+ 'makerTokenAmount',
+ 'takerTokenAmount',
+ 'salt',
+ 'feeRecipient',
+ 'expirationUnixTimestampSec',
+ 'exchangeContractAddress',
],
type: 'object',
};
@@ -27,7 +35,7 @@ export const signedOrderSchema = {
{ $ref: '/Order' },
{
properties: {
- ecSignature: {$ref: '/ECSignature'},
+ ecSignature: { $ref: '/ECSignature' },
},
required: ['ecSignature'],
},