diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-09 02:15:09 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:24:48 +0800 |
commit | ccad046eb649a60fdf7319a075fa41490d593ae8 (patch) | |
tree | 3c356e71868c7dcc770791dc70e90ae7abc16a30 /packages/pipeline/src/entities/exchange_fill_event.ts | |
parent | 954c3b9272556723c10fd02ad6b753ac98ca47fa (diff) | |
download | dexon-0x-contracts-ccad046eb649a60fdf7319a075fa41490d593ae8.tar dexon-0x-contracts-ccad046eb649a60fdf7319a075fa41490d593ae8.tar.gz dexon-0x-contracts-ccad046eb649a60fdf7319a075fa41490d593ae8.tar.bz2 dexon-0x-contracts-ccad046eb649a60fdf7319a075fa41490d593ae8.tar.lz dexon-0x-contracts-ccad046eb649a60fdf7319a075fa41490d593ae8.tar.xz dexon-0x-contracts-ccad046eb649a60fdf7319a075fa41490d593ae8.tar.zst dexon-0x-contracts-ccad046eb649a60fdf7319a075fa41490d593ae8.zip |
Reorganize entities. Make scripts work from any directory.
Diffstat (limited to 'packages/pipeline/src/entities/exchange_fill_event.ts')
-rw-r--r-- | packages/pipeline/src/entities/exchange_fill_event.ts | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/packages/pipeline/src/entities/exchange_fill_event.ts b/packages/pipeline/src/entities/exchange_fill_event.ts new file mode 100644 index 000000000..6e549af93 --- /dev/null +++ b/packages/pipeline/src/entities/exchange_fill_event.ts @@ -0,0 +1,38 @@ +import { Column, Entity, PrimaryColumn } from 'typeorm'; + +import { AssetType } from '../types'; + +@Entity() +export class ExchangeFillEvent { + @PrimaryColumn() public contractAddress!: string; + @PrimaryColumn() public logIndex!: number; + @PrimaryColumn() public blockNumber!: number; + + @Column() 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() public rawMakerAssetData!: string; + @Column() public makerAssetType!: AssetType; + @Column() public makerAssetProxyId!: string; + @Column() public makerTokenAddress!: string; + @Column({ nullable: true, type: String }) + 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 }) + public takerTokenId!: string | null; + + // TODO(albrow): Include topics? +} |