diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-15 07:58:36 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:24:48 +0800 |
commit | 303bbc42f4322448998f3fde202574335d1190e6 (patch) | |
tree | b0a45e28d54fef51d237ff32352dd82c891419cf /packages/pipeline/src/parsers/sra_orders/index.ts | |
parent | 10e93bb01ffcf029821430781ef582a24901a461 (diff) | |
download | dexon-0x-contracts-303bbc42f4322448998f3fde202574335d1190e6.tar dexon-0x-contracts-303bbc42f4322448998f3fde202574335d1190e6.tar.gz dexon-0x-contracts-303bbc42f4322448998f3fde202574335d1190e6.tar.bz2 dexon-0x-contracts-303bbc42f4322448998f3fde202574335d1190e6.tar.lz dexon-0x-contracts-303bbc42f4322448998f3fde202574335d1190e6.tar.xz dexon-0x-contracts-303bbc42f4322448998f3fde202574335d1190e6.tar.zst dexon-0x-contracts-303bbc42f4322448998f3fde202574335d1190e6.zip |
Change some column types from varchar to numeric
Diffstat (limited to 'packages/pipeline/src/parsers/sra_orders/index.ts')
-rw-r--r-- | packages/pipeline/src/parsers/sra_orders/index.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/pipeline/src/parsers/sra_orders/index.ts b/packages/pipeline/src/parsers/sra_orders/index.ts index 800521955..ef8901e40 100644 --- a/packages/pipeline/src/parsers/sra_orders/index.ts +++ b/packages/pipeline/src/parsers/sra_orders/index.ts @@ -34,12 +34,12 @@ export function _convertToEntity(apiOrder: APIOrder): SraOrder { sraOrder.takerAddress = apiOrder.order.takerAddress; sraOrder.feeRecipientAddress = apiOrder.order.feeRecipientAddress; sraOrder.senderAddress = apiOrder.order.senderAddress; - sraOrder.makerAssetAmount = apiOrder.order.makerAssetAmount.toString(); - sraOrder.takerAssetAmount = apiOrder.order.takerAssetAmount.toString(); - sraOrder.makerFee = apiOrder.order.makerFee.toString(); - sraOrder.takerFee = apiOrder.order.takerFee.toString(); - sraOrder.expirationTimeSeconds = apiOrder.order.expirationTimeSeconds.toString(); - sraOrder.salt = apiOrder.order.salt.toString(); + sraOrder.makerAssetAmount = apiOrder.order.makerAssetAmount; + sraOrder.takerAssetAmount = apiOrder.order.takerAssetAmount; + sraOrder.makerFee = apiOrder.order.makerFee; + sraOrder.takerFee = apiOrder.order.takerFee; + sraOrder.expirationTimeSeconds = apiOrder.order.expirationTimeSeconds; + sraOrder.salt = apiOrder.order.salt; sraOrder.signature = apiOrder.order.signature; sraOrder.rawMakerAssetData = apiOrder.order.makerAssetData; |