aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/entities/relayer.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-10-25 09:34:20 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-13 01:13:26 +0800
commitf6ebdd1a3f7a387d099aae3c81b81c38c16c7caa (patch)
tree8a3b138dfbe418d1fedba083009e5b285507d974 /packages/pipeline/src/entities/relayer.ts
parente2f222b08f0162fb067260bbbf1f58056b1badd7 (diff)
downloaddexon-0x-contracts-f6ebdd1a3f7a387d099aae3c81b81c38c16c7caa.tar
dexon-0x-contracts-f6ebdd1a3f7a387d099aae3c81b81c38c16c7caa.tar.gz
dexon-0x-contracts-f6ebdd1a3f7a387d099aae3c81b81c38c16c7caa.tar.bz2
dexon-0x-contracts-f6ebdd1a3f7a387d099aae3c81b81c38c16c7caa.tar.lz
dexon-0x-contracts-f6ebdd1a3f7a387d099aae3c81b81c38c16c7caa.tar.xz
dexon-0x-contracts-f6ebdd1a3f7a387d099aae3c81b81c38c16c7caa.tar.zst
dexon-0x-contracts-f6ebdd1a3f7a387d099aae3c81b81c38c16c7caa.zip
Implement fetching and parsing relayer info
Diffstat (limited to 'packages/pipeline/src/entities/relayer.ts')
-rw-r--r--packages/pipeline/src/entities/relayer.ts21
1 files changed, 11 insertions, 10 deletions
diff --git a/packages/pipeline/src/entities/relayer.ts b/packages/pipeline/src/entities/relayer.ts
index 5af8578b4..ebdcbf345 100644
--- a/packages/pipeline/src/entities/relayer.ts
+++ b/packages/pipeline/src/entities/relayer.ts
@@ -1,21 +1,22 @@
import { Column, Entity, PrimaryColumn } from 'typeorm';
-@Entity({ name: 'relayers', schema: 'raw' })
+@Entity()
export class Relayer {
- @PrimaryColumn() public uuid!: string;
+ @PrimaryColumn() public name!: string;
- @Column() public name!: string;
- @Column({ name: 'homepage_url', type: 'varchar' })
- public homepageUrl!: string;
- @Column({ name: 'sra_http_endpoint', type: 'varchar', nullable: true })
+ @Column() public url!: string;
+ @Column({ nullable: true, type: String })
public sraHttpEndpoint!: string | null;
- @Column({ name: 'sra_ws_endpoint', type: 'varchar', nullable: true })
+ @Column({ nullable: true, type: String })
public sraWsEndpoint!: string | null;
- @Column({ name: 'app_url', type: 'varchar', nullable: true })
+ @Column({ nullable: true, type: String })
public appUrl!: string | null;
- @Column({ name: 'fee_recipient_addresses', type: 'varchar', array: true })
+ // TODO(albrow): Add exchange contract or protocol version?
+ // TODO(albrow): Add network ids for addresses?
+
+ @Column({ type: 'varchar', array: true })
public feeRecipientAddresses!: string[];
- @Column({ name: 'taker_addresses', type: 'varchar', array: true })
+ @Column({ type: 'varchar', array: true })
public takerAddresses!: string[];
}