Skip to content

Commit 6ae9ea9

Browse files
committed
Initial Commit
0 parents  commit 6ae9ea9

18 files changed

Lines changed: 888 additions & 0 deletions

.gitignore

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
.idea/
4+
*.py[cod]
5+
*$py.class
6+
7+
# C extensions
8+
*.so
9+
10+
# Distribution / packaging
11+
.Python
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.nox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
*.py,cover
51+
.hypothesis/
52+
.pytest_cache/
53+
cover/
54+
55+
# Translations
56+
*.mo
57+
*.pot
58+
59+
# Django stuff:
60+
*.log
61+
local_settings.py
62+
db.sqlite3
63+
db.sqlite3-journal
64+
65+
# Flask stuff:
66+
instance/
67+
.webassets-cache
68+
69+
# Scrapy stuff:
70+
.scrapy
71+
72+
# Sphinx documentation
73+
docs/_build/
74+
75+
# PyBuilder
76+
.pybuilder/
77+
target/
78+
79+
# Jupyter Notebook
80+
.ipynb_checkpoints
81+
82+
# IPython
83+
profile_default/
84+
ipython_config.py
85+
86+
# pyenv
87+
# For a library or package, you might want to ignore these files since the code is
88+
# intended to run in multiple environments; otherwise, check them in:
89+
# .python-version
90+
91+
# pipenv
92+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
94+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
95+
# install all needed dependencies.
96+
#Pipfile.lock
97+
98+
# poetry
99+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
100+
# This is especially recommended for binary packages to ensure reproducibility, and is more
101+
# commonly ignored for libraries.
102+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
103+
#poetry.lock
104+
105+
# pdm
106+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
107+
#pdm.lock
108+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
109+
# in version control.
110+
# https://pdm.fming.dev/#use-with-ide
111+
.pdm.toml
112+
113+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
114+
__pypackages__/
115+
116+
# Celery stuff
117+
celerybeat-schedule
118+
celerybeat.pid
119+
120+
# SageMath parsed files
121+
*.sage.py
122+
123+
# Environments
124+
.env
125+
.venv
126+
env/
127+
venv/
128+
ENV/
129+
env.bak/
130+
venv.bak/
131+
132+
# Spyder project settings
133+
.spyderproject
134+
.spyproject
135+
136+
# Rope project settings
137+
.ropeproject
138+
139+
# mkdocs documentation
140+
/site
141+
142+
# mypy
143+
.mypy_cache/
144+
.dmypy.json
145+
dmypy.json
146+
147+
# Pyre type checker
148+
.pyre/
149+
150+
# pytype static type analyzer
151+
.pytype/
152+
153+
# Cython debug symbols
154+
cython_debug/
155+
156+
# PyCharm
157+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
158+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
159+
# and can be added to the global gitignore or merged into this file. For a more nuclear
160+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
161+
#.idea/

