aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/models/relayer.ts
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-09-18 02:27:38 +0800
committerFred Carlsen <fred@sjelfull.no>2018-12-13 01:11:46 +0800
commiteb1317a59abec368f3855eb3690e40d8db2a8984 (patch)
treec612db4cc6287a8b1f95d3cd458f332d68853adf /packages/pipeline/src/models/relayer.ts
parent98325e1cfb4f6c732728fe2943895fad2cb03be5 (diff)
downloaddexon-sol-tools-eb1317a59abec368f3855eb3690e40d8db2a8984.tar
dexon-sol-tools-eb1317a59abec368f3855eb3690e40d8db2a8984.tar.gz
dexon-sol-tools-eb1317a59abec368f3855eb3690e40d8db2a8984.tar.bz2
dexon-sol-tools-eb1317a59abec368f3855eb3690e40d8db2a8984.tar.lz
dexon-sol-tools-eb1317a59abec368f3855eb3690e40d8db2a8984.tar.xz
dexon-sol-tools-eb1317a59abec368f3855eb3690e40d8db2a8984.tar.zst
dexon-sol-tools-eb1317a59abec368f3855eb3690e40d8db2a8984.zip
Rebase pipeline branch off development
Diffstat (limited to 'packages/pipeline/src/models/relayer.ts')
-rw-r--r--packages/pipeline/src/models/relayer.ts75
1 files changed, 75 insertions, 0 deletions
diff --git a/packages/pipeline/src/models/relayer.ts b/packages/pipeline/src/models/relayer.ts
new file mode 100644
index 000000000..77a123e8b
--- /dev/null
+++ b/packages/pipeline/src/models/relayer.ts
@@ -0,0 +1,75 @@
+// const relayer = {
+// tableName: 'relayers',
+// tableProperties: {
+// id: {
+// type: 'integer',
+// },
+// name: {
+// type: 'varchar',
+// },
+// url : {
+// type: 'varchar',
+// },
+// model: {
+// type: 'varchar[]',
+// },
+// status: {
+// type: 'varchar',
+// },
+// sra_status: {
+// type: 'varchar',
+// },
+// sra_http_url: {
+// type: 'varchar',
+// },
+// known_fee_addresses: {
+// type: 'char(42)[]',
+// },
+// known_taker_addresses: {
+// type: 'char(42)[]',
+// },
+// relayer_type: {
+// type: 'varchar',
+// },
+// },
+// };
+const relayer = {
+ tableName: 'relayers',
+ tableProperties: {
+ name: {
+ type: 'varchar',
+ },
+ url: {
+ type: 'varchar',
+ },
+ sra_http_endpoint: {
+ type: 'varchar',
+ },
+ sra_ws_endpoint: {
+ type: 'varchar',
+ },
+ fee_recipient_addresses: {
+ type: 'char(42)[]',
+ },
+ taker_addresses: {
+ type: 'char(42)[]',
+ },
+ },
+};
+// const logToRelayerSchemaMapping: any = {
+// 'id' : 'id',
+// 'fields[\'Name\']': 'name',
+// 'fields[\'URL\']': 'url',
+// 'fields[\'Model\']': 'model',
+// 'fields[\'Status\']': 'status',
+// 'fields[\'SRA Status\']': 'sra_status',
+// 'fields[\'SRA HTTP URL\']': 'sra_http_url',
+// 'fields[\'Known Fee Addresses\']': 'known_fee_addresses',
+// 'fields[\'Known Taker Addresses\']': 'known_taker_addresses',
+// 'fields[\'Relayer Type\']': 'relayer_type',
+// };
+const logToRelayerSchemaMapping: any = {
+ name: 'name',
+ homepage_url: 'url',
+};
+export { relayer, logToRelayerSchemaMapping };