forked from solidquant/whack-a-mole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigs.py
45 lines (35 loc) · 941 Bytes
/
configs.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
import os
from dotenv import load_dotenv
from addresses import (
ETHEREUM_TOKENS,
POLYGON_TOKENS,
ARBITRUM_TOKENS,
ETHEREUM_POOLS,
POLYGON_POOLS,
ARBITRUM_POOLS,
ETHEREUM_SIMULATION_HANDLERS,
ETHEREUM_EXECUTION_HANDLERS,
)
load_dotenv(override=True)
RPC_ENDPOINTS = {
'ethereum': os.getenv('ETHEREUM_HTTP_RPC_URL'),
'polygon': os.getenv('POLYGON_HTTP_RPC_URL'),
'arbitrum': os.getenv('ARBITRUM_HTTP_RPC_URL'),
}
WS_ENDPOINTS = {
'ethereum': os.getenv('ETHEREUM_WS_RPC_URL'),
'polygon': os.getenv('POLYGON_WS_RPC_URL'),
'arbitrum': os.getenv('ARBITRUM_WS_RPC_URL'),
}
TOKENS = {
'ethereum': ETHEREUM_TOKENS,
'polygon': POLYGON_TOKENS,
'arbitrum': ARBITRUM_TOKENS,
}
POOLS = ETHEREUM_POOLS + POLYGON_POOLS + ARBITRUM_POOLS
SIMULATION_HANDLERS = {
'ethereum': ETHEREUM_SIMULATION_HANDLERS,
}
EXECUTION_HANDLERS = {
'ethereum': ETHEREUM_EXECUTION_HANDLERS,
}