-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.py
119 lines (109 loc) · 2.73 KB
/
config.py
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
NETWORK = {
"db": {
"DB_DRIVER": "mysql+pymysql",
"DB_HOST": "localhost",
"DB_USER": "unittest_root",
"DB_PASSWORD": "unittest_pwd",
"DB_NAME": "converter_unittest_db",
"DB_PORT": 3306,
"DB_LOGGING": True,
},
}
SLACK_HOOK = {
"hostname": "",
"port": 443,
"path": "",
"method": "POST",
"headers": {"Content-Type": "application/json"},
}
CONVERTER_REPORTING_SLACK_HOOK = {
"hostname": "",
"port": 443,
"path": "",
"method": "POST",
"headers": {"Content-Type": "application/json"},
}
BLOCKCHAIN_DETAILS = {
"ethereum": {
"network": {
"mainnet": {
"url": "https://mainnet.infura.io/v3/",
"secret": {}
},
"ropsten": {
"url": "https://ropsten.infura.io/v3/",
"secret": {}
},
"kovan": {
"url": "https://kovan.infura.io/v3/",
"secret": {}
},
"goerli": {
"url": "https://goerli.infura.io/v3/",
"secret": {}
},
"sepolia": {
"url": "https://sepolia.infura.io/v3/",
"secret": {}
},
}
},
"binance": {
"network": {
"mainnet": {
"url": "https://bsc-dataseed1.binance.org:443"
},
"testnet": {
"url": "https://data-seed-prebsc-1-s1.binance.org:8545"
}
}
},
"cardano": {
"network": {
"mainnet": {
"url": "https://cardano-mainnet.blockfrost.io/api",
"secret": {
"project_id": "project_id"
}
},
"testnet": {
"url": "https://cardano-testnet.blockfrost.io/api",
"secret": {
"project_id": "project_id"
}
},
"preprod": {
"url": "https://cardano-preprod.blockfrost.io/api",
"secret": {
"project_id": "project_id"
}
}
}
}
}
TOPIC_DETAILS = {
}
QUEUE_DETAILS = {
"CONVERTER_BRIDGE": "",
"CONVERTER_BRIDGE_1": "",
"CONVERTER_BRIDGE_2": "",
"CONVERTER_BRIDGE_3": "",
"CONVERTER_BRIDGE_4": "",
"EVENT_CONSUMER": ""
}
TOKEN_CONTRACT_PATH = {
}
MAX_RETRY = {"BLOCK_CONFIRMATION": 0, "TRANSACTION_HASH_PRESENCE": 0}
SLEEP_TIME = {"BLOCK_CONFIRMATION": 0, "TRANSACTION_HASH_PRESENCE": 0}
SIGNATURE_EXPIRY_BLOCKS = {
"CARDANO": 0,
"ETHEREUM": 0,
"BINANCE": 0
}
MESSAGE_GROUP_ID = ""
# In Hours
EXPIRE_CONVERSION = {
"CARDANO": 0,
"ETHEREUM": 0,
"BINANCE": 0
}