diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-09-26 07:03:54 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:24:06 +0800 |
commit | b0de2a388fc7079bc45c7886b002420783021416 (patch) | |
tree | bc8c255fce21f2cbd3f45d375d3d1fd59dbfe45b /packages/pipeline/src/entities/ExchangeCancelUpToEvent.ts | |
parent | 40610830da70ae406227e80c700efea11042ba68 (diff) | |
download | dexon-sol-tools-b0de2a388fc7079bc45c7886b002420783021416.tar.gz dexon-sol-tools-b0de2a388fc7079bc45c7886b002420783021416.tar.zst dexon-sol-tools-b0de2a388fc7079bc45c7886b002420783021416.zip |
Implement scraping and parsing exchange CancelUpTo events
Diffstat (limited to 'packages/pipeline/src/entities/ExchangeCancelUpToEvent.ts')
-rw-r--r-- | packages/pipeline/src/entities/ExchangeCancelUpToEvent.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/packages/pipeline/src/entities/ExchangeCancelUpToEvent.ts b/packages/pipeline/src/entities/ExchangeCancelUpToEvent.ts new file mode 100644 index 000000000..3021f7394 --- /dev/null +++ b/packages/pipeline/src/entities/ExchangeCancelUpToEvent.ts @@ -0,0 +1,15 @@ +import { BaseEntity, Column, Entity, PrimaryColumn } from 'typeorm'; + +@Entity() +export class ExchangeCancelUpToEvent extends BaseEntity { + @PrimaryColumn() public logIndex!: number; + @PrimaryColumn() public blockNumber!: number; + + @Column() public address!: string; + @Column() public rawData!: string; + + @Column() public makerAddress!: string; + @Column() public senderAddress!: string; + @Column() public orderEpoch!: string; + // TODO(albrow): Include topics? +} |