-
Notifications
You must be signed in to change notification settings - Fork 4
/
main.py
157 lines (133 loc) · 6.18 KB
/
main.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
import asyncio
import random
import sys
import time
from concurrent.futures import ThreadPoolExecutor
import questionary
from questionary import Choice
from settings import (
RANDOM_WALLET,
SLEEP_TO,
SLEEP_FROM,
QUANTITY_THREADS,
THREAD_SLEEP_FROM,
THREAD_SLEEP_TO,
SAVE_LOGS
)
from modules_settings import *
from utils.sleeping import sleep
from utils.password_handler import get_wallet_data
from utils.logs_handler import filter_out_utils
from itertools import count
import threading
from loguru import logger
from config import HEADER
transaction_lock = threading.Lock()
def get_module():
counter = count(1)
result = questionary.select(
"Select a method to get started",
choices=[
Choice(f"{next(counter)}) Encrypt wallets", encrypt_privates),
Choice(f"{next(counter)}) Withdraw from OKX", withdraw_okx),
Choice(f"{next(counter)}) Make bridge to Base", bridge_base),
Choice(f"{next(counter)}) Make bridge on Orbiter", bridge_orbiter),
Choice(f"{next(counter)}) Bridge Relay", bridge_relay),
Choice(f"{next(counter)}) Wrap ETH", wrap_eth),
Choice(f"{next(counter)}) Unwrap ETH", unwrap_eth),
Choice(f"{next(counter)}) Swap on Uniswap", swap_uniswap),
Choice(f"{next(counter)}) Swap on Pancake", swap_pancake),
Choice(f"{next(counter)}) Swap on WooFi", swap_woofi),
Choice(f"{next(counter)}) Swap on BaseSwap", swap_baseswap),
Choice(f"{next(counter)}) Swap on AlienSwap", swap_alienswap),
Choice(f"{next(counter)}) Swap on Maverick", swap_maverick),
Choice(f"{next(counter)}) Swap on Odos", swap_odos),
Choice(f"{next(counter)}) Swap on 1inch", swap_inch),
Choice(f"{next(counter)}) Swap on OpenOcean", swap_openocean),
Choice(f"{next(counter)}) Swap on XYSwap", swap_xyswap),
Choice(f"{next(counter)}) Bungee Refuel", bungee_refuel),
Choice(f"{next(counter)}) Stargate bridge", stargate_bridge),
Choice(f"{next(counter)}) Deposit Aave", deposit_aave),
Choice(f"{next(counter)}) Withdraw Aave", withdraw_aave),
Choice(f"{next(counter)}) Deposit MoonWell", deposit_moonwell),
Choice(f"{next(counter)}) Withdraw MoonWell", withdraw_moonwell),
Choice(f"{next(counter)}) Mint NFT on MintFun", mint_mintfun),
Choice(f"{next(counter)}) Mint and Bridge Zerius NFT", mint_zerius),
Choice(f"{next(counter)}) Mint ZkStars NFT", mint_zkstars),
Choice(f"{next(counter)}) Dmail sending mail", send_mail),
Choice(f"{next(counter)}) Send message L2Telegraph", send_message),
Choice(f"{next(counter)}) Mint and bridge NFT L2Telegraph", bridge_nft),
Choice(f"{next(counter)}) Create portfolio on Ray", create_portfolio),
Choice(f"{next(counter)}) Create gnosis safe", create_safe),
Choice(f"{next(counter)}) Search NFTS2ME contracts", nfts2me_search_contracts),
Choice(f"{next(counter)}) Mint NFT on NFTS2ME", mint_nft),
Choice(f"{next(counter)}) Swap tokens to ETH", swap_tokens),
Choice(f"{next(counter)}) Use Multiswap", swap_multiswap),
Choice(f"{next(counter)}) Mint COINearnings", mint_coinearnings),
Choice(f"{next(counter)}) Mint unlooped", unlooped_mint),
Choice(f"{next(counter)}) Mint EIP-4844 nft", mint_eip4844),
Choice(f"{next(counter)}) Mint on Sound.xyz\n", sound_xyz_mint),
Choice(f"{next(counter)}) Register account Onchain Summer", register_onchain_summer),
Choice(f"{next(counter)}) Mint Onchain Summer2 NFTs", mint_onchain_summer2_nfts),
Choice(f"{next(counter)}) Claim Onchain Summer2 badges", claim_all_badges),
Choice(f"{next(counter)}) Mint Base domain", mint_base_domain),
Choice(f"{next(counter)}) Spin the wheel (Onchain Summer)\n", spin_the_wheel),
Choice(f"{next(counter)}) Use custom routes", custom_routes),
Choice(f"{next(counter)}) Use automatic routes", automatic_routes),
Choice(f"{next(counter)}) Progress checker", progress_check),
Choice(f"{next(counter)}) Onchain Summer stats checker", onchain_summer_stats_check),
Choice(f"{next(counter)}) Check transaction count", "tx_checker"),
Choice(f"{next(counter)}) Exit", "exit"),
],
qmark="⚙️ ",
pointer="✅ "
).ask()
if result == "exit":
sys.exit()
return result
def get_wallets():
wallets_data = get_wallet_data()
return list(wallets_data.values())
async def run_module(module, wallet_data):
try:
await module(wallet_data)
except Exception as e:
logger.error(e)
import traceback
traceback.print_exc()
await sleep(SLEEP_FROM, SLEEP_TO, message=f"Move to the next wallet or end of script")
def _async_run_module(module, wallet_data):
asyncio.run(run_module(module, wallet_data))
def main(module):
if module == encrypt_privates:
return encrypt_privates(force=True)
if module == nfts2me_search_contracts:
return asyncio.run(nfts2me_search_contracts())
wallets_data = get_wallets()
if module == progress_check:
return progress_check(wallets_data)
if module == onchain_summer_stats_check:
return onchain_summer_stats_check(wallets_data)
if RANDOM_WALLET:
random.shuffle(wallets_data)
with ThreadPoolExecutor(max_workers=QUANTITY_THREADS) as executor:
for _, wallet_data in enumerate(wallets_data, start=1):
executor.submit(
_async_run_module,
module,
wallet_data
)
if _ != len(wallet_data):
time.sleep(random.randint(THREAD_SLEEP_FROM, THREAD_SLEEP_TO))
if __name__ == '__main__':
print(HEADER)
print("Author – https://t.me/block_nine\n")
if SAVE_LOGS:
logger.add('logs.txt', filter=filter_out_utils)
module = get_module()
if module == "tx_checker":
get_tx_count()
else:
main(module)
print("ALL DONE!")
print("Author – https://t.me/block_nine\n")