aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/ExchangeCancelEvent.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-09-26 06:03:49 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-06 19:04:24 +0800
commit5262d3b1f2227d5e4988e801a4318aa6e0e0ab68 (patch)
treeb083e49535d4f390bc3ce7e33aa22b10b71ddd2c /packages/pipeline/src/entities/ExchangeCancelEvent.ts
parent7d9afce13b0e84d778cf82ddb42366ac3213d1b1 (diff)
downloaddexon-sol-tools-5262d3b1f2227d5e4988e801a4318aa6e0e0ab68.tar
dexon-sol-tools-5262d3b1f2227d5e4988e801a4318aa6e0e0ab68.tar.gz
dexon-sol-tools-5262d3b1f2227d5e4988e801a4318aa6e0e0ab68.tar.bz2
dexon-sol-tools-5262d3b1f2227d5e4988e801a4318aa6e0e0ab68.tar.lz
dexon-sol-tools-5262d3b1f2227d5e4988e801a4318aa6e0e0ab68.tar.xz
dexon-sol-tools-5262d3b1f2227d5e4988e801a4318aa6e0e0ab68.tar.zst
dexon-sol-tools-5262d3b1f2227d5e4988e801a4318aa6e0e0ab68.zip
Implement scraping and parsing exchange cancel events
Diffstat (limited to 'packages/pipeline/src/entities/ExchangeCancelEvent.ts')
-rw-r--r--packages/pipeline/src/entities/ExchangeCancelEvent.ts32
1 files changed, 32 insertions, 0 deletions
diff --git a/packages/pipeline/src/entities/ExchangeCancelEvent.ts b/packages/pipeline/src/entities/ExchangeCancelEvent.ts
new file mode 100644
index 000000000..8e21518d3
--- /dev/null
+++ b/packages/pipeline/src/entities/ExchangeCancelEvent.ts
@@ -0,0 +1,32 @@
+import { BaseEntity, Column, Entity, PrimaryColumn } from 'typeorm';
+
+import { AssetType } from '../types';
+
+@Entity()
+export class ExchangeCancelEvent extends BaseEntity {
+ @PrimaryColumn() public logIndex!: number;
+
+ @Column() public address!: string;
+ @Column() public rawData!: string;
+ @Column() public blockNumber!: number;
+
+ @Column() public makerAddress!: string;
+ @Column({ nullable: true, type: String })
+ public takerAddress!: string;
+ @Column() public feeRecepientAddress!: string;
+ @Column() public senderAddress!: string;
+ @Column() public orderHash!: string;
+ @Column() public rawMakerAssetData!: string;
+ @Column() public makerAssetType!: AssetType;
+ @Column() public makerAssetProxyId!: string;
+ @Column() public makerTokenAddress!: string;
+ @Column({ nullable: true, type: String })
+ public makerTokenId!: string | null;
+ @Column() public rawTakerAssetData!: string;
+ @Column() public takerAssetType!: AssetType;
+ @Column() public takerAssetProxyId!: string;
+ @Column() public takerTokenAddress!: string;
+ @Column({ nullable: true, type: String })
+ public takerTokenId!: string | null;
+ // TODO(albrow): Include topics?
+}