-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathconfig.py
161 lines (118 loc) · 5.94 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
import time
import json
import random
from tqdm import tqdm
# NOVA | ARBITRUM | OPTIMISM
CHAIN = 'ARBITRUM'
FROM_AMOUNT = 0.000001
TO_AMOUNT = 0.00001
RM_AMOUNT = random.randint(6, 9) # кол-во цифр после точки
FROM_COIN = 1
TO_COIN = 3
SLEEP_FROM = 100
SLEEP_TO = 200
RM_WALLETS = True # False
COINS = {
'ARBITRUM' : [
{'address': '0xf97f4df75117a78c1A5a0DBb814Af92458539FB4',
'symbol': 'LINK'},
{'address': '0x539bdE0d7Dbd336b79148AA742883198BBF60342',
'symbol': 'MAGIC'},
{'address': '0xfc5A1A6EB076a2C7aD06eD22C90d7E710E35ad0a',
'symbol': 'GMX'},
{'address': '0x6C2C06790b3E3E3c38e12Ee22F8183b37a13EE55',
'symbol': 'DPX'},
{'address': '0x1622bF67e6e5747b81866fE0b85178a93C7F86e3',
'symbol': 'UMAMI'},
{'address': '0x10393c20975cF177a3513071bC110f7962CD67da',
'symbol': 'JONES'},
{'address': '0x5575552988A3A80504bBaeB1311674fCFd40aD4B',
'symbol': 'SPA'},
{'address': '0x51318B7D00db7ACc4026C88c3952B66278B6A67F',
'symbol': 'PLS' },
{'address': '0x6694340fc020c5E6B96567843da2df01b2CE1eb6',
'symbol': 'STG'},
{'address': '0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8',
'symbol': 'USDC'},
{'address': '0xB5de3f06aF62D8428a8BF7b4400Ea42aD2E0bc53',
'symbol': 'BRC'},
],
'OPTIMISM' : [
{'address': '0x4200000000000000000000000000000000000042',
'symbol': 'OP'},
{'address': '0x7F5c764cBc14f9669B88837ca1490cCa17c31607',
'symbol': 'USDC'},
{'address': '0x94b008aA00579c1307B0EF2c499aD98a8ce58e58',
'symbol': 'USDT'}
],
'NOVA' : [
{'address': '0x750ba8b76187092B0D1E87E28daaf484d1b5273b',
'symbol': 'USDC'},
{'address': '0x1d05e4e72cD994cdF976181CfB0707345763564d',
'symbol': 'WBTC'},
{'address': '0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1',
'symbol': 'DAI'},
{'address': '0x6DcB98f460457fe4952e12779Ba852F82eCC62C1',
'symbol': 'BRICK'},
{'address': '0xfe60A48a0bCf4636aFEcC9642a145D2F241A7011',
'symbol': 'SUSHI'},
],
}
with open("private_keys.txt", "r") as f:
KEYS_LIST = [row.strip() for row in f]
RPCS = [
{'chain': 'ETH', 'chain_id': 1, 'rpc': 'https://rpc.ankr.com/eth', 'scan': 'https://etherscan.io/tx', 'token': 'ETH'},
{'chain': 'OPTIMISM', 'chain_id': 10, 'rpc': 'https://rpc.ankr.com/optimism', 'scan': 'https://optimistic.etherscan.io/tx', 'token': 'ETH'},
{'chain': 'BNB', 'chain_id': 56, 'rpc': 'https://bsc-dataseed.binance.org', 'scan': 'https://bscscan.com/tx', 'token': 'BNB'},
{'chain': 'MATIC', 'chain_id': 137, 'rpc': 'https://polygon-rpc.com', 'scan': 'https://polygonscan.com/tx', 'token': 'MATIC'},
{'chain': 'ARBITRUM', 'chain_id': 42161, 'rpc': 'https://arb1.arbitrum.io/rpc', 'scan': 'https://arbiscan.io/tx', 'token': 'ETH'},
{'chain': 'AVAXC', 'chain_id': 43114, 'rpc': 'https://api.avax.network/ext/bc/C/rpc', 'scan': 'https://snowtrace.io/tx', 'token': 'AVAX'},
{'chain': 'NOVA', 'chain_id': 42170, 'rpc': 'https://nova.arbitrum.io/rpc', 'scan': 'https://nova.arbiscan.io/tx', 'token': 'ETH'},
{'chain': 'FTM', 'chain_id': 250, 'rpc': 'https://rpc.ankr.com/fantom', 'scan': 'https://ftmscan.com/tx', 'token': 'FTM'},
]
text1 = '''
/$$ /$$ /$$$$$$ /$$$$$$$ /$$ /$$ /$$ /$$$$$$ /$$$$$$$
| $$ | $$ /$$__ $$| $$__ $$| $$ | $$$ /$$$ /$$__ $$| $$__ $$
| $$ | $$| $$ \ $$| $$ \ $$| $$ | $$$$ /$$$$| $$ \ $$| $$ \ $$
| $$$$$$$$| $$ | $$| $$ | $$| $$ | $$ $$/$$ $$| $$ | $$| $$ | $$
| $$__ $$| $$ | $$| $$ | $$| $$ | $$ $$$| $$| $$ | $$| $$ | $$
| $$ | $$| $$ | $$| $$ | $$| $$ | $$\ $ | $$| $$ | $$| $$ | $$
| $$ | $$| $$$$$$/| $$$$$$$/| $$$$$$$$| $$ \/ | $$| $$$$$$/| $$$$$$$/
|__/ |__/ \______/ |_______/ |________/|__/ |__/ \______/ |_______/
'''
text2 = '''
___ ___ ___ ___
/\ \ /\ \ _____ /\ \ /\ \ _____
\:\ \ /::\ \ /::\ \ |::\ \ /::\ \ /::\ \
\:\ \ /:/\:\ \ /:/\:\ \ |:|:\ \ /:/\:\ \ /:/\:\ \
___ /::\ \ /:/ \:\ \ /:/ \:\__\ ___ ___ __|:|\:\ \ /:/ \:\ \ /:/ \:\__\
/\ /:/\:\__\/:/__/ \:\__\/:/__/ \:|__|/\ \ /\__\/::::|_\:\__\/:/__/ \:\__\/:/__/ \:|__|
\:\/:/ \/__/\:\ \ /:/ /\:\ \ /:/ /\:\ \ /:/ /\:\~~\ \/__/\:\ \ /:/ /\:\ \ /:/ /
\::/__/ \:\ /:/ / \:\ /:/ / \:\ /:/ / \:\ \ \:\ /:/ / \:\ /:/ /
\:\ \ \:\/:/ / \:\/:/ / \:\/:/ / \:\ \ \:\/:/ / \:\/:/ /
\:\__\ \::/ / \::/ / \::/ / \:\__\ \::/ / \::/ /
\/__/ \/__/ \/__/ \/__/ \/__/ \/__/ \/__/
'''
texts = [text1, text2]
colors = ['cyan', 'magenta', 'blue']
RUN_TEXT = random.choice(texts)
RUN_COLOR = random.choice(colors)
def intToDecimal(qty, decimal):
return int(qty * int("".join(["1"] + ["0"]*decimal)))
def check_rpc(chain):
for elem in RPCS:
if elem['chain'] == chain:
RPC = elem['rpc']
chainId = elem['chain_id']
scan = elem['scan']
token = elem['token']
return {
'rpc': RPC, 'chain_id': chainId, 'scan': scan, 'token': token
}
def sleeping(from_sleep, to_sleep):
x = random.randint(from_sleep, to_sleep)
for i in tqdm(range(x), desc='sleep ', bar_format='{desc}: {n_fmt}/{total_fmt}'):
time.sleep(1)
def func_chunks_generators(lst, n):
for i in range(0, len(lst), n):
yield lst[i: i + n]