diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-08-03 06:25:40 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-08-03 06:25:40 +0800 |
commit | 1ce6579c3a05264f93957b0c2d845a1351f4a3b1 (patch) | |
tree | c42bee4fc5bf5d60ee7e5bb3e75b9e6540a74f2e /packages/sra-api/src/examples | |
parent | afc5c2616acfaf59e8ce716bc9329bc06021dc7a (diff) | |
download | dexon-sol-tools-1ce6579c3a05264f93957b0c2d845a1351f4a3b1.tar dexon-sol-tools-1ce6579c3a05264f93957b0c2d845a1351f4a3b1.tar.gz dexon-sol-tools-1ce6579c3a05264f93957b0c2d845a1351f4a3b1.tar.bz2 dexon-sol-tools-1ce6579c3a05264f93957b0c2d845a1351f4a3b1.tar.lz dexon-sol-tools-1ce6579c3a05264f93957b0c2d845a1351f4a3b1.tar.xz dexon-sol-tools-1ce6579c3a05264f93957b0c2d845a1351f4a3b1.tar.zst dexon-sol-tools-1ce6579c3a05264f93957b0c2d845a1351f4a3b1.zip |
Create asset_pairs SRA endpoint (and establish conventions)
Diffstat (limited to 'packages/sra-api/src/examples')
-rw-r--r-- | packages/sra-api/src/examples/index.ts | 5 | ||||
-rw-r--r-- | packages/sra-api/src/examples/relayerApiAssetDataPairsResponseSchema.ts | 21 |
2 files changed, 26 insertions, 0 deletions
diff --git a/packages/sra-api/src/examples/index.ts b/packages/sra-api/src/examples/index.ts new file mode 100644 index 000000000..10ecd182c --- /dev/null +++ b/packages/sra-api/src/examples/index.ts @@ -0,0 +1,5 @@ +import { relayerApiAssetDataPairsResponseSchema } from './relayerApiAssetDataPairsResponseSchema'; + +export const examples = { + relayerApiAssetDataPairsResponseSchema, +}; diff --git a/packages/sra-api/src/examples/relayerApiAssetDataPairsResponseSchema.ts b/packages/sra-api/src/examples/relayerApiAssetDataPairsResponseSchema.ts new file mode 100644 index 000000000..89a0c82fb --- /dev/null +++ b/packages/sra-api/src/examples/relayerApiAssetDataPairsResponseSchema.ts @@ -0,0 +1,21 @@ +export const relayerApiAssetDataPairsResponseSchema = { + total: 43, + page: 1, + perPage: 100, + records: [ + { + assetDataA: { + minAmount: '0', + maxAmount: '10000000000000000000', + precision: 5, + assetData: '0xf47261b04c32345ced77393b3530b1eed0f346429d', + }, + assetDataB: { + minAmount: '0', + maxAmount: '50000000000000000000', + precision: 5, + assetData: '0x0257179264389b814a946f3e92105513705ca6b990', + }, + }, + ], +}; |