diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-09 02:15:09 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-06 19:04:24 +0800 |
commit | 012134001a3f0f60c938c453dc34d78e83e195c1 (patch) | |
tree | 337d99b3236e700f8163e01f146d29095d3e041c /packages/pipeline/src/entities/exchange_cancel_event.ts | |
parent | 0f869b0545d18863414ba4d5cc0c2aeb4da700db (diff) | |
download | dexon-0x-contracts-012134001a3f0f60c938c453dc34d78e83e195c1.tar.gz dexon-0x-contracts-012134001a3f0f60c938c453dc34d78e83e195c1.tar.zst dexon-0x-contracts-012134001a3f0f60c938c453dc34d78e83e195c1.zip |
Reorganize entities. Make scripts work from any directory.
Diffstat (limited to 'packages/pipeline/src/entities/exchange_cancel_event.ts')
-rw-r--r-- | packages/pipeline/src/entities/exchange_cancel_event.ts | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/packages/pipeline/src/entities/exchange_cancel_event.ts b/packages/pipeline/src/entities/exchange_cancel_event.ts new file mode 100644 index 000000000..698b9e2ec --- /dev/null +++ b/packages/pipeline/src/entities/exchange_cancel_event.ts @@ -0,0 +1,35 @@ +import { Column, Entity, PrimaryColumn } from 'typeorm'; + +import { AssetType } from '../types'; + +@Entity() +export class ExchangeCancelEvent { + @PrimaryColumn() public contractAddress!: string; + @PrimaryColumn() public logIndex!: number; + @PrimaryColumn() public blockNumber!: number; + + @Column() public rawData!: string; + + // TODO(albrow): Include transaction hash + @Column() public makerAddress!: string; + @Column({ nullable: true, type: String }) + public takerAddress!: string; + @Column() public feeRecepientAddress!: string; + @Column() public senderAddress!: 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? +} |