diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-31 08:16:14 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-31 08:16:14 +0800 |
commit | e671563f1e8b9eb4015bd2b3034bad951ef3eda4 (patch) | |
tree | 3e03d9493ab60228f26767ec643c6cc28bc075b5 /packages/json-schemas/schemas/relayer_api_orders_channel_subscribe_schema.ts | |
parent | 43d7045a5badf61efabffc2844cc6e14fe6f424f (diff) | |
download | dexon-sol-tools-e671563f1e8b9eb4015bd2b3034bad951ef3eda4.tar dexon-sol-tools-e671563f1e8b9eb4015bd2b3034bad951ef3eda4.tar.gz dexon-sol-tools-e671563f1e8b9eb4015bd2b3034bad951ef3eda4.tar.bz2 dexon-sol-tools-e671563f1e8b9eb4015bd2b3034bad951ef3eda4.tar.lz dexon-sol-tools-e671563f1e8b9eb4015bd2b3034bad951ef3eda4.tar.xz dexon-sol-tools-e671563f1e8b9eb4015bd2b3034bad951ef3eda4.tar.zst dexon-sol-tools-e671563f1e8b9eb4015bd2b3034bad951ef3eda4.zip |
Update json-schemas for SRA v1
Diffstat (limited to 'packages/json-schemas/schemas/relayer_api_orders_channel_subscribe_schema.ts')
-rw-r--r-- | packages/json-schemas/schemas/relayer_api_orders_channel_subscribe_schema.ts | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/json-schemas/schemas/relayer_api_orders_channel_subscribe_schema.ts b/packages/json-schemas/schemas/relayer_api_orders_channel_subscribe_schema.ts new file mode 100644 index 000000000..1fe612949 --- /dev/null +++ b/packages/json-schemas/schemas/relayer_api_orders_channel_subscribe_schema.ts @@ -0,0 +1,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: '/Address' }, + takerAssetProxyId: { $ref: '/Address' }, + networkId: { type: 'number' }, + makerAssetAddress: { $ref: '/Address' }, + takerAssetAddress: { $ref: '/Address' }, + makerAssetData: { $ref: '/Hex' }, + takerAssetData: { $ref: '/Hex' }, + traderAssetData: { $ref: '/Hex' }, + }, +}; |