#!/usr/bin/env bash
# Quick bridge status check
source /home/intlc/projects/smom-dbis-138/.env
RPC_URL="${RPC_URL_138:-http://192.168.11.250:8545}"
DEPLOYER=$(cast wallet address --private-key "$PRIVATE_KEY" 2>/dev/null)

echo "=== Bridge Status ==="
echo "WETH9 Allowance: $(cast call 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 'allowance(address,address)' $DEPLOYER 0x89dd12025bfCD38A168455A44B400e913ED33BE2 --rpc-url $RPC_URL)"
echo "WETH10 Allowance: $(cast call 0xf4BB2e28688e89fCcE3c0580D37d36A7672E8A9f 'allowance(address,address)' $DEPLOYER 0xe0E93247376aa097dB308B92e6Ba36bA015535D0 --rpc-url $RPC_URL)"
