diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-09-26 07:06:52 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-06 19:04:24 +0800 |
commit | 3ba98e219205752d1a2ccf3f8aee6ba38b2b0c01 (patch) | |
tree | 678a4701c1c4d54f4f1a5e46079d7586773080bf /packages/pipeline/src/entities/ExchangeFillEvent.ts | |
parent | 1ae3592e45d163682d8ef2ca076ee57bc170d7ad (diff) | |
download | dexon-sol-tools-3ba98e219205752d1a2ccf3f8aee6ba38b2b0c01.tar dexon-sol-tools-3ba98e219205752d1a2ccf3f8aee6ba38b2b0c01.tar.gz dexon-sol-tools-3ba98e219205752d1a2ccf3f8aee6ba38b2b0c01.tar.bz2 dexon-sol-tools-3ba98e219205752d1a2ccf3f8aee6ba38b2b0c01.tar.lz dexon-sol-tools-3ba98e219205752d1a2ccf3f8aee6ba38b2b0c01.tar.xz dexon-sol-tools-3ba98e219205752d1a2ccf3f8aee6ba38b2b0c01.tar.zst dexon-sol-tools-3ba98e219205752d1a2ccf3f8aee6ba38b2b0c01.zip |
For event entities, rename address -> contractAddress and make it a primary key
Diffstat (limited to 'packages/pipeline/src/entities/ExchangeFillEvent.ts')
-rw-r--r-- | packages/pipeline/src/entities/ExchangeFillEvent.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/pipeline/src/entities/ExchangeFillEvent.ts b/packages/pipeline/src/entities/ExchangeFillEvent.ts index 9ac8eb349..abd73191a 100644 --- a/packages/pipeline/src/entities/ExchangeFillEvent.ts +++ b/packages/pipeline/src/entities/ExchangeFillEvent.ts @@ -4,10 +4,10 @@ import { AssetType } from '../types'; @Entity() export class ExchangeFillEvent 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; |