aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/Transaction.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/pipeline/src/entities/Transaction.ts')
-rw-r--r--packages/pipeline/src/entities/Transaction.ts11
1 files changed, 11 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..d89d44746
--- /dev/null
+++ b/packages/pipeline/src/entities/Transaction.ts
@@ -0,0 +1,11 @@
+import { Column, Entity, PrimaryColumn } from 'typeorm';
+
+@Entity()
+export class Transaction {
+ @PrimaryColumn() public transactionHash!: string;
+ @PrimaryColumn() public blockHash!: string;
+ @PrimaryColumn() public blockNumber!: number;
+
+ @Column() public gasUsed!: number;
+ @Column() public gasPrice!: number;
+}