-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathconfig.py
More file actions
349 lines (260 loc) · 7.12 KB
/
config.py
File metadata and controls
349 lines (260 loc) · 7.12 KB
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
RANDOMIZE = True
SLIPPAGE = 0.03
MIN_PAUSE = 10
MAX_PAUSE = 20
RETRIES = 3
PAUSE_BETWEEN_RETRIES = 1
CHECK_GWEI = False
MAX_GWEI = 25
USE_DATABASE = False
deploy_contract = False
# --- Other --- #
dmail = False
rubyscore = False
multi_approve = True
# --- Lendings --- #
layerbank_deposit = False
layerbank_withdraw = False
aave_deposit = False
aave_withdraw = False
# --- Bridges --- #
main_bridge = False
owl_bridge = False
orbiter_bridge = False
# --- Swaps --- #
skydrome_swap = False
punk_swap = False
zebra_swap = False
syncswap_swap = False
specefi_swap = False
wrapper = False
swap_all_to_eth = False
random_dex_swap = False
# --- Liquidity --- #
punk_swap_liquidity = False
punk_swap_liquidity_remove = False
spacefi_liquidity = False
spacefi_liquidity_remove = False
syncswap_liquidity = True
syncswap_liquidity_remove = False
skydrome_liquidity = False
skydrome_liquidity_remove = False
random_add_liquidity = False
# --- NFT --- #
zerius = False
l2pass = False
omnisea = False
scroll_citizen = False
zk_stars = False
# --- Withdrawals --- #
okx_withdraw = False # from okx to wallets
okx_deposit = False # from wallets to okx
class OkxWithdrawConfig:
"""
OKX => Wallets
amount: Union[float, List[float]].
chain: str. ERC20 - Ethereum.
"""
amount = [0.001, 0.002]
chain = 'ERC-20'
class WithdrawFromWalletsToOKXConfig:
"""
Wallets => OKX
amount: Union[float, List[float]].
from_chain: str. ETH, ERA, etc.
withdraw_all: bool. True/False.
keep_value: Union[float, List[float]]. ETH value to keep on your wallet if withdraw_all = True.
"""
amount = [0.001, 0.002]
from_chain = 'ARB'
withdraw_all = True
keep_value = [0.005, 0.007]
class MainBridgeConfig:
"""
action: str. deposit/withdraw.
amount: Union[float, List[float]]. Value to bridge. You can use float or list. e.g. amount = 0.5 (will bridge 0.5 ETH)
or amount = [0.5, 0.6] (will randomly take a number between 0.5 and 0.6)
use_percentage: bool. Use True if you want to use a percentage of the balance instead of numbers.
bridge_percentage: Union[float, List[float]]. Value as a percentage of balance to bridge.
You can use float or list. e.g. bridge_percentage = 0.5 (will bridge 50% of your ETH balance)
or bridge_percentage = [0.5, 0.6] (will randomly take a number between 50% and 60%)
"""
action = 'withdraw'
amount = [0.1, 0.2]
use_percentage = True
bridge_percentage = [0.5, 0.5]
claim_eth = False # True is only if you withdraw from Scroll to ETH (need to wait for ~40 minutes after bridge)
class OrbiterBridgeConfig:
"""
chains: eth, arb, op, era, base, scroll
action: deposit/withdraw
"""
action = 'deposit'
from_chain = 'ARB'
to_chain = 'SCROLL'
amount = [0.05, 0.06]
use_percentage = False
bridge_percentage = [0.5, 0.5]
class OwlBridgeConfig:
"""
"""
action = 'deposit'
from_chain = 'SCROLL'
to_chain = 'ARB'
amount = 0.004
use_percentage = False
bridge_percentage = [0.5, 0.5]
class SwapAllTokensConfig:
tokens_list = ['WETH', 'USDC', 'USDT', 'WBTC', 'DAI']
to_token = 'ETH'
class RandomDexSwapConfig:
from_token = 'ETH'
to_token = ['USDC', 'USDT', 'WBTC', 'DAI']
amount = [0.001, 0.003]
use_percentage = False
swap_percentage = [0.1, 0.2]
num_swaps = [1, 4]
class SyncSwapSwapConfig:
"""
from_token: str.
to_token: str | list[str]. If to_token = ['USDC', 'USDT'] it will randomly take USDT or USDC.
"""
from_token = 'ETH'
to_token = ['USDC', 'USDT']
amount = 0.001
use_percentage = False
swap_percentage = 0.5
swap_all_balance = True
# --- Swaps --- #
class SkyDromeSwapConfig:
from_token = 'WETH'
to_token = 'USDC'
amount = 0.0024
use_percentage = False
swap_percentage = 0.5
swap_all_balance = True
class ZebraSwapConfig:
from_token = 'USDT'
to_token = 'ETH'
amount = 0.0024
use_percentage = False
swap_percentage = [0.1, 0.2]
swap_all_balance = True
class SpaceFiSwapConfig:
from_token = 'ETH'
to_token = 'USDT'
amount = 0.002
use_percentage = False
swap_percentage = 0.5
swap_all_balance = True
class PunkSwapConfig:
from_token = 'USDC'
to_token = 'ETH'
amount = [0.0009, 0.0011]
use_percentage = False
swap_percentage = 0.1
swap_all_balance = True
class WrapperConfig:
"""
action: str. Wrap/Unwrap.
amount: Union[float, List[float]].
use_all_balance: bool. True is only for action = Unwrap.
use_percentage: bool. True/False.
percentage_to_wrap: Union[List[float], float].
"""
action = 'unwrap'
amount = [0.001, 0.002]
use_all_balance = False
use_percentage = True
percentage_to_wrap = [0.1, 0.2]
class RandomLiquidityConfig:
token = 'ETH'
token2 = ['USDT']
amount = [0.0004, 0.0004]
use_percentage = True
liquidity_percentage = [0.1, 0.2]
num_transactions = [1, 1]
class PunkSwapLiquidityConfig:
token = 'USDC'
token2 = 'USDT'
amount = [1, 1]
use_percentage = False
liquidity_percentage = 0.01
class SpaceFiLiquidityConfig:
token = 'USDC'
token2 = 'USDT'
amount = [1, 1]
use_percentage = False
liquidity_percentage = 0.01
class SyncSwapLiquidityConfig:
token = 'ETH'
token2 = 'USDC'
amount = [0.001, 0.001]
use_percentage = False
liquidity_percentage = 0.01
class SyncSwapLiquidityRemoveConfig:
token = 'ETH'
token2 = 'USDC'
removing_percentage = 0.5
remove_all = True
class PunkSwapLiquidityRemoveConfig:
token = 'USDC'
token2 = 'USDT'
removing_percentage = 0.5
remove_all = True
class SpaceFiLiquidityRemoveConfig:
token = 'USDC'
token2 = 'USDT'
removing_percentage = 0.5
remove_all = True
class SkyDromeLiquidityConfig:
token = 'ETH'
token2 = 'USDC'
amount = [0.001, 0.001]
use_percentage = False
liquidity_percentage = 0.01
class SkyDromeLiquidityRemoveConfig:
token = 'USDC'
token2 = 'USDT'
removing_percentage = 0.5
remove_all = True
class DmailConfig:
num_transactions = 1
class ZeruisConfig:
"""
chain_to_bridge: Union[str, List[str]]: ['ARB', 'OP', 'POLYGON', 'BSC', 'AVAX']
"""
chain_to_bridge = ['ARB', 'OP', 'POLYGON', 'BSC', 'AVAX']
class DeployerConfig:
use_0x_bytecode = True
class LayerBankDepositConfig:
"""
action: str. deposit/withdraw
amount: Union[float, List[float]]
use_percentage: bool. True/False
percentage: float. 0 - 1.
"""
amount = [0.0005, 0.001]
use_percentage = True
percentage = [0.85, 0.9]
only_collateral = False
class LayerBankWithdrawConfig:
amount = [0.001, 0.002]
withdraw_all = True
use_percentage = False
percentage = 0.01
class AaveDepositConfig:
amount = [0.001, 0.002]
use_percentage = True
percentage = [0.1, 0.2]
class AaveWithdrawConfig:
amount = [0.001, 0.002]
withdraw_all = True
use_percentage = False
percentage = [0.1, 0.2]
class ScrollCitizenMintConfig:
mint_all = False
quantity = [1, 2]
class ZkStarsMintConfig:
mint_all = False
quantity = [1, 2]