diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-09 04:35:59 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-06 19:04:25 +0800 |
commit | 45da317e15960037024d9c04c1a08135a2889843 (patch) | |
tree | 41499a5c59da1385729e67331f89a9f9099fa810 /packages/pipeline/src/entities/relayer.ts | |
parent | c21cf55b862bd6744d0a950f289dce350b32fe02 (diff) | |
download | dexon-sol-tools-45da317e15960037024d9c04c1a08135a2889843.tar dexon-sol-tools-45da317e15960037024d9c04c1a08135a2889843.tar.gz dexon-sol-tools-45da317e15960037024d9c04c1a08135a2889843.tar.bz2 dexon-sol-tools-45da317e15960037024d9c04c1a08135a2889843.tar.lz dexon-sol-tools-45da317e15960037024d9c04c1a08135a2889843.tar.xz dexon-sol-tools-45da317e15960037024d9c04c1a08135a2889843.tar.zst dexon-sol-tools-45da317e15960037024d9c04c1a08135a2889843.zip |
Rename Transaction.ts to transaction.ts
Rename Relayer.ts to relayer.ts
Rename Block.ts to block.ts
Diffstat (limited to 'packages/pipeline/src/entities/relayer.ts')
-rw-r--r-- | packages/pipeline/src/entities/relayer.ts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/pipeline/src/entities/relayer.ts b/packages/pipeline/src/entities/relayer.ts new file mode 100644 index 000000000..94b5232a8 --- /dev/null +++ b/packages/pipeline/src/entities/relayer.ts @@ -0,0 +1,23 @@ +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[]; +} |