aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/src/models/relayer.ts
blob: 77a123e8ba6f71cbac266e4fbc263b41c3e53b92 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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 };