One-command deployment of your complete Luxbin DeFi ecosystem!
- ✅ LuxbinToken - ERC20 token with minting
- ✅ LuxbinStaking - Stake ETH → Earn LUXBIN
- ✅ LuxbinSwap - LUXBIN ↔ USDC (1:1 peg)
- ✅ LuxbinEthSwap - LUXBIN ↔ ETH liquidity
- ✅ LowMin Staking - $10 minimum staking
- ✅ UltraLowMin Staking - $1 minimum staking
# Install dependencies
npm install
# Set your private key (NEVER share this!)
export PRIVATE_KEY=your_private_key_without_0x
# Optional: Set Etherscan API key for verification
export ETHERSCAN_API_KEY=your_api_key# Deploy to Optimism Sepolia (default)
./deploy.sh
# Or deploy to a different network
NETWORK=polygonMumbai ./deploy.sh| Network | Command |
|---|---|
| Optimism Sepolia | NETWORK=optimisticSepolia ./deploy.sh |
| Polygon Mumbai | NETWORK=polygonMumbai ./deploy.sh |
| Arbitrum Goerli | NETWORK=arbitrumGoerli ./deploy.sh |
| Base Goerli | NETWORK=baseGoerli ./deploy.sh |
- 🔍 Network Check - Validates your setup
- 📝 Contract Deployment - Deploys all 6 contracts
- 🔑 Authorization - Sets up contract permissions
- 💰 Funding - Funds swap contracts with tokens/ETH
- 🔍 Verification - Attempts automatic verification
- 🧪 Testing - Runs basic functionality tests
- 💾 Save Results - Saves addresses to
deployment.json
deployment.json- All contract addresses and deployment info- Console Output - Step-by-step deployment progress
- Verified Contracts - Automatically verified on block explorers
# Stake ETH to earn LUXBIN
cast send <staking_contract> "stake()" --value 0.1ether --rpc-url <rpc_url> --private-key <key>
# Swap LUXBIN for ETH
cast send <eth_swap_contract> "swapLuxbinToEth(uint256)" 1000000000000000000000 --rpc-url <rpc_url> --private-key <key>
# Check your LUXBIN balance
cast call <token_contract> "balanceOf(address)" <your_address> --rpc-url <rpc_url>"PRIVATE_KEY not set"
export PRIVATE_KEY=your_private_key_without_0x"Contract deployment failed"
- Check your ETH balance on the target network
- Make sure the network is supported
"Verification failed"
- Manual verification may be needed
- Check your ETHERSCAN_API_KEY
After deployment, you'll have:
- Token Generation via staking
- USD Peg via swap contracts
- ETH Liquidity via swap contracts
- Multiple Staking Options for different users
- Fully Automated deployment and setup
Ready to deploy? Just run ./deploy.sh! 🚀