diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-09-26 07:06:52 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-13 01:12:11 +0800 |
commit | 8702a354678b08b81d40c3254efbfe71e11ea522 (patch) | |
tree | 42d0a4387647e09a0fccf930c3511de7ce48ec6c /packages/pipeline/src/entities/ExchangeCancelUpToEvent.ts | |
parent | 07f80500fa6904ff68b1be2a99d38f4b8a65ee48 (diff) | |
download | dexon-sol-tools-8702a354678b08b81d40c3254efbfe71e11ea522.tar dexon-sol-tools-8702a354678b08b81d40c3254efbfe71e11ea522.tar.gz dexon-sol-tools-8702a354678b08b81d40c3254efbfe71e11ea522.tar.bz2 dexon-sol-tools-8702a354678b08b81d40c3254efbfe71e11ea522.tar.lz dexon-sol-tools-8702a354678b08b81d40c3254efbfe71e11ea522.tar.xz dexon-sol-tools-8702a354678b08b81d40c3254efbfe71e11ea522.tar.zst dexon-sol-tools-8702a354678b08b81d40c3254efbfe71e11ea522.zip |
For event entities, rename address -> contractAddress and make it a primary key
Diffstat (limited to 'packages/pipeline/src/entities/ExchangeCancelUpToEvent.ts')
-rw-r--r-- | packages/pipeline/src/entities/ExchangeCancelUpToEvent.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/pipeline/src/entities/ExchangeCancelUpToEvent.ts b/packages/pipeline/src/entities/ExchangeCancelUpToEvent.ts index 3021f7394..03a02b069 100644 --- a/packages/pipeline/src/entities/ExchangeCancelUpToEvent.ts +++ b/packages/pipeline/src/entities/ExchangeCancelUpToEvent.ts @@ -2,10 +2,10 @@ import { BaseEntity, Column, Entity, PrimaryColumn } from 'typeorm'; @Entity() export class ExchangeCancelUpToEvent extends BaseEntity { + @PrimaryColumn() public contractAddress!: string; @PrimaryColumn() public logIndex!: number; @PrimaryColumn() public blockNumber!: number; - @Column() public address!: string; @Column() public rawData!: string; @Column() public makerAddress!: string; |