aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-api/src/examples
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-03 06:25:40 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-03 06:25:40 +0800
commit1ce6579c3a05264f93957b0c2d845a1351f4a3b1 (patch)
treec42bee4fc5bf5d60ee7e5bb3e75b9e6540a74f2e /packages/sra-api/src/examples
parentafc5c2616acfaf59e8ce716bc9329bc06021dc7a (diff)
downloaddexon-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.ts5
-rw-r--r--packages/sra-api/src/examples/relayerApiAssetDataPairsResponseSchema.ts21
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',
+ },
+ },
+ ],
+};