aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/transaction.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-11-09 04:35:59 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-06 19:04:25 +0800
commit45da317e15960037024d9c04c1a08135a2889843 (patch)
tree41499a5c59da1385729e67331f89a9f9099fa810 /packages/pipeline/src/entities/transaction.ts
parentc21cf55b862bd6744d0a950f289dce350b32fe02 (diff)
downloaddexon-sol-tools-45da317e15960037024d9c04c1a08135a2889843.tar
dexon-sol-tools-45da317e15960037024d9c04c1a08135a2889843.tar.gz
dexon-sol-tools-45da317e15960037024d9c04c1a08135a2889843.tar.bz2
dexon-sol-tools-45da317e15960037024d9c04c1a08135a2889843.tar.lz
dexon-sol-tools-45da317e15960037024d9c04c1a08135a2889843.tar.xz
dexon-sol-tools-45da317e15960037024d9c04c1a08135a2889843.tar.zst
dexon-sol-tools-45da317e15960037024d9c04c1a08135a2889843.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.ts16
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;
+}