|
1 | | -# plume-mainnet-interaction |
| 1 | +# plumeee Auto B0t - plumeee Airdrop Season 2 on mainnet |
| 2 | +An automated trading b0t designed for the plumeee network, with capabilities including token wrapping, swapping, unwrapping, and staking. The bot supports parallel execution using ProcessPoolExecutor, featuring randomized start delays to reduce RPC node load and concurrency issues. |
| 3 | + |
| 4 | +# Prerequisites |
| 5 | +- **Python 3.8 or higher** |
| 6 | +- **Stable internet connection to access plumeee RPC nodes** |
| 7 | +- **A private_key.txt file in the root directory containing your Ethereum private keys (one per line)** |
| 8 | +- **A configured .env file containing b0t parameters (sample provided below)** |
| 9 | + |
| 10 | +# Key Features |
| 11 | +- Support for multiple private key accounts `[ FREE / PRO VERSION ]` |
| 12 | +- Wrap plumee to Wplumee and vice versa `[ FREE / PRO VERSION ]` |
| 13 | +- Swap plumee <-> PUSD tokens via multicall `[ FREE / PRO VERSION ]` |
| 14 | +- Swap plumee <-> pETH, WETH, USDC, USDT and vice versa `[ PRO VERSION ]` |
| 15 | +- Swap plumee or Wplumee <-> nCREDIT, nALPHA, nELIXIR, nBASIS, nPAYFI and vice versa `[ PRO VERSION ]` |
| 16 | +- Interaction with Relay.link and Rooster-protocol.xyz `[ FREE / PRO VERSION ]` |
| 17 | +- Extended integration with Relay, RoosterProtocol, Ambient, Stargate, Izumi, and more `[ PRO VERSION ]` |
| 18 | +- Automated staking on validators selected for optimal rates `[ PRO VERSION ]` |
| 19 | +- Manual staking on specific validators `[ FREE / PRO VERSION ]` |
| 20 | +- Cross-chain bridging from Ethereum, Arbitrum, Linea, Zero, Zora, Optimism, Binance Smart Chain, and Polygon `[ PRO VERSION ]` |
| 21 | +- Bridging back to plumeee Network from ETH, Base, Linea, Optimism `[ PRO VERSION ]` |
| 22 | +- Automatic daily spin and auto-use of raffle tickets on portal.plumee.org `[ PRO VERSION ]` |
| 23 | +- Robust error handling with automatic retries `[ FREE / PRO VERSION ]` |
| 24 | +- Randomized delays between steps and staggered start times for concurrency optimization `[ FREE / PRO VERSION ]` |
| 25 | +- Detailed per-account and per-transaction logging `[ FREE / PRO VERSION ]` |
| 26 | +- Graceful shutdown support on interrupt (Ctrl+C) leveraging multiprocessing events `[ FREE / PRO VERSION ]` |
| 27 | + |
| 28 | +## Project Structure [ FREE VERSION ] |
| 29 | +```yaml |
| 30 | +├── main.py # Primary entry point to launch the b0t |
| 31 | +├── src/ |
| 32 | +│ ├── core.py # plumeeSwapB0t class and main logic |
| 33 | +│ ├── logger.py # Custom Logger module |
| 34 | +│ ├── config.py # Configuration and environment variable parsing |
| 35 | +│ ├── abi.py # Smart contract ABIs |
| 36 | +│ └── utils.py # Utility functions (e.g., random delays) |
| 37 | +├── private_key.txt # File containing one private key per line |
| 38 | +├── requirements.txt # Python dependencies |
| 39 | +└── README.md # Project documentation (this file) |
| 40 | +``` |
| 41 | + |
| 42 | +## Usage Instructions |
| 43 | +### 1. Install / clone this repository: |
| 44 | +```bash |
| 45 | +git clone https://github.com/airdropservices/plumee-mainnet-services.git |
| 46 | +cd plumee-mainnet-services |
| 47 | +``` |
| 48 | +### 2. (Optional but recommended) Create a virtual environment: |
| 49 | +```bash |
| 50 | +python -m venv venv |
| 51 | +``` |
| 52 | +Then activate the virtual environment: |
| 53 | +#### Windows: |
| 54 | +```bash |
| 55 | +venv\Scripts\activate |
| 56 | +``` |
| 57 | +#### macOS/Linux: |
| 58 | +```bash |
| 59 | +source venv/bin/activate |
| 60 | +``` |
| 61 | +### 3. Install dependencies: |
| 62 | +```bash |
| 63 | +pip install -r requirements.txt |
| 64 | +``` |
| 65 | +### 4. Prepare `private_key.txt`: |
| 66 | +Store your Ethereum private keys here: |
| 67 | +```text |
| 68 | +0x8j64fda56d6778xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| 69 | +0x8j64fda56d6778xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
| 70 | +``` |
| 71 | + |
| 72 | +### 5. Configure `.env` with your preferences: |
| 73 | +```yaml |
| 74 | +WRAP_TO_Wplume=false |
| 75 | +UNWRAP_TO_plumee=false |
| 76 | +SWAP_TO_PUSD=false |
| 77 | +SWAP_PUSD_TO_Wplume=false |
| 78 | +ENABLE_STAKING=false |
| 79 | + |
| 80 | +AMOUNT_TO_WRAP_plume=[0.05, 0.15] |
| 81 | +AMOUNT_TO_UNWRAP_Wplume=[0.01, 0.05] |
| 82 | +AMOUNT_TO_SWAP_Wplumee_PUSD=[0.005, 0.01] |
| 83 | +AMOUNT_TO_SWAP_PUSD_Wplume=[0.01, 0.05] |
| 84 | +AMOUNT_TO_STAKE_plumee=1 |
| 85 | + |
| 86 | +MIN_PUSD_EXPECTED=0.000001 |
| 87 | +MIN_Wplume_EXPECTED=0.0000000001 |
| 88 | + |
| 89 | +STAKE_VALIDATOR_ID=3 |
| 90 | +NUM_REPETITIONS=1 |
| 91 | +SLIPPAGE_TOLERANCE=0.01 |
| 92 | + |
| 93 | +MIN_START_DELAY=5 |
| 94 | +MAX_START_DELAY=15 |
| 95 | +DELAY_BETWEEN_INTERACTIONS_SEC=[5, 10] |
| 96 | +TX_TIMEOUT=300 |
| 97 | +MAX_RETRIES=3 |
| 98 | +RETRY_DELAY_SEC=5 |
| 99 | +WAIT_TIME_FOR_LOOP=100 |
| 100 | +MAX_WORKERS=4 |
| 101 | +``` |
| 102 | +#### Note: You can adjust these values to tailor the b0t behavior. |
| 103 | + |
| 104 | +### 6. Run the b0t: |
| 105 | +```bash |
| 106 | +python main.py |
| 107 | +``` |
| 108 | +The b0t will initiate each account's trading cycle with randomized start delays and operate in continuous looping cycles based on your configuration. |
| 109 | + |
| 110 | +### Graceful Shutdown |
| 111 | +The b0t supports safe interruption (Ctrl+C), terminating all threads/processes cleanly while preserving state if applicable. |
| 112 | + |
| 113 | +## Development & Maintenance |
| 114 | +> Modular codebase inside the src/ directory, |
| 115 | +> Custom Logger supports debug-level logging for detailed troubleshooting, |
| 116 | +> Extendable with PRO version features for advanced trading and bridging, |
| 117 | +
|
| 118 | +## Why Upgrade to PRO Version? |
| 119 | +Unlock the full power of plumeeSwapBot with the PRO Version and take your trading experience to the next level: |
| 120 | + |
| 121 | +- 🚀 **Advanced Trading Pairs:** Gain access to swaps involving pETH, WETH, USDC, USDT, and exclusive token pairs like nCREDIT, nALPHA, nELIXIR, nBASIS, nPAYFI — providing deeper liquidity and better opportunities. |
| 122 | + |
| 123 | +- 🔗 **Seamless Cross-Chain Bridges:** Easily bridge assets between Ethereum, Arbitrum, Linea, Zero, Zora, Optimism, Binance Smart Chain, Polygon, and more — all integrated for effortless multi-chain arbitrage and fund movement. |
| 124 | + |
| 125 | +- 🤖 **Automated Validator Optimization:** Let the bot automatically select the best staking validators based on yield and performance metrics — maximize your staking rewards hands-free. |
| 126 | + |
| 127 | +- 🎰 **Daily Automated Spin & Rewards:** Enjoy daily spinning bonus rewards and raffle tickets automation on portal.plume.org, boosting your passive income without lifting a finger! |
| 128 | + |
| 129 | +- 🔧 **Enhanced Protocol Integrations:** Tap into Relay, RoosterProtocol, Ambient, Stargate, Izumi, and other platforms to unlock advanced defi features unavailable in the free version. |
| 130 | + |
| 131 | +- ⚡ **Priority Support and Updates:** Get timely feature updates, optimizations, and priority support from the development team, ensuring you stay ahead in the fast-moving crypto space. |
| 132 | + |
| 133 | +- Upgrade today and experience the unmatched power and versatility of the `plumeeSwapB0t PRO` — your trusted companion for next-level decentralized trading and staking. |
| 134 | + |
| 135 | +# How to keep your PRO VERSION? Release Soon! |
| 136 | + |
| 137 | +## License |
| 138 | +This project is open-source and free to modify for personal use. |
| 139 | +Use responsibly on live networks. |
0 commit comments