diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-09-26 07:06:52 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:24:06 +0800 |
commit | 71a015f2aa32fedd3d3c5e9d5a3fa4eb272b2852 (patch) | |
tree | ef8933cdc94b71b78d7b535d6d49bb519e1bfd9d /packages/pipeline/src/entities/ExchangeCancelEvent.ts | |
parent | b0de2a388fc7079bc45c7886b002420783021416 (diff) | |
download | dexon-sol-tools-71a015f2aa32fedd3d3c5e9d5a3fa4eb272b2852.tar dexon-sol-tools-71a015f2aa32fedd3d3c5e9d5a3fa4eb272b2852.tar.gz dexon-sol-tools-71a015f2aa32fedd3d3c5e9d5a3fa4eb272b2852.tar.bz2 dexon-sol-tools-71a015f2aa32fedd3d3c5e9d5a3fa4eb272b2852.tar.lz dexon-sol-tools-71a015f2aa32fedd3d3c5e9d5a3fa4eb272b2852.tar.xz dexon-sol-tools-71a015f2aa32fedd3d3c5e9d5a3fa4eb272b2852.tar.zst dexon-sol-tools-71a015f2aa32fedd3d3c5e9d5a3fa4eb272b2852.zip |
For event entities, rename address -> contractAddress and make it a primary key
Diffstat (limited to 'packages/pipeline/src/entities/ExchangeCancelEvent.ts')
-rw-r--r-- | packages/pipeline/src/entities/ExchangeCancelEvent.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/pipeline/src/entities/ExchangeCancelEvent.ts b/packages/pipeline/src/entities/ExchangeCancelEvent.ts index c925a4b01..d0188c2f5 100644 --- a/packages/pipeline/src/entities/ExchangeCancelEvent.ts +++ b/packages/pipeline/src/entities/ExchangeCancelEvent.ts @@ -4,10 +4,10 @@ import { AssetType } from '../types'; @Entity() export class ExchangeCancelEvent 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; |