aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/schemas/order_schema.ts
blob: 6ddc9e4453cff8e00bacdf686a467cb250430cc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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',
};