aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/utils
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-02-07 21:41:40 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-02-07 21:41:40 +0800
commit9b3680780fab26543331524870eba75eea08a426 (patch)
tree8ed51682e7f1a7b86d1ea84c9f53ef468f7ccaf2 /packages/website/ts/utils
parent12d62e1157168ec9e8cd23749523b2bcda8eefe5 (diff)
downloaddexon-sol-tools-9b3680780fab26543331524870eba75eea08a426.tar
dexon-sol-tools-9b3680780fab26543331524870eba75eea08a426.tar.gz
dexon-sol-tools-9b3680780fab26543331524870eba75eea08a426.tar.bz2
dexon-sol-tools-9b3680780fab26543331524870eba75eea08a426.tar.lz
dexon-sol-tools-9b3680780fab26543331524870eba75eea08a426.tar.xz
dexon-sol-tools-9b3680780fab26543331524870eba75eea08a426.tar.zst
dexon-sol-tools-9b3680780fab26543331524870eba75eea08a426.zip
Rename expiration to expirationUnixTimestampSec
Diffstat (limited to 'packages/website/ts/utils')
-rw-r--r--packages/website/ts/utils/utils.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/website/ts/utils/utils.ts b/packages/website/ts/utils/utils.ts
index 7e69b1c5f..794df8dc7 100644
--- a/packages/website/ts/utils/utils.ts
+++ b/packages/website/ts/utils/utils.ts
@@ -7,8 +7,8 @@ import * as moment from 'moment';
import {
EtherscanLinkSuffixes,
Networks,
- Order,
ScreenWidths,
+ SerializedOrder,
Side,
SideToAssetToken,
SignatureData,
@@ -71,7 +71,7 @@ export const utils = {
signatureData: SignatureData,
tokenByAddress: TokenByAddress,
orderSalt: BigNumber,
- ): Order {
+ ): SerializedOrder {
const makerToken = tokenByAddress[sideToAssetToken[Side.Deposit].address];
const takerToken = tokenByAddress[sideToAssetToken[Side.Receive].address];
const order = {
@@ -97,7 +97,7 @@ export const utils = {
amount: sideToAssetToken[Side.Receive].amount.toString(),
feeAmount: takerFee.toString(),
},
- expiration: orderExpiryTimestamp.toString(),
+ expirationUnixTimestampSec: orderExpiryTimestamp.toString(),
feeRecipient,
salt: orderSalt.toString(),
signature: signatureData,