protocol/packages/website/ts/schemas/order_schema.ts

41 lines
1.2 KiB
TypeScript

export const orderSchema = {
id: '/Order',
properties: {
maker: { type: 'string' },
taker: { type: 'string' },
makerTokenAddress: { type: 'string' },
takerTokenAddress: { type: 'string' },
makerToken: { $ref: '/Token' },
takerToken: { $ref: '/Token' },
makerFee: { type: 'string' },
takerFee: { type: 'string' },
makerTokenAmount: { type: 'string' },
takerTokenAmount: { type: 'string' },
salt: { type: 'string' },
ecSignature: { $ref: '/SignatureData' },
expirationUnixTimestampSec: { type: 'string' },
feeRecipient: { type: 'string' },
exchangeContractAddress: { type: 'string' },
networkId: { type: 'number' },
},
required: [
'maker',
'taker',
'makerTokenAddress',
'takerTokenAddress',
'makerToken',
'takerToken',
'makerFee',
'takerFee',
'makerTokenAmount',
'takerTokenAmount',
'salt',
'ecSignature',
'expirationUnixTimestampSec',
'feeRecipient',
'exchangeContractAddress',
'networkId',
],
type: 'object',
};