aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/schemas/signed_order_schema.ts
blob: 385008ab8e777bf24f7e15fe017b56b722c59371 (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
export const signedOrderSchema = {
    id: '/SignedOrder',
    properties: {
        maker: { type: 'string' },
        taker: { type: 'string' },
        makerTokenAddress: { type: 'string' },
        takerTokenAddress: { type: 'string' },
        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' },
    },
    required: [
        'maker',
        'taker',
        'makerTokenAddress',
        'takerTokenAddress',
        'makerFee',
        'takerFee',
        'makerTokenAmount',
        'takerTokenAmount',
        'salt',
        'ecSignature',
        'expirationUnixTimestampSec',
        'feeRecipient',
        'exchangeContractAddress',
    ],
    type: 'object',
};