aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sra-api/src/examples
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-08-08 07:51:47 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-08-08 07:52:34 +0800
commitb0a7db81cb2bde774f410938578476200d1dc694 (patch)
tree18a9fb425050938b47f1d2b8d618d81b73f46745 /packages/sra-api/src/examples
parente6c91493f2f99dea2e7e0ef6aa1365552f100fa4 (diff)
downloaddexon-sol-tools-b0a7db81cb2bde774f410938578476200d1dc694.tar
dexon-sol-tools-b0a7db81cb2bde774f410938578476200d1dc694.tar.gz
dexon-sol-tools-b0a7db81cb2bde774f410938578476200d1dc694.tar.bz2
dexon-sol-tools-b0a7db81cb2bde774f410938578476200d1dc694.tar.lz
dexon-sol-tools-b0a7db81cb2bde774f410938578476200d1dc694.tar.xz
dexon-sol-tools-b0a7db81cb2bde774f410938578476200d1dc694.tar.zst
dexon-sol-tools-b0a7db81cb2bde774f410938578476200d1dc694.zip
Add GET order_config
Diffstat (limited to 'packages/sra-api/src/examples')
-rw-r--r--packages/sra-api/src/examples/index.ts4
-rw-r--r--packages/sra-api/src/examples/relayerApiOrderConfig0
-rw-r--r--packages/sra-api/src/examples/relayerApiOrderConfigPayload.ts10
-rw-r--r--packages/sra-api/src/examples/relayerApiOrderConfigResponse.ts6
4 files changed, 20 insertions, 0 deletions
diff --git a/packages/sra-api/src/examples/index.ts b/packages/sra-api/src/examples/index.ts
index 51d979fe4..6581b840f 100644
--- a/packages/sra-api/src/examples/index.ts
+++ b/packages/sra-api/src/examples/index.ts
@@ -2,6 +2,8 @@ import { validationError } from './errors';
import { relayerApiAssetDataPairsResponse } from './relayerApiAssetDataPairsResponse';
import { relayerApiOrder } from './relayerApiOrder';
import { relayerApiOrderBookResponse } from './relayerApiOrderBookResponse';
+import { relayerApiOrderConfigPayload } from './relayerApiOrderConfigPayload';
+import { relayerApiOrderConfigResponse } from './relayerApiOrderConfigResponse';
import { relayerApiOrdersResponse } from './relayerApiOrdersResponse';
export const examples = {
@@ -9,5 +11,7 @@ export const examples = {
relayerApiAssetDataPairsResponse,
relayerApiOrder,
relayerApiOrderBookResponse,
+ relayerApiOrderConfigPayload,
+ relayerApiOrderConfigResponse,
relayerApiOrdersResponse,
};
diff --git a/packages/sra-api/src/examples/relayerApiOrderConfig b/packages/sra-api/src/examples/relayerApiOrderConfig
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/packages/sra-api/src/examples/relayerApiOrderConfig
diff --git a/packages/sra-api/src/examples/relayerApiOrderConfigPayload.ts b/packages/sra-api/src/examples/relayerApiOrderConfigPayload.ts
new file mode 100644
index 000000000..5251d5b4d
--- /dev/null
+++ b/packages/sra-api/src/examples/relayerApiOrderConfigPayload.ts
@@ -0,0 +1,10 @@
+export const relayerApiOrderConfigPayload = {
+ makerAddress: '0x9e56625509c2f60af937f23b7b532600390e8c8b',
+ takerAddress: '0xa2b31dacf30a9c50ca473337c01d8a201ae33e32',
+ makerAssetAmount: '10000000000000000',
+ takerAssetAmount: '20000000000000000',
+ makerAssetData: '0xf47261b04c32345ced77393b3530b1eed0f346429d',
+ takerAssetData: '0x0257179264389b814a946f3e92105513705ca6b990',
+ exchangeAddress: '0x12459c951127e0c374ff9105dda097662a027093',
+ expirationTimeSeconds: '1532560590',
+};
diff --git a/packages/sra-api/src/examples/relayerApiOrderConfigResponse.ts b/packages/sra-api/src/examples/relayerApiOrderConfigResponse.ts
new file mode 100644
index 000000000..a3c531c0a
--- /dev/null
+++ b/packages/sra-api/src/examples/relayerApiOrderConfigResponse.ts
@@ -0,0 +1,6 @@
+export const relayerApiOrderConfigResponse = {
+ senderAddress: '0xa2b31dacf30a9c50ca473337c01d8a201ae33e32',
+ feeRecipientAddress: '0xb046140686d052fff581f63f8136cce132e857da',
+ makerFee: '100000000000000',
+ takerFee: '200000000000000',
+};