aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/Transaction.ts
blob: 8a68da813a43a292c340bdf283788ad566157a72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { Column, Entity, PrimaryColumn } from 'typeorm';

@Entity()
export class Transaction {
    @PrimaryColumn() public transactionHash!: string;
    @PrimaryColumn() public blockHash!: string;
    @PrimaryColumn() public blockNumber!: number;

    @Column({ type: 'bigint' })
    public gasUsed!: number;
    @Column({ type: 'bigint' })
    public gasPrice!: number;
}