Rename Transaction.ts to transaction.ts
Rename Relayer.ts to relayer.ts Rename Block.ts to block.ts
This commit is contained in:
		
				
					committed by
					
						
						Fred Carlsen
					
				
			
			
				
	
			
			
			
						parent
						
							f5f01c0c3e
						
					
				
				
					commit
					4fa4f13813
				
			@@ -1,10 +0,0 @@
 | 
			
		||||
import { Column, Entity, PrimaryColumn } from 'typeorm';
 | 
			
		||||
 | 
			
		||||
@Entity({ name: 'blocks' })
 | 
			
		||||
export class Block {
 | 
			
		||||
    @PrimaryColumn() public hash!: string;
 | 
			
		||||
    @PrimaryColumn() public number!: number;
 | 
			
		||||
 | 
			
		||||
    @Column({ name: 'unix_timestamp_seconds' })
 | 
			
		||||
    public unixTimestampSeconds!: number;
 | 
			
		||||
}
 | 
			
		||||
@@ -1,23 +0,0 @@
 | 
			
		||||
import { Column, Entity, PrimaryColumn } from 'typeorm';
 | 
			
		||||
 | 
			
		||||
@Entity({ name: 'relayers' })
 | 
			
		||||
export class Relayer {
 | 
			
		||||
    @PrimaryColumn() public uuid!: string;
 | 
			
		||||
 | 
			
		||||
    @Column() public name!: string;
 | 
			
		||||
    @Column() public url!: string;
 | 
			
		||||
    @Column({ nullable: true, type: String, name: 'sra_http_endpoint' })
 | 
			
		||||
    public sraHttpEndpoint!: string | null;
 | 
			
		||||
    @Column({ nullable: true, type: String, name: 'sra_ws_endpoint' })
 | 
			
		||||
    public sraWsEndpoint!: string | null;
 | 
			
		||||
    @Column({ nullable: true, type: String, name: 'app_url' })
 | 
			
		||||
    public appUrl!: string | null;
 | 
			
		||||
 | 
			
		||||
    // TODO(albrow): Add exchange contract or protocol version?
 | 
			
		||||
    // TODO(albrow): Add network ids for addresses?
 | 
			
		||||
 | 
			
		||||
    @Column({ type: 'varchar', array: true, name: 'fee_recipient_addresses' })
 | 
			
		||||
    public feeRecipientAddresses!: string[];
 | 
			
		||||
    @Column({ type: 'varchar', array: true, name: 'taker_addresses' })
 | 
			
		||||
    public takerAddresses!: string[];
 | 
			
		||||
}
 | 
			
		||||
@@ -1,16 +0,0 @@
 | 
			
		||||
import { Column, Entity, PrimaryColumn } from 'typeorm';
 | 
			
		||||
 | 
			
		||||
@Entity({ name: 'transactions' })
 | 
			
		||||
export class Transaction {
 | 
			
		||||
    @PrimaryColumn({ name: 'transaction_hash' })
 | 
			
		||||
    public transactionHash!: string;
 | 
			
		||||
    @PrimaryColumn({ name: 'block_hash' })
 | 
			
		||||
    public blockHash!: string;
 | 
			
		||||
    @PrimaryColumn({ name: 'block_number' })
 | 
			
		||||
    public blockNumber!: number;
 | 
			
		||||
 | 
			
		||||
    @Column({ type: 'bigint', name: 'gas_used' })
 | 
			
		||||
    public gasUsed!: number;
 | 
			
		||||
    @Column({ type: 'bigint', name: 'gas_price' })
 | 
			
		||||
    public gasPrice!: number;
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user