aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/ExchangeFillEvent.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-09-26 06:03:49 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-12-05 06:24:06 +0800
commit60bc27c616c411cf67bf89e669fb293135359685 (patch)
tree04a5e743b5b7a8f793e3942da62be407ca509af5 /packages/pipeline/src/entities/ExchangeFillEvent.ts
parent2207f09ce2c8b595f75fce6387256a64c64b23c3 (diff)
downloaddexon-sol-tools-60bc27c616c411cf67bf89e669fb293135359685.tar
dexon-sol-tools-60bc27c616c411cf67bf89e669fb293135359685.tar.gz
dexon-sol-tools-60bc27c616c411cf67bf89e669fb293135359685.tar.bz2
dexon-sol-tools-60bc27c616c411cf67bf89e669fb293135359685.tar.lz
dexon-sol-tools-60bc27c616c411cf67bf89e669fb293135359685.tar.xz
dexon-sol-tools-60bc27c616c411cf67bf89e669fb293135359685.tar.zst
dexon-sol-tools-60bc27c616c411cf67bf89e669fb293135359685.zip
Implement scraping and parsing exchange cancel events
Diffstat (limited to 'packages/pipeline/src/entities/ExchangeFillEvent.ts')
-rw-r--r--packages/pipeline/src/entities/ExchangeFillEvent.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/pipeline/src/entities/ExchangeFillEvent.ts b/packages/pipeline/src/entities/ExchangeFillEvent.ts
index a7e817240..e66bd64e3 100644
--- a/packages/pipeline/src/entities/ExchangeFillEvent.ts
+++ b/packages/pipeline/src/entities/ExchangeFillEvent.ts
@@ -1,6 +1,6 @@
import { BaseEntity, Column, Entity, PrimaryColumn } from 'typeorm';
-export type ExchangeFillEventAssetType = 'erc20' | 'erc721';
+import { AssetType } from '../types';
@Entity()
export class ExchangeFillEvent extends BaseEntity {
@@ -20,13 +20,13 @@ export class ExchangeFillEvent extends BaseEntity {
@Column() public takerFeePaid!: string;
@Column() public orderHash!: string;
@Column() public rawMakerAssetData!: string;
- @Column() public makerAssetType!: ExchangeFillEventAssetType;
+ @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!: ExchangeFillEventAssetType;
+ @Column() public takerAssetType!: AssetType;
@Column() public takerAssetProxyId!: string;
@Column() public takerTokenAddress!: string;
@Column({ nullable: true, type: String })