aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-10-25 09:34:20 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-06 19:04:24 +0800
commitb159d4e0ecbd1f1419501c79dbb9bf52004c37b7 (patch)
tree0443e8e86c6ec1e0216fc6e1446dc413fecce8f0 /packages/pipeline/src/entities
parent1402a3dfae1be32a346f8b75a4209950bda00b74 (diff)
downloaddexon-sol-tools-b159d4e0ecbd1f1419501c79dbb9bf52004c37b7.tar.gz
dexon-sol-tools-b159d4e0ecbd1f1419501c79dbb9bf52004c37b7.tar.zst
dexon-sol-tools-b159d4e0ecbd1f1419501c79dbb9bf52004c37b7.zip
Implement fetching and parsing relayer info
Diffstat (limited to 'packages/pipeline/src/entities')
-rw-r--r--packages/pipeline/src/entities/Relayer.ts22
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[];
+}