diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-09-20 08:30:34 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:24:03 +0800 |
commit | 4e6919a6e58d76766098262664c78f92d888337d (patch) | |
tree | 649bc1c711a498c6718f36994283f65c3e56aba1 /packages/pipeline/src/entities | |
parent | d71fa6535987a0f13900f8e31dbb51772c12fc4f (diff) | |
download | dexon-0x-contracts-4e6919a6e58d76766098262664c78f92d888337d.tar.gz dexon-0x-contracts-4e6919a6e58d76766098262664c78f92d888337d.tar.zst dexon-0x-contracts-4e6919a6e58d76766098262664c78f92d888337d.zip |
Add typeorm and begin inserting database records
Diffstat (limited to 'packages/pipeline/src/entities')
-rw-r--r-- | packages/pipeline/src/entities/ExchangeFillEvent.ts | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/pipeline/src/entities/ExchangeFillEvent.ts b/packages/pipeline/src/entities/ExchangeFillEvent.ts new file mode 100644 index 000000000..1e9e8d986 --- /dev/null +++ b/packages/pipeline/src/entities/ExchangeFillEvent.ts @@ -0,0 +1,24 @@ +import { Column, Entity, PrimaryColumn } from 'typeorm'; + +@Entity() +export class ExchangeFillEvent { + @PrimaryColumn() public logIndex!: number; + + @Column() public address!: string; + @Column() public rawData!: string; + @Column() public blockNumber!: number; + + @Column() public makerAddress!: string; + @Column() public takerAddress!: string; + @Column() public feeRecepientAddress!: string; + @Column() public senderAddress!: string; + @Column() public makerAssetFilledAmount!: string; + @Column() public takerAssetFilledAmount!: string; + @Column() public makerFeePaid!: string; + @Column() public takerFeePaid!: string; + @Column() public orderHash!: string; + // TODO(albrow): Decode asset data. + @Column() public makerAssetData!: string; + @Column() public takerAssetData!: string; + // TODO(albrow): Include topics? +} |