diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-09-26 06:31:41 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-13 01:12:11 +0800 |
commit | 97fc4257a068fe96fc6b382a3564b1bc054bd2fd (patch) | |
tree | b4cddaee1a6d0b71c3c19c39a9c8d1b5b4437215 /packages/pipeline/src/entities | |
parent | 25f1b7701fa1c5402e7d6f91cccdbd63bb9a525c (diff) | |
download | dexon-sol-tools-97fc4257a068fe96fc6b382a3564b1bc054bd2fd.tar dexon-sol-tools-97fc4257a068fe96fc6b382a3564b1bc054bd2fd.tar.gz dexon-sol-tools-97fc4257a068fe96fc6b382a3564b1bc054bd2fd.tar.bz2 dexon-sol-tools-97fc4257a068fe96fc6b382a3564b1bc054bd2fd.tar.lz dexon-sol-tools-97fc4257a068fe96fc6b382a3564b1bc054bd2fd.tar.xz dexon-sol-tools-97fc4257a068fe96fc6b382a3564b1bc054bd2fd.tar.zst dexon-sol-tools-97fc4257a068fe96fc6b382a3564b1bc054bd2fd.zip |
Use multi-primary keys for event and filter null logIndexes
Diffstat (limited to 'packages/pipeline/src/entities')
-rw-r--r-- | packages/pipeline/src/entities/ExchangeCancelEvent.ts | 2 | ||||
-rw-r--r-- | packages/pipeline/src/entities/ExchangeFillEvent.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/pipeline/src/entities/ExchangeCancelEvent.ts b/packages/pipeline/src/entities/ExchangeCancelEvent.ts index 8e21518d3..c925a4b01 100644 --- a/packages/pipeline/src/entities/ExchangeCancelEvent.ts +++ b/packages/pipeline/src/entities/ExchangeCancelEvent.ts @@ -5,10 +5,10 @@ import { AssetType } from '../types'; @Entity() export class ExchangeCancelEvent extends BaseEntity { @PrimaryColumn() public logIndex!: number; + @PrimaryColumn() public blockNumber!: number; @Column() public address!: string; @Column() public rawData!: string; - @Column() public blockNumber!: number; @Column() public makerAddress!: string; @Column({ nullable: true, type: String }) diff --git a/packages/pipeline/src/entities/ExchangeFillEvent.ts b/packages/pipeline/src/entities/ExchangeFillEvent.ts index e66bd64e3..9ac8eb349 100644 --- a/packages/pipeline/src/entities/ExchangeFillEvent.ts +++ b/packages/pipeline/src/entities/ExchangeFillEvent.ts @@ -5,10 +5,10 @@ import { AssetType } from '../types'; @Entity() export class ExchangeFillEvent extends BaseEntity { @PrimaryColumn() public logIndex!: number; + @PrimaryColumn() public blockNumber!: number; @Column() public address!: string; @Column() public rawData!: string; - @Column() public blockNumber!: number; @Column() public makerAddress!: string; @Column() public takerAddress!: string; |