Files
proxmox/scripts/test-ccip-router.sh
defiQUG cb47cce074 Complete markdown files cleanup and organization
- Organized 252 files across project
- Root directory: 187 → 2 files (98.9% reduction)
- Moved configuration guides to docs/04-configuration/
- Moved troubleshooting guides to docs/09-troubleshooting/
- Moved quick start guides to docs/01-getting-started/
- Moved reports to reports/ directory
- Archived temporary files
- Generated comprehensive reports and documentation
- Created maintenance scripts and guides

All files organized according to established standards.
2026-01-06 01:46:25 -08:00

34 lines
907 B
Bash
Executable File

#!/usr/bin/env bash
# Test CCIP Router functionality
# Usage: ./test-ccip-router.sh
RPC_URL="${RPC_URL:-http://192.168.11.250:8545}"
CCIP_ROUTER="0x8078A09637e47Fa5Ed34F626046Ea2094a5CDE5e"
echo "Testing CCIP Router Contract"
echo "Address: $CCIP_ROUTER"
echo "RPC: $RPC_URL"
echo ""
echo "1. Checking contract bytecode..."
BYTECODE=$(cast code "$CCIP_ROUTER" --rpc-url "$RPC_URL" 2>/dev/null || echo "")
if [ -z "$BYTECODE" ] || [ "$BYTECODE" = "0x" ]; then
echo "❌ Contract has no bytecode"
exit 1
else
echo "✅ Contract has bytecode"
fi
echo ""
echo "2. Checking if contract supports standard CCIP interface..."
# Try to get type(uint64).max (chain selector for same chain)
echo "Testing router interface..."
echo ""
echo "3. Checking recent events..."
BLOCK=$(cast block-number --rpc-url "$RPC_URL" 2>/dev/null || echo "0")
echo "Current block: $BLOCK"
echo ""
echo "Test complete"