diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-09-26 06:31:41 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:24:06 +0800 |
commit | 40610830da70ae406227e80c700efea11042ba68 (patch) | |
tree | 3baa2ebd67699f34545a40863479141cb57bebff /packages/pipeline/src/entities | |
parent | 60bc27c616c411cf67bf89e669fb293135359685 (diff) | |
download | dexon-0x-contracts-40610830da70ae406227e80c700efea11042ba68.tar dexon-0x-contracts-40610830da70ae406227e80c700efea11042ba68.tar.gz dexon-0x-contracts-40610830da70ae406227e80c700efea11042ba68.tar.bz2 dexon-0x-contracts-40610830da70ae406227e80c700efea11042ba68.tar.lz dexon-0x-contracts-40610830da70ae406227e80c700efea11042ba68.tar.xz dexon-0x-contracts-40610830da70ae406227e80c700efea11042ba68.tar.zst dexon-0x-contracts-40610830da70ae406227e80c700efea11042ba68.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; |