aboutsummaryrefslogblamecommitdiffstats
path: root/packages/json-schemas/schemas/relayer_api_orders_channel_subscribe_schema.ts
blob: 1fe612949d3f01831c841d2b74b3829c24ef576c (plain) (tree)

























                                                                      
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: '/Address' },
        takerAssetProxyId: { $ref: '/Address' },
        networkId: { type: 'number' },
        makerAssetAddress: { $ref: '/Address' },
        takerAssetAddress: { $ref: '/Address' },
        makerAssetData: { $ref: '/Hex' },
        takerAssetData: { $ref: '/Hex' },
        traderAssetData: { $ref: '/Hex' },
    },
};