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_asset_pairs_response_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_asset_pairs_response_schema.ts')
-rw-r--r-- | packages/json-schemas/schemas/relayer_api_asset_pairs_response_schema.ts | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/packages/json-schemas/schemas/relayer_api_asset_pairs_response_schema.ts b/packages/json-schemas/schemas/relayer_api_asset_pairs_response_schema.ts new file mode 100644 index 000000000..74b919a8f --- /dev/null +++ b/packages/json-schemas/schemas/relayer_api_asset_pairs_response_schema.ts @@ -0,0 +1,38 @@ +export const relayerApiAssetDataPairsResponseSchema = { + id: '/RelayerApiAssetDataPairsResponse', + type: 'object', + allOf: [ + { $ref: '/PaginatedCollection' }, + { + properties: { + records: { $ref: '/RelayerApiAssetDataPairs' }, + }, + required: ['records'], + }, + ], +}; + +export const relayerApiAssetDataPairsSchema = { + id: '/RelayerApiAssetDataPairs', + type: 'array', + items: { + properties: { + assetDataA: { $ref: '/RelayerApiAssetDataTradeInfo' }, + assetDataB: { $ref: '/RelayerApiAssetDataTradeInfo' }, + }, + required: ['assetDataA', 'assetDataB'], + type: 'object', + }, +}; + +export const relayerApiAssetDataTradeInfoSchema = { + id: '/RelayerApiAssetDataTradeInfo', + type: 'object', + properties: { + assetData: { $ref: '/Hex' }, + minAmount: { $ref: '/Number' }, + maxAmount: { $ref: '/Number' }, + precision: { type: 'number' }, + }, + required: ['assetData'], +}; |