aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/Transaction.ts
blob: d89d44746f19dd484a1b666abbc4533066ee59a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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;
}