diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-08-08 08:58:38 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-08-08 08:58:38 +0800 |
commit | 4e30bc3e16d7e0e8876fab09a61e9446c2c9d93f (patch) | |
tree | 19fd0e5a8f86f0cd262c6e359fba90d224c8f1f5 /packages/sra-api/src/examples | |
parent | 95b656f360f635447725e00bb90642f1b859477a (diff) | |
download | dexon-sol-tools-4e30bc3e16d7e0e8876fab09a61e9446c2c9d93f.tar dexon-sol-tools-4e30bc3e16d7e0e8876fab09a61e9446c2c9d93f.tar.gz dexon-sol-tools-4e30bc3e16d7e0e8876fab09a61e9446c2c9d93f.tar.bz2 dexon-sol-tools-4e30bc3e16d7e0e8876fab09a61e9446c2c9d93f.tar.lz dexon-sol-tools-4e30bc3e16d7e0e8876fab09a61e9446c2c9d93f.tar.xz dexon-sol-tools-4e30bc3e16d7e0e8876fab09a61e9446c2c9d93f.tar.zst dexon-sol-tools-4e30bc3e16d7e0e8876fab09a61e9446c2c9d93f.zip |
Add POST order 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/signedOrder.ts | 16 |
2 files changed, 18 insertions, 0 deletions
diff --git a/packages/sra-api/src/examples/index.ts b/packages/sra-api/src/examples/index.ts index 06560f8ad..cdc4fac53 100644 --- a/packages/sra-api/src/examples/index.ts +++ b/packages/sra-api/src/examples/index.ts @@ -6,6 +6,7 @@ import { relayerApiOrderBookResponse } from './relayerApiOrderBookResponse'; import { relayerApiOrderConfigPayload } from './relayerApiOrderConfigPayload'; import { relayerApiOrderConfigResponse } from './relayerApiOrderConfigResponse'; import { relayerApiOrdersResponse } from './relayerApiOrdersResponse'; +import { signedOrder } from './signedOrder'; export const examples = { validationError, @@ -16,4 +17,5 @@ export const examples = { relayerApiOrderConfigPayload, relayerApiOrderConfigResponse, relayerApiOrdersResponse, + signedOrder, }; diff --git a/packages/sra-api/src/examples/signedOrder.ts b/packages/sra-api/src/examples/signedOrder.ts new file mode 100644 index 000000000..440566027 --- /dev/null +++ b/packages/sra-api/src/examples/signedOrder.ts @@ -0,0 +1,16 @@ +export const signedOrder = { + 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', +}; |