diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-25 09:34:20 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-12-05 06:24:48 +0800 |
commit | 5e22a862b77d4947361342972c28a8552d13018e (patch) | |
tree | 6ef99ff4d5b9d1f0c41e87c18b97d1987b5da9ab /packages/pipeline/src/entities | |
parent | bb440b683a7a4d966694de2b897f51f22dadb31c (diff) | |
download | dexon-sol-tools-5e22a862b77d4947361342972c28a8552d13018e.tar dexon-sol-tools-5e22a862b77d4947361342972c28a8552d13018e.tar.gz dexon-sol-tools-5e22a862b77d4947361342972c28a8552d13018e.tar.bz2 dexon-sol-tools-5e22a862b77d4947361342972c28a8552d13018e.tar.lz dexon-sol-tools-5e22a862b77d4947361342972c28a8552d13018e.tar.xz dexon-sol-tools-5e22a862b77d4947361342972c28a8552d13018e.tar.zst dexon-sol-tools-5e22a862b77d4947361342972c28a8552d13018e.zip |
Implement fetching and parsing relayer info
Diffstat (limited to 'packages/pipeline/src/entities')
-rw-r--r-- | packages/pipeline/src/entities/Relayer.ts | 22 |
1 files changed, 22 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..ebdcbf345 --- /dev/null +++ b/packages/pipeline/src/entities/Relayer.ts @@ -0,0 +1,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[]; +} |