aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/exchange_fill_event.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-11-15 07:58:36 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-13 01:16:21 +0800
commit829b7cb7125aafeed763d6215bbb21d63ebf58cd (patch)
treee7a8f93c123b56fcc5c027d49b0382add6ec6042 /packages/pipeline/src/entities/exchange_fill_event.ts
parentfb8267d85ecaafc0967095548592a9c7aad23257 (diff)
downloaddexon-sol-tools-829b7cb7125aafeed763d6215bbb21d63ebf58cd.tar
dexon-sol-tools-829b7cb7125aafeed763d6215bbb21d63ebf58cd.tar.gz
dexon-sol-tools-829b7cb7125aafeed763d6215bbb21d63ebf58cd.tar.bz2
dexon-sol-tools-829b7cb7125aafeed763d6215bbb21d63ebf58cd.tar.lz
dexon-sol-tools-829b7cb7125aafeed763d6215bbb21d63ebf58cd.tar.xz
dexon-sol-tools-829b7cb7125aafeed763d6215bbb21d63ebf58cd.tar.zst
dexon-sol-tools-829b7cb7125aafeed763d6215bbb21d63ebf58cd.zip
Change some column types from varchar to numeric
Diffstat (limited to 'packages/pipeline/src/entities/exchange_fill_event.ts')
-rw-r--r--packages/pipeline/src/entities/exchange_fill_event.ts18
1 files changed, 10 insertions, 8 deletions
diff --git a/packages/pipeline/src/entities/exchange_fill_event.ts b/packages/pipeline/src/entities/exchange_fill_event.ts
index 6202e558b..aa082436b 100644
--- a/packages/pipeline/src/entities/exchange_fill_event.ts
+++ b/packages/pipeline/src/entities/exchange_fill_event.ts
@@ -1,6 +1,8 @@
+import { BigNumber } from '@0x/utils';
import { Column, Entity, PrimaryColumn } from 'typeorm';
import { AssetType } from '../types';
+import { bigNumberTransformer } from '../utils';
@Entity({ name: 'exchange_fill_events', schema: 'raw' })
export class ExchangeFillEvent {
@@ -24,14 +26,14 @@ export class ExchangeFillEvent {
public feeRecipientAddress!: string;
@Column({ name: 'sender_address' })
public senderAddress!: string;
- @Column({ name: 'maker_asset_filled_amount' })
- public makerAssetFilledAmount!: string;
- @Column({ name: 'taker_asset_filled_amount' })
- public takerAssetFilledAmount!: string;
- @Column({ name: 'maker_fee_paid' })
- public makerFeePaid!: string;
- @Column({ name: 'taker_fee_paid' })
- public takerFeePaid!: string;
+ @Column({ name: 'maker_asset_filled_amount', type: 'numeric', transformer: bigNumberTransformer })
+ public makerAssetFilledAmount!: BigNumber;
+ @Column({ name: 'taker_asset_filled_amount', type: 'numeric', transformer: bigNumberTransformer })
+ public takerAssetFilledAmount!: BigNumber;
+ @Column({ name: 'maker_fee_paid', type: 'numeric', transformer: bigNumberTransformer })
+ public makerFeePaid!: BigNumber;
+ @Column({ name: 'taker_fee_paid', type: 'numeric', transformer: bigNumberTransformer })
+ public takerFeePaid!: BigNumber;
@Column({ name: 'order_hash' })
public orderHash!: string;