Files
protocol/packages/website/ts/schemas/order_schema.ts
2018-02-07 14:41:40 +01:00

25 lines
644 B
TypeScript

export const orderSchema = {
id: '/Order',
properties: {
maker: { $ref: '/OrderTaker' },
taker: { $ref: '/OrderTaker' },
salt: { type: 'string' },
signature: { $ref: '/SignatureData' },
expirationUnixTimestampSec: { type: 'string' },
feeRecipient: { type: 'string' },
exchangeContract: { type: 'string' },
networkId: { type: 'number' },
},
required: [
'maker',
'taker',
'salt',
'signature',
'expirationUnixTimestampSec',
'feeRecipient',
'exchangeContract',
'networkId',
],
type: 'object',
};