aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-09-26 07:03:54 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-13 01:12:11 +0800
commit07f80500fa6904ff68b1be2a99d38f4b8a65ee48 (patch)
treeeb807f5d66840ff5150b2c92c3661730906e57d4 /packages/pipeline/src/entities
parent97fc4257a068fe96fc6b382a3564b1bc054bd2fd (diff)
downloaddexon-sol-tools-07f80500fa6904ff68b1be2a99d38f4b8a65ee48.tar
dexon-sol-tools-07f80500fa6904ff68b1be2a99d38f4b8a65ee48.tar.gz
dexon-sol-tools-07f80500fa6904ff68b1be2a99d38f4b8a65ee48.tar.bz2
dexon-sol-tools-07f80500fa6904ff68b1be2a99d38f4b8a65ee48.tar.lz
dexon-sol-tools-07f80500fa6904ff68b1be2a99d38f4b8a65ee48.tar.xz
dexon-sol-tools-07f80500fa6904ff68b1be2a99d38f4b8a65ee48.tar.zst
dexon-sol-tools-07f80500fa6904ff68b1be2a99d38f4b8a65ee48.zip
Implement scraping and parsing exchange CancelUpTo events
Diffstat (limited to 'packages/pipeline/src/entities')
-rw-r--r--packages/pipeline/src/entities/ExchangeCancelUpToEvent.ts15
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?
+}