aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-09-26 07:06:52 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-12-05 06:24:06 +0800
commit71a015f2aa32fedd3d3c5e9d5a3fa4eb272b2852 (patch)
treeef8933cdc94b71b78d7b535d6d49bb519e1bfd9d /packages/pipeline/src/entities
parentb0de2a388fc7079bc45c7886b002420783021416 (diff)
downloaddexon-0x-contracts-71a015f2aa32fedd3d3c5e9d5a3fa4eb272b2852.tar.gz
dexon-0x-contracts-71a015f2aa32fedd3d3c5e9d5a3fa4eb272b2852.tar.zst
dexon-0x-contracts-71a015f2aa32fedd3d3c5e9d5a3fa4eb272b2852.zip
For event entities, rename address -> contractAddress and make it a primary key
Diffstat (limited to 'packages/pipeline/src/entities')
-rw-r--r--packages/pipeline/src/entities/ExchangeCancelEvent.ts2
-rw-r--r--packages/pipeline/src/entities/ExchangeCancelUpToEvent.ts2
-rw-r--r--packages/pipeline/src/entities/ExchangeFillEvent.ts2
3 files changed, 3 insertions, 3 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;
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;
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;