Files
proxmox/docs/archive/root-status-reports/BRIDGE_EXECUTION_FINAL.md
defiQUG fbda1b4beb
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
docs: Ledger Live integration, contract deploy learnings, NEXT_STEPS updates
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands
- CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround
- CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check
- NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere
- MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates
- LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 15:46:57 -08:00

201 lines
4.7 KiB
Markdown

# Bridge Execution - Final Status
## Commands Ready for Manual Execution
**Date**: 2025-01-27
**Status**: ⚠️ **RPC RESPONSE TIMEOUTS - MANUAL EXECUTION RECOMMENDED**
---
## Current Situation
### ✅ All Prerequisites Met
- ✅ Wallet: `0x4A666F96fC8764181194447A7dFdb7d471b301C8`
- ✅ Balances: Sufficient (999M+ ETH, 999K+ LINK)
- ✅ Approvals: WETH9 and LINK already approved
- ✅ Bridges: Fully configured
### ⚠️ Issue: RPC Response Timeouts
**Problem**: `cast send` commands are timing out waiting for RPC responses.
**Current Nonce**: 13104
**Transactions with nonces 13113-13117**: May be pending in mempool
---
## Recommended: Execute Manually in Terminal
Due to RPC response timeouts in automated execution, **execute these commands directly in your terminal**:
### Step 1: Wrap ETH to WETH9
```bash
cd /home/intlc/projects/proxmox/smom-dbis-138
source .env
# Wrap 0.001 ETH to WETH9 with nonce 13117 (or higher if needed)
cast send 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 \
"deposit()" \
--value 1000000000000000 \
--rpc-url http://192.168.11.211:8545 \
--private-key "$PRIVATE_KEY" \
--gas-price 20000000000 \
--nonce 13117 \
--legacy
```
**Note**: If you get "Known transaction", try nonce 13118, 13119, etc.
**Wait**: 30-60 seconds, then check WETH9 balance:
```bash
cast call 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 \
"balanceOf(address)" \
0x4A666F96fC8764181194447A7dFdb7d471b301C8 \
--rpc-url http://192.168.11.211:8545
```
**Expected**: Should return `1000000000000000` (0.001 WETH9)
---
### Step 2: Bridge to Mainnet
**Only proceed if WETH9 balance >= 0.001**
```bash
# Bridge WETH9 to Mainnet with nonce 13118 (or next available)
cast send 0x89dd12025bfCD38A168455A44B400e913ED33BE2 \
"sendCrossChain(uint64,address,uint256)" \
5009297550715157269 \
0x4A666F96fC8764181194447A7dFdb7d471b301C8 \
1000000000000000 \
--rpc-url http://192.168.11.211:8545 \
--private-key "$PRIVATE_KEY" \
--gas-price 20000000000 \
--nonce 13118 \
--legacy
```
**Expected**: Transaction hash for bridge transaction
**Explorer**: `https://explorer.d-bis.org/tx/<transaction_hash>`
---
## Alternative: Check Current Nonce First
Before executing, check what nonce to use:
```bash
# Check current nonce
cast nonce 0x4A666F96fC8764181194447A7dFdb7d471b301C8 \
--rpc-url http://192.168.11.211:8545
# Use nonce that's 10+ higher to skip all pending
# For example, if nonce is 13104, use 13114 or higher
```
---
## Complete Script (Copy and Paste)
```bash
#!/bin/bash
cd /home/intlc/projects/proxmox/smom-dbis-138
source .env
WALLET="0x4A666F96fC8764181194447A7dFdb7d471b301C8"
AMOUNT_WEI="1000000000000000" # 0.001 ETH
# Check current nonce
CURRENT_NONCE=$(cast nonce "$WALLET" --rpc-url http://192.168.11.211:8545)
WRAP_NONCE=$((CURRENT_NONCE + 10))
BRIDGE_NONCE=$((WRAP_NONCE + 1))
echo "Current nonce: $CURRENT_NONCE"
echo "Using wrap nonce: $WRAP_NONCE"
echo "Using bridge nonce: $BRIDGE_NONCE"
echo ""
# Step 1: Wrap
echo "Wrapping ETH to WETH9..."
cast send 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 \
"deposit()" \
--value "$AMOUNT_WEI" \
--rpc-url http://192.168.11.211:8545 \
--private-key "$PRIVATE_KEY" \
--gas-price 20000000000 \
--nonce "$WRAP_NONCE" \
--legacy
echo "Waiting 60 seconds..."
sleep 60
# Step 2: Check WETH9 balance
WETH9_BAL=$(cast call 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 \
"balanceOf(address)" \
"$WALLET" \
--rpc-url http://192.168.11.211:8545 | cast --to-dec)
echo "WETH9 Balance: $WETH9_BAL wei"
if [ "$WETH9_BAL" -ge 1000000000000000 ]; then
echo "WETH9 balance sufficient, bridging..."
# Step 3: Bridge
cast send 0x89dd12025bfCD38A168455A44B400e913ED33BE2 \
"sendCrossChain(uint64,address,uint256)" \
5009297550715157269 \
"$WALLET" \
"$AMOUNT_WEI" \
--rpc-url http://192.168.11.211:8545 \
--private-key "$PRIVATE_KEY" \
--gas-price 20000000000 \
--nonce "$BRIDGE_NONCE" \
--legacy
echo "Bridge transaction sent!"
else
echo "WETH9 balance insufficient. Wrap transaction may still be pending."
fi
```
---
## Monitoring
### Check Transaction Status
```bash
# Replace <tx_hash> with actual transaction hash
cast tx <tx_hash> --rpc-url http://192.168.11.211:8545
# Or check on explorer
# https://explorer.d-bis.org/tx/<tx_hash>
```
### Verify Mainnet Receipt (After 1-5 minutes)
```bash
cast call 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 \
"balanceOf(address)" \
0x4A666F96fC8764181194447A7dFdb7d471b301C8 \
--rpc-url https://eth.llamarpc.com
```
---
## Summary
**Status**: Commands ready, but RPC timeouts prevent automated execution
**Solution**: Execute commands manually in your terminal
**All prerequisites met - ready to bridge once transactions are sent!**
---
**Last Updated**: 2025-01-27