aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas/schemas/relayer_api_orders_channel_subscribe_schema.ts
blob: a3b9b6d95adad1de8d1d81ded1f4e4f150e93b13 (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
export const relayerApiOrdersChannelSubscribeSchema = {
    id: '/relayerApiOrdersChannelSubscribeSchema',
    type: 'object',
    properties: {
        type: { enum: ['subscribe'] },
        channel: { enum: ['orders'] },
        requestId: { type: 'string' },
        payload: { $ref: '/relayerApiOrdersChannelSubscribePayload' },
    },
    required: ['type', 'channel', 'requestId'],
};

export const relayerApiOrdersChannelSubscribePayload = {
    id: '/relayerApiOrdersChannelSubscribePayload',
    type: 'object',
    properties: {
        makerAssetProxyId: { $ref: '/hexSchema' },
        takerAssetProxyId: { $ref: '/hexSchema' },
        networkId: { type: 'number' },
        makerAssetAddress: { $ref: '/addressSchema' },
        takerAssetAddress: { $ref: '/addressSchema' },
        makerAssetData: { $ref: '/hexSchema' },
        takerAssetData: { $ref: '/hexSchema' },
        traderAssetData: { $ref: '/hexSchema' },
    },
};