README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Bungee MultiSender via Socket
2+
<img src="/console/images/img.png" alt="Alt text" title="Optional title">
3+
4+
## 🔗 Links
5+
6+
🔔 CHANNEL: https://t.me/JamBitPY
7+
8+
💬 CHAT: https://t.me/JamBitChat
9+
10+
💰 DONATION EVM ADDRESS: 0x08e3fdbb830ee591c0533C5E58f937D312b07198
11+
12+
## 📝 Description
13+
``` This script allows you to send stablecoins to multiple addresses from your main wallet. The main advantage is that the sending occurs through the Bungee Socket contract, so the transaction fee will be minimal and it is impossible to find out the original address of the sender. ```
14+
15+
Supported sub-accounts format:
16+
17+
```You will be able to drop TXT with accounts while working with the console```
18+
- address (static amount)
19+
- address, amount (dynamic amount)
20+
21+
Supported networks:
22+
- Binance Smart Chain
23+
- Ethereum
24+
- Polygon
25+
- Avalanche
26+
- Arbitrium
27+
- Optimism
28+
- Base
29+
- ZkSync Era
30+
31+
32+
## 📦 Installation
33+
```bash
34+
git clone this repository and open CMD in the folder
35+
install the required packages: pip install -r requirements.txt
36+
start the script: python run.py
37+
```
38+
39+
40+
## ⚙️ Config (config > settings.yaml)
41+
42+
```It is highly recommended to use your own RPCs via https://www.ankr.com/```
43+
44+
| Name | Description |
45+
|---------|-------------------------------------------------------------|
46+
| eth_rpc | ETH RPC URL (if not have, leave the default value) |
47+
| op_rpc | OPTIMISM RPC URL (if not have, leave the default value) |
48+
| bsc_rpc | Binance Smart RPC URL(if not have, leave the default value) |
49+
| polygon_rpc | POLYGON RPC URL (if not have, leave the default value) |
50+
| zk_era_rpc | ZKSYNC ERA RPC URL(if not have, leave the default value) |
51+
| avax_rpc | AVALANCHE RPC URL (if not have, leave the default value) |
52+
| base_rpc | BASE RPC URL (if not have, leave the default value) |
53+
54+
55+
## 📄 Results
56+
```After the script is completed, you will be able to see txt files with success/failed wallets in the <<results>> folder```

abi/socket.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"destinationReceiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"destinationChainId","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Donation","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"GrantSender","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"RevokeSender","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"srcChainTxHash","type":"bytes32"}],"name":"Send","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawal","type":"event"},{"inputs":[{"components":[{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"bool","name":"isEnabled","type":"bool"}],"internalType":"struct GasMovr.ChainData[]","name":"_routes","type":"tuple[]"}],"name":"addRoutes","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable[]","name":"receivers","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"bytes32[]","name":"srcChainTxHashes","type":"bytes32[]"},{"internalType":"uint256","name":"perUserGasAmount","type":"uint256"},{"internalType":"uint256","name":"maxLimit","type":"uint256"}],"name":"batchSendNativeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"chainConfig","outputs":[{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"bool","name":"isEnabled","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"destinationChainId","type":"uint256"},{"internalType":"address","name":"_to","type":"address"}],"name":"depositNativeToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"chainId","type":"uint256"}],"name":"getChainData","outputs":[{"components":[{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"bool","name":"isEnabled","type":"bool"}],"internalType":"struct GasMovr.ChainData","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"grantSenderRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"processedHashes","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"revokeSenderRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"receiver","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"srcChainTxHash","type":"bytes32"},{"internalType":"uint256","name":"perUserGasAmount","type":"uint256"},{"internalType":"uint256","name":"maxLimit","type":"uint256"}],"name":"sendNativeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"senders","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"bool","name":"_isEnabled","type":"bool"}],"name":"setIsEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setUnPause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdrawBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawFullBalance","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

config/load_config.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import os
2+
import yaml
3+
4+
from loguru import logger
5+
from models import Config
6+
7+
8+
def load_config() -> Config:
9+
settings_path = os.path.join(os.path.dirname(__file__), "settings.yaml")
10+
variables = (
11+
"eth_rpc",
12+
"op_rpc",
13+
"bsc_rpc",
14+
"polygon_rpc",
15+
"zk_era_rpc",
16+
"arb_rpc",
17+
"avax_rpc",
18+
"base_rpc",
19+
"max_priority_fee_per_gas",
20+
)
21+
22+
if not os.path.exists(settings_path):
23+
logger.error(
24+
f"Config file not found. Please create a config.yaml file in the config directory."
25+
)
26+
exit(1)
27+
28+
if not all(
29+
variable in yaml.safe_load(open(settings_path)) for variable in variables
30+
):
31+
logger.error(
32+
f"Config file is missing some variables. Please check the settings.yaml file in the config directory."
33+
)
34+
exit(1)
35+
36+
with open(settings_path) as file:
37+
config = yaml.safe_load(file)
38+
39+
return Config(**config)

config/settings.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
eth_rpc: https://mainnet.infura.io/v3
2+
op_rpc: https://rpc.ankr.com/optimism
3+
bsc_rpc: https://bsc-dataseed.binance.org
4+
polygon_rpc: https://polygon-rpc.com
5+
zk_era_rpc: https://mainnet.era.zksync.io
6+
arb_rpc: https://arbitrum-mainnet.infura.io
7+
avax_rpc: https://rpc.ankr.com/avalanche
8+
base_rpc: https://1rpc.io/base
9+
max_priority_fee_per_gas: 0.5

config/variables.py

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
from loader import config
2+
from models import SocketContracts
3+
4+
5+
CHAINS = [
6+
"Ethereum",
7+
"Optimism",
8+
"Arbitrium",
9+
"Binance Smart",
10+
"Polygon",
11+
"ZkSync Era",
12+
"Avalanche",
13+
"Base",
14+
]
15+
16+
RPC_URLS = {
17+
"Ethereum": config.eth_rpc,
18+
"Optimism": config.op_rpc,
19+
"Arbitrium": config.arb_rpc,
20+
"Binance Smart": config.bsc_rpc,
21+
"Polygon": config.polygon_rpc,
22+
"ZkSync Era": config.zk_era_rpc,
23+
"Avalanche": config.avax_rpc,
24+
"Base": config.base_rpc,
25+
}
26+
27+
CHAIN_IDS = {
28+
"Ethereum": 1,
29+
"Optimism": 10,
30+
"Arbitrium": 42161,
31+
"Binance Smart": 56,
32+
"Polygon": 137,
33+
"ZkSync Era": 324,
34+
"Avalanche": 43114,
35+
"Base": 8453,
36+
}
37+
38+
39+
CHAIN_SYMBOLS = {
40+
"Ethereum": "ETH",
41+
"Optimism": "ETH",
42+
"Arbitrium": "ETH",
43+
"Binance Smart": "BNB",
44+
"Polygon": "MATIC",
45+
"ZkSync Era": "ETH",
46+
"Avalanche": "AVAX",
47+
"Base": "ETH",
48+
}
49+
50+
51+
CHAIN_CONTRACTS = {
52+
"Ethereum": SocketContracts.eth,
53+
"Optimism": SocketContracts.op,
54+
"Arbitrium": SocketContracts.arb,
55+
"Binance Smart": SocketContracts.bsc,
56+
"Polygon": SocketContracts.polygon,
57+
"ZkSync Era": SocketContracts.zk_era,
58+
"Avalanche": SocketContracts.avax,
59+
"Base": SocketContracts.base,
60+
}
61+
62+
63+
CHAINS_EXPLORERS = {
64+
"Ethereum": "https://etherscan.io/tx/",
65+
"Optimism": "https://optimistic.etherscan.io/tx/",
66+
"Arbitrium": "https://arbiscan.io/tx/",
67+
"Binance Smart": "https://bscscan.com/tx/",
68+
"Polygon": "https://polygonscan.com/tx/",
69+
"ZkSync Era": "https://explorer.zksync.io/tx/",
70+
"Avalanche": "https://snowtrace.io/tx/",
71+
"Base": "https://basescan.org/tx/",
72+
}

console/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from .main import Console

console/images/img.png

23.5 KB
Loading

console/logger.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from colorama import Fore
2+
3+
4+
def error_log(message: str):
5+
print(Fore.RED + ">> ERROR |" + Fore.LIGHTBLACK_EX + f" {message}")
6+
7+
8+
def success_log(message: str):
9+
print(Fore.GREEN + ">> SUCCESS |" + Fore.LIGHTBLACK_EX + f" {message}")
10+
11+
12+
def info_log(message: str):
13+
print(Fore.LIGHTBLACK_EX + f">> INFO | {message}")

0 commit comments

Comments
 (0)