aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/Relayer.ts
blob: ebdcbf34564e743699c2675290144a2137b27c3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { Column, Entity, PrimaryColumn } from 'typeorm';

@Entity()
export class Relayer {
    @PrimaryColumn() public name!: string;

    @Column() public url!: string;
    @Column({ nullable: true, type: String })
    public sraHttpEndpoint!: string | null;
    @Column({ nullable: true, type: String })
    public sraWsEndpoint!: string | null;
    @Column({ nullable: true, type: String })
    public appUrl!: string | null;

    // TODO(albrow): Add exchange contract or protocol version?
    // TODO(albrow): Add network ids for addresses?

    @Column({ type: 'varchar', array: true })
    public feeRecipientAddresses!: string[];
    @Column({ type: 'varchar', array: true })
    public takerAddresses!: string[];
}