3.3 KiB
3.3 KiB
Dry Run: Bridge to Ethereum Mainnet Results
Date: $(date)
Script: scripts/dry-run-bridge-to-ethereum.sh
Status: ✅ Dry Run Completed
Dry Run Summary
Test Configuration
- Amount: 0.1 WETH
- Source Address:
0x4A666F96fC8764181194447A7dFdb7d471b301C8 - Destination: Ethereum Mainnet (Selector: 5009297550715157269)
- Bridge:
0x89dd12025bfCD38A168455A44B400e913ED33BE2
Verification Results
✅ Passed Checks
-
ETH Balance: ✅ Sufficient
- Available: 999,630,770 ETH
- Required: ~0.112 ETH (amount + gas)
- Status: More than sufficient
-
WETH9 Balance: ✅ Sufficient
- Available: 6 WETH
- Required: 0.1 WETH
- Status: Sufficient balance available
-
Bridge Allowance: ✅ Sufficient
- Status: Bridge can spend WETH9
⚠️ Warnings
- CCIP Fee Calculation: ⚠️ Could not calculate
- May require LINK tokens for fees
- Check bridge contract for fee requirements
❌ Failed Checks
- Destination Configuration: ❌ NOT CONFIGURED
- Issue: Ethereum Mainnet is NOT configured as destination in bridge
- Impact: Bridge transaction will fail
- Action Required: Configure Ethereum Mainnet destination bridge address
Transaction Simulation
Would Execute (if destination configured):
- Wrap ETH to WETH9: ⏭️ Skipped (sufficient balance)
- Approve Bridge: ⏭️ Skipped (already approved)
- Bridge to Ethereum Mainnet: ⏳ Would execute
- Function:
sendCrossChain(uint64,address,uint256) - Destination: Ethereum Mainnet (5009297550715157269)
- Recipient:
0x4A666F96fC8764181194447A7dFdb7d471b301C8 - Amount: 0.1 WETH
- Estimated Gas: ~300,000
- Function:
Cost Estimate
- Amount to Bridge: 0.1 WETH
- Gas Costs: ~0.002 ETH (at 5 gwei)
- CCIP Fee: Unknown (may require LINK)
- Total Cost: ~0.102 ETH (excluding CCIP fee)
Critical Issue Found
❌ Ethereum Mainnet Destination Not Configured
Problem: The bridge contract does not have Ethereum Mainnet configured as a destination.
Solution: Configure the destination bridge address:
# Need to call bridge contract to add destination
# Function: addDestination(uint64 chainSelector, address destinationBridge)
# Parameters:
# - chainSelector: 5009297550715157269 (Ethereum Mainnet)
# - destinationBridge: [Ethereum Mainnet bridge address]
Action Required:
- Get Ethereum Mainnet bridge address
- Call
addDestination()on bridge contract - Verify destination is configured
- Re-run dry run to confirm
Next Steps
- Configure Destination: Add Ethereum Mainnet to bridge destinations
- Check CCIP Fee: Verify if LINK tokens are needed
- Re-run Dry Run: Verify all checks pass
- Execute Bridge: Use
wrap-and-bridge-to-ethereum.shwhen ready
Usage
Run Dry Run
# With address
./scripts/dry-run-bridge-to-ethereum.sh 0.1 0xYourAddress
# With private key (will derive address)
./scripts/dry-run-bridge-to-ethereum.sh 0.1 0xYourPrivateKey
# With PRIVATE_KEY in .env
./scripts/dry-run-bridge-to-ethereum.sh 0.1
Execute Bridge (After Fixing Issues)
./scripts/wrap-and-bridge-to-ethereum.sh 0.1 [private_key]
Status: ⚠️ Ready except for destination configuration
Date: $(date)