aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/ExchangeFillEvent.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-09-26 07:06:52 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-13 01:12:11 +0800
commit8702a354678b08b81d40c3254efbfe71e11ea522 (patch)
tree42d0a4387647e09a0fccf930c3511de7ce48ec6c /packages/pipeline/src/entities/ExchangeFillEvent.ts
parent07f80500fa6904ff68b1be2a99d38f4b8a65ee48 (diff)
downloaddexon-0x-contracts-8702a354678b08b81d40c3254efbfe71e11ea522.tar.gz
dexon-0x-contracts-8702a354678b08b81d40c3254efbfe71e11ea522.tar.zst
dexon-0x-contracts-8702a354678b08b81d40c3254efbfe71e11ea522.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.ts2
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;