Automate your Union Testnet cross-chain transactions with this powerful NodeJS automation tool. Execute transactions between Holesky, Sepolia, Babylon, BSC, SEI, Corn, and Xion testnets using a convenient batch execution system.
- Features
- Prerequisites
- Installation
- Configuration
- Usage
- Project Structure
- Batch System
- Security Considerations
- License
- 🔄 Cross-Chain Automation: Automate transactions between multiple testnets
- Holesky
↔️ Sepolia - Holesky
↔️ Babylon - Holesky
↔️ Xion - Sepolia
↔️ Babylon - Sepolia
↔️ Holesky - BSC
↔️ Babylon - Corn
↔️ SEI - SEI
↔️ BSC
- Holesky
- 🔍 Transaction Tracking: Monitor transaction status and packet confirmation
- 📊 Smart Transaction Management: Random number of transactions per run
- 🛡️ Error Handling: Robust error handling and retry mechanisms with multiple RPC endpoints
- 📝 Detailed Logging: Comprehensive logging with timestamps and transaction details
- 🔀 Batch Execution: Run scripts in organized batches (Ethereum networks, other networks)
- Node.js >= 18.0.0
- Wallet with testnet tokens
- USDC, Chainlink Token, and Native Token for Gas
-
Clone the repository:
git clone https://github.com/orionnion/UnionTestnet_Automation.git cd union-auto -
Install dependencies:
npm install
-
Create a
.envfile with your wallet info:PRIVATE_KEY=0xYourPrivateKeyHere WALLET_NAME=YourWalletName
Create a .env file with your wallet info:
PRIVATE_KEY: Your wallet's private keyWALLET_NAME: Your wallet's name (for logging purposes)
Run individual scripts:
node Holesky-Sepolia.js
node Holesky-Babylon.js
node Holesky-Xion.js
node Sepolia-Holesky.js
node Sepolia-Babylon.js
node BSC-Babylon.js
node Corn-Sei.js
node SEI-BSC.jsRun scripts in batches using the index.js:
# Run Ethereum-based scripts (Holesky, Sepolia)
node index.js ethereum
# Run other blockchain scripts (BSC, SEI, Corn)
node index.js other
# Run all scripts in sequence
node index.js allOr with npm scripts:
npm run ethereum # Run Ethereum batch
npm run other # Run other blockchains batch
npm start # Run all batches├── Holesky-Babylon.js # Holesky to Babylon bridge script
├── Holesky-Sepolia.js # Holesky to Sepolia bridge script
├── Holesky-Xion.js # Holesky to Xion bridge script
├── Sepolia-Babylon.js # Sepolia to Babylon bridge script
├── Sepolia-Holesky.js # Sepolia to Holesky bridge script
├── BSC-Babylon.js # BSC to Babylon bridge script
├── Corn-Sei.js # Corn to SEI bridge script
├── SEI-BSC.js # SEI to BSC bridge script
├── index.js # Script orchestration with batch execution
├── package.json # Project dependencies
└── README.md # Project documentation
The project uses a batch system to organize and run scripts efficiently:
Scripts for Ethereum testnets (Holesky, Sepolia):
Holesky-Babylon.jsHolesky-Sepolia.jsHolesky-Xion.jsSepolia-Babylon.jsSepolia-Holesky.js
Scripts for other blockchain testnets:
BSC-Babylon.jsCorn-Sei.jsSEI-BSC.js
You can run specific batches or all batches using:
node index.js ethereum # Run Ethereum batch
node index.js other # Run other blockchains batch
node index.js all # Run all batches- Never commit
.envfiles to version control
- Keep dependencies updated
- Use checksummed addresses
- Implement proper error handling
- Follow secure coding practices
This project is licensed under the MIT License - see the LICENSE file for details.