-
Notifications
You must be signed in to change notification settings - Fork 357
/
config.py
199 lines (193 loc) · 3.57 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
import asyncio
from modules.utils.files import read_txt, load_json
from modules.utils.helpers import get_chain_prices, get_wallet_proxies, get_bungee_data
max_time_check_tx_status = 100 # seconds. If a transaction does not return a status within this time, it is considered executed
# Which networks to enable in DeBank
DEBANK_ACTIVATE_CHAINS = [
{
"eth": "Ethereum"
},
{
"bsc": "BNB Chain"
},
{
"xdai": "Gnosis Chain"
},
# {
# "heco": "HECO"
# },
{
"matic": "Polygon"
},
{
"ftm": "Fantom"
},
# {
# "okt": "OKC"
# },
{
"avax": "Avalanche"
},
{
"op": "Optimism"
},
{
"arb": "Arbitrum"
},
# {
# "celo": "Celo"
# },
# {
# "movr": "Moonriver"
# },
# {
# "cro": "Cronos"
# },
# {
# "boba": "Boba"
# },
# {
# "metis": "Metis"
# },
# {
# "btt": "BitTorrent"
# },
# {
# "aurora": "Aurora"
# },
# {
# "mobm": "Moonbeam"
# },
# {
# "sbch": "SmartBch"
# },
# {
# "fuse": "Fuse"
# },
{
"hmy": "Harmony"
},
# {
# "klay": "Klaytn"
# },
# {
# "astar": "Astar"
# },
# {
# "palm": "Palm"
# },
# {
# "sdn": "Shiden"
# },
# {
# "iotx": "IoTeX"
# },
# {
# "rsk": "RSK"
# },
# {
# "wan": "Wanchain"
# },
# {
# "kcc": "KCC"
# },
# {
# "sgb": "Songbird"
# },
# {
# "evmos": "EvmOS"
# },
# {
# "dfk": "DFK"
# },
# {
# "tlos": "Telos"
# },
# {
# "swm": "Swimmer"
# },
{
"nova": "Arbitrum Nova"
},
# {
# "canto": "Canto"
# },
# {
# "doge": "Dogechain"
# },
# {
# "kava": "Kava"
# },
# {
# "step": "Step"
# },
# {
# "cfx": "Conflux"
# },
# {
# "mada": "Milkomeda"
# },
# {
# "brise": "Bitgert"
# },
# {
# "ckb": "Godwoken"
# },
# {
# "tomb": "TOMB Chain"
# },
{
"era": "zkSync Era"
},
# {
# "ron": "Ronin"
# },
{
"pze": "Polygon zkEVM"
},
# {
# "eos": "EOS EVM"
# },
{
"core": "CORE"
},
# {
# "wemix": "WEMIX"
# },
# {
# "etc": "Ethereum Classic"
# },
# {
# "pls": "Pulse"
# },
# {
# "flr": "Flare"
# },
# {
# "fsn": "Fusion"
# },
# {
# "mtr": "Meter"
# },
# {
# "rose": "Oasis Emerald"
# },
{
"base": "BASE"
},
]
STR_DONE = '✅ '
STR_CANCEL = '❌ '
ERC20_ABI = load_json("modules/utils/contracts/erc20.json")
MULTICALL_ABI = load_json("modules/utils/contracts/multicall_abi.json")
WALLETS = read_txt("datas/wallets.txt")
RECIPIENTS = read_txt("datas/recipients.txt")
STARKNET_ADDRESS = read_txt("datas/starknet_address.txt")
PROXIES = read_txt("datas/proxies.txt")
ORBITER_MAKER = load_json("modules/utils/contracts/orbiter_maker.json") # https://github.com/Orbiter-Finance/OrbiterFE-V2/tree/main/src/config (maker-1 / maker-2)
ABI_ZERIUS_REFUEL = load_json("modules/utils/contracts/zerius_refuel.json")
RECIPIENTS_WALLETS = dict(zip(WALLETS, RECIPIENTS))
STARKNET_WALLETS = dict(zip(WALLETS, STARKNET_ADDRESS))
WALLET_PROXIES = get_wallet_proxies(WALLETS, PROXIES)
PRICES_NATIVE = asyncio.run(get_chain_prices())
BUNGEE_LIMITS = asyncio.run(get_bungee_data())