aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/exchange_fill_event.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-11-09 02:53:18 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-12-05 06:24:48 +0800
commit53cc9e9bedc6adf2247a190dbb758c9411033cab (patch)
treed7ede5521e5150ea06e1f1d8b8b7606a0c74f2e0 /packages/pipeline/src/entities/exchange_fill_event.ts
parentccad046eb649a60fdf7319a075fa41490d593ae8 (diff)
downloaddexon-sol-tools-53cc9e9bedc6adf2247a190dbb758c9411033cab.tar
dexon-sol-tools-53cc9e9bedc6adf2247a190dbb758c9411033cab.tar.gz
dexon-sol-tools-53cc9e9bedc6adf2247a190dbb758c9411033cab.tar.bz2
dexon-sol-tools-53cc9e9bedc6adf2247a190dbb758c9411033cab.tar.lz
dexon-sol-tools-53cc9e9bedc6adf2247a190dbb758c9411033cab.tar.xz
dexon-sol-tools-53cc9e9bedc6adf2247a190dbb758c9411033cab.tar.zst
dexon-sol-tools-53cc9e9bedc6adf2247a190dbb758c9411033cab.zip
Rename table and column names
Diffstat (limited to 'packages/pipeline/src/entities/exchange_fill_event.ts')
-rw-r--r--packages/pipeline/src/entities/exchange_fill_event.ts72
1 files changed, 47 insertions, 25 deletions
diff --git a/packages/pipeline/src/entities/exchange_fill_event.ts b/packages/pipeline/src/entities/exchange_fill_event.ts
index 6e549af93..0c5546d7e 100644
--- a/packages/pipeline/src/entities/exchange_fill_event.ts
+++ b/packages/pipeline/src/entities/exchange_fill_event.ts
@@ -2,36 +2,58 @@ import { Column, Entity, PrimaryColumn } from 'typeorm';
import { AssetType } from '../types';
-@Entity()
+@Entity({ name: 'exchange_fill_events' })
export class ExchangeFillEvent {
- @PrimaryColumn() public contractAddress!: string;
- @PrimaryColumn() public logIndex!: number;
- @PrimaryColumn() public blockNumber!: number;
+ @PrimaryColumn({ name: 'contract_address' })
+ public contractAddress!: string;
+ @PrimaryColumn({ name: 'log_index' })
+ public logIndex!: number;
+ @PrimaryColumn({ name: 'block_number' })
+ public blockNumber!: number;
- @Column() public rawData!: string;
+ @Column({ name: 'raw_data' })
+ public rawData!: string;
- @Column() public transactionHash!: string;
- @Column() public makerAddress!: string;
- @Column() public takerAddress!: string;
- @Column() public feeRecipientAddress!: string;
- @Column() public senderAddress!: string;
- @Column() public makerAssetFilledAmount!: string;
- @Column() public takerAssetFilledAmount!: string;
- @Column() public makerFeePaid!: string;
- @Column() public takerFeePaid!: string;
- @Column() public orderHash!: string;
+ @Column({ name: 'transaction_hash' })
+ public transactionHash!: string;
+ @Column({ name: 'maker_address' })
+ public makerAddress!: string;
+ @Column({ name: 'taker_address' })
+ public takerAddress!: string;
+ @Column({ name: 'fee_recipient_address' })
+ 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: 'order_hash' })
+ public orderHash!: string;
- @Column() public rawMakerAssetData!: string;
- @Column() public makerAssetType!: AssetType;
- @Column() public makerAssetProxyId!: string;
- @Column() public makerTokenAddress!: string;
- @Column({ nullable: true, type: String })
+ @Column({ name: 'raw_maker_asset_data' })
+ public rawMakerAssetData!: string;
+ @Column({ name: 'maker_asset_type' })
+ public makerAssetType!: AssetType;
+ @Column({ name: 'maker_asset_proxy_id' })
+ public makerAssetProxyId!: string;
+ @Column({ name: 'maker_token_address' })
+ public makerTokenAddress!: string;
+ @Column({ nullable: true, type: String, name: 'maker_token_id' })
public makerTokenId!: string | null;
- @Column() public rawTakerAssetData!: string;
- @Column() public takerAssetType!: AssetType;
- @Column() public takerAssetProxyId!: string;
- @Column() public takerTokenAddress!: string;
- @Column({ nullable: true, type: String })
+ @Column({ name: 'raw_taker_asset_data' })
+ public rawTakerAssetData!: string;
+ @Column({ name: 'taker_asset_type' })
+ public takerAssetType!: AssetType;
+ @Column({ name: 'taker_asset_proxy_id' })
+ public takerAssetProxyId!: string;
+ @Column({ name: 'taker_token_address' })
+ public takerTokenAddress!: string;
+ @Column({ nullable: true, type: String, name: 'taker_token_id' })
public takerTokenId!: string | null;
// TODO(albrow): Include topics?