diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-08-08 06:38:50 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-08-08 06:39:33 +0800 |
commit | f36a43a83f6c8ae32d36768da8c97858ef051446 (patch) | |
tree | 0037a7273a4c1e8b4e8b50d068e930b32d622381 /packages/sra-api/src/examples | |
parent | f4c2fabbf8f8eccd5cd7c65035e78ad268a34b57 (diff) | |
download | dexon-sol-tools-f36a43a83f6c8ae32d36768da8c97858ef051446.tar dexon-sol-tools-f36a43a83f6c8ae32d36768da8c97858ef051446.tar.gz dexon-sol-tools-f36a43a83f6c8ae32d36768da8c97858ef051446.tar.bz2 dexon-sol-tools-f36a43a83f6c8ae32d36768da8c97858ef051446.tar.lz dexon-sol-tools-f36a43a83f6c8ae32d36768da8c97858ef051446.tar.xz dexon-sol-tools-f36a43a83f6c8ae32d36768da8c97858ef051446.tar.zst dexon-sol-tools-f36a43a83f6c8ae32d36768da8c97858ef051446.zip |
Add orders endpoint
Diffstat (limited to 'packages/sra-api/src/examples')
-rw-r--r-- | packages/sra-api/src/examples/index.ts | 2 | ||||
-rw-r--r-- | packages/sra-api/src/examples/relayerApiAssetDataPairsResponse.ts | 21 | ||||
-rw-r--r-- | packages/sra-api/src/examples/relayerApiOrdersResponse.ts | 26 |
3 files changed, 49 insertions, 0 deletions
diff --git a/packages/sra-api/src/examples/index.ts b/packages/sra-api/src/examples/index.ts index a9d08691e..0ae8a22a7 100644 --- a/packages/sra-api/src/examples/index.ts +++ b/packages/sra-api/src/examples/index.ts @@ -1,7 +1,9 @@ import { validationError } from './errors'; import { relayerApiAssetDataPairsResponse } from './relayerApiAssetDataPairsResponse'; +import { relayerApiOrdersResponse } from './relayerApiOrdersResponse'; export const examples = { validationError, relayerApiAssetDataPairsResponse, + relayerApiOrdersResponse, }; diff --git a/packages/sra-api/src/examples/relayerApiAssetDataPairsResponse.ts b/packages/sra-api/src/examples/relayerApiAssetDataPairsResponse.ts new file mode 100644 index 000000000..9eead5239 --- /dev/null +++ b/packages/sra-api/src/examples/relayerApiAssetDataPairsResponse.ts @@ -0,0 +1,21 @@ +export const relayerApiAssetDataPairsResponse = { + 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', + }, + }, + ], +}; diff --git a/packages/sra-api/src/examples/relayerApiOrdersResponse.ts b/packages/sra-api/src/examples/relayerApiOrdersResponse.ts new file mode 100644 index 000000000..ac16e7e34 --- /dev/null +++ b/packages/sra-api/src/examples/relayerApiOrdersResponse.ts @@ -0,0 +1,26 @@ +export const relayerApiOrdersResponse = { + total: 984, + page: 1, + perPage: 100, + records: [ + { + order: { + makerAddress: '0x9e56625509c2f60af937f23b7b532600390e8c8b', + takerAddress: '0xa2b31dacf30a9c50ca473337c01d8a201ae33e32', + feeRecipientAddress: '0xb046140686d052fff581f63f8136cce132e857da', + senderAddress: '0xa2b31dacf30a9c50ca473337c01d8a201ae33e32', + makerAssetAmount: '10000000000000000', + takerAssetAmount: '20000000000000000', + makerFee: '100000000000000', + takerFee: '200000000000000', + expirationTimeSeconds: '1532560590', + salt: '1532559225', + makerAssetData: '0xf47261b04c32345ced77393b3530b1eed0f346429d', + takerAssetData: '0x0257179264389b814a946f3e92105513705ca6b990', + exchangeAddress: '0x12459c951127e0c374ff9105dda097662a027093', + signature: '0x012761a3ed31b43c8780e905a260a35faefcc527be7516aa11c0256729b5b351bc33', + }, + metaData: {}, + }, + ], +}; |