Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
- 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>
4.3 KiB
4.3 KiB
Bridge Manual Execution Guide
Exact Commands to Execute Bridge Transfer
Date: 2025-01-27
Starting Nonce: 13115 (to skip all pending transactions)
Prerequisites
cd /home/intlc/projects/proxmox/smom-dbis-138
source .env
# Verify wallet
WALLET=$(cast wallet address --private-key "$PRIVATE_KEY")
echo "Wallet: $WALLET"
Step-by-Step Execution
Step 1: Wrap ETH to WETH9 (Nonce 13115)
# Wrap 0.001 ETH to WETH9
cast send 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 \
"deposit()" \
--value 1000000000000000 \
--rpc-url http://192.168.11.211:8545 \
--private-key "$PRIVATE_KEY" \
--gas-price 20000000000 \
--nonce 13115 \
--legacy
Expected: Transaction hash (e.g., 0x...)
Wait: 30-60 seconds, then verify:
# Check WETH9 balance
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 (Nonce 13116)
Only proceed if WETH9 balance >= 0.001
# Bridge WETH9 to Mainnet
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 13116 \
--legacy
Expected: Transaction hash for bridge transaction
Explorer: https://explorer.d-bis.org/tx/<transaction_hash>
Verification
Check Transaction Status
# Replace <tx_hash> with actual transaction hash
cast tx <tx_hash> --rpc-url http://192.168.11.211:8545
Check Nonce Progress
cast nonce 0x4A666F96fC8764181194447A7dFdb7d471b301C8 \
--rpc-url http://192.168.11.211:8545
Expected: Nonce should increase as transactions are processed
Verify Mainnet Receipt (After 1-5 minutes)
# Check WETH9 balance on Mainnet
cast call 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 \
"balanceOf(address)" \
0x4A666F96fC8764181194447A7dFdb7d471b301C8 \
--rpc-url https://eth.llamarpc.com
Expected: Should show 0.001 WETH9 after CCIP confirmation
Complete Command Sequence
#!/bin/bash
cd /home/intlc/projects/proxmox/smom-dbis-138
source .env
WALLET="0x4A666F96fC8764181194447A7dFdb7d471b301C8"
AMOUNT_WEI="1000000000000000" # 0.001 ETH
# Step 1: Wrap
echo "Wrapping ETH..."
cast send 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 \
"deposit()" \
--value "$AMOUNT_WEI" \
--rpc-url http://192.168.11.211:8545 \
--private-key "$PRIVATE_KEY" \
--gas-price 20000000000 \
--nonce 13115 \
--legacy
echo "Waiting 60 seconds..."
sleep 60
# Step 2: Verify WETH9
WETH9_BAL=$(cast call 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 \
"balanceOf(address)" \
"$WALLET" \
--rpc-url http://192.168.11.211:8545 | cast --to-dec)
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 13116 \
--legacy
else
echo "WETH9 balance insufficient: $WETH9_BAL"
fi
Troubleshooting
If Transaction Times Out
-
Check if transaction was sent:
- Look for transaction hash in output
- Check explorer:
https://explorer.d-bis.org/address/0x4A666F96fC8764181194447A7dFdb7d471b301C8
-
Try with higher gas price:
--gas-price 50000000000 # 50 gwei -
Check RPC connectivity:
cast block-number --rpc-url http://192.168.11.211:8545
If "Known transaction" Error
- Transaction with that nonce already exists
- Wait for it to process, or use next nonce (13117, 13118, etc.)
If "Execution reverted"
- Check WETH9 balance (must be >= 0.001)
- Check approvals (should already be set)
- Check LINK balance (must have LINK for fees)
Summary
Nonces to Use:
- Wrap: 13115
- Bridge: 13116
All prerequisites met - ready to execute!
Last Updated: 2025-01-27