diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-09 04:35:59 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:24:55 +0800 |
commit | 6fb333f2003a67277a7605332f146adb2758cdd0 (patch) | |
tree | 600635590f57e4dca010154789f57342c0c11e0b /packages/pipeline/src/entities/transaction.ts | |
parent | 410a9244952b663fa8e56cc778b712ae228bbd82 (diff) | |
download | dexon-sol-tools-6fb333f2003a67277a7605332f146adb2758cdd0.tar dexon-sol-tools-6fb333f2003a67277a7605332f146adb2758cdd0.tar.gz dexon-sol-tools-6fb333f2003a67277a7605332f146adb2758cdd0.tar.bz2 dexon-sol-tools-6fb333f2003a67277a7605332f146adb2758cdd0.tar.lz dexon-sol-tools-6fb333f2003a67277a7605332f146adb2758cdd0.tar.xz dexon-sol-tools-6fb333f2003a67277a7605332f146adb2758cdd0.tar.zst dexon-sol-tools-6fb333f2003a67277a7605332f146adb2758cdd0.zip |
Rename Transaction.ts to transaction.ts
Rename Relayer.ts to relayer.ts
Rename Block.ts to block.ts
Diffstat (limited to 'packages/pipeline/src/entities/transaction.ts')
-rw-r--r-- | packages/pipeline/src/entities/transaction.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/pipeline/src/entities/transaction.ts b/packages/pipeline/src/entities/transaction.ts new file mode 100644 index 000000000..eb2883fda --- /dev/null +++ b/packages/pipeline/src/entities/transaction.ts @@ -0,0 +1,16 @@ +import { Column, Entity, PrimaryColumn } from 'typeorm'; + +@Entity({ name: 'transactions' }) +export class Transaction { + @PrimaryColumn({ name: 'transaction_hash' }) + public transactionHash!: string; + @PrimaryColumn({ name: 'block_hash' }) + public blockHash!: string; + @PrimaryColumn({ name: 'block_number' }) + public blockNumber!: number; + + @Column({ type: 'bigint', name: 'gas_used' }) + public gasUsed!: number; + @Column({ type: 'bigint', name: 'gas_price' }) + public gasPrice!: number; +} |