aboutsummaryrefslogblamecommitdiffstats
path: root/packages/pipeline/src/entities/Relayer.ts
blob: 605355fa80d676e1873f9b078e12fca468a3e6e6 (plain) (tree)
1
2
3
4
5
6
7



                                                        
                                          
 
                                   















                                                               
import { Column, Entity, PrimaryColumn } from 'typeorm';

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

    @Column() 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[];
}