aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/schemas/order_schema.ts
blob: bfbf9eb8b702aeaa6ed5a644a6109e70e1f210b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export const orderSchema = {
    id: '/Order',
    properties: {
        maker: { $ref: '/OrderTaker' },
        taker: { $ref: '/OrderTaker' },
        salt: { type: 'string' },
        signature: { $ref: '/SignatureData' },
        expiration: { type: 'string' },
        feeRecipient: { type: 'string' },
        exchangeContract: { type: 'string' },
        networkId: { type: 'number' },
    },
    required: ['maker', 'taker', 'salt', 'signature', 'expiration', 'feeRecipient', 'exchangeContract', 'networkId'],
    type: 'object',
};