aboutsummaryrefslogtreecommitdiffstats
path: root/packages/json-schemas/schemas/relayer_api_orders_channel_subscribe_schema.ts
blob: d36048047f8a97c89d401fca64bb2471b54b4b74 (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: '/RelayerApiOrdersChannelSubscribe',
    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: '/Hex' },
        takerAssetProxyId: { $ref: '/Hex' },
        networkId: { type: 'number' },
        makerAssetAddress: { $ref: '/Address' },
        takerAssetAddress: { $ref: '/Address' },
        makerAssetData: { $ref: '/Hex' },
        takerAssetData: { $ref: '/Hex' },
        traderAssetData: { $ref: '/Hex' },
    },
};