aboutsummaryrefslogblamecommitdiffstats
path: root/packages/pipeline/src/entities/relayer.ts
blob: 5af8578b4821345a1352f8fb221772c21f31b06c (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                                        
                                            
                      
                                          
 
                                   


                                                                           
                                           
                                                                         
                                         
                                                                 

                                  
                                                                              
                                            
                                                                      

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

@Entity({ name: 'relayers', schema: 'raw' })
export class Relayer {
    @PrimaryColumn() public uuid!: string;

    @Column() public name!: string;
    @Column({ name: 'homepage_url', type: 'varchar' })
    public homepageUrl!: string;
    @Column({ name: 'sra_http_endpoint', type: 'varchar', nullable: true })
    public sraHttpEndpoint!: string | null;
    @Column({ name: 'sra_ws_endpoint', type: 'varchar', nullable: true })
    public sraWsEndpoint!: string | null;
    @Column({ name: 'app_url', type: 'varchar', nullable: true })
    public appUrl!: string | null;

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