Files
smom-dbis-138/scripts/deployment/setup-monitoring-complete.sh
defiQUG 1fb7266469 Add Oracle Aggregator and CCIP Integration
- Introduced Aggregator.sol for Chainlink-compatible oracle functionality, including round-based updates and access control.
- Added OracleWithCCIP.sol to extend Aggregator with CCIP cross-chain messaging capabilities.
- Created .gitmodules to include OpenZeppelin contracts as a submodule.
- Developed a comprehensive deployment guide in NEXT_STEPS_COMPLETE_GUIDE.md for Phase 2 and smart contract deployment.
- Implemented Vite configuration for the orchestration portal, supporting both Vue and React frameworks.
- Added server-side logic for the Multi-Cloud Orchestration Portal, including API endpoints for environment management and monitoring.
- Created scripts for resource import and usage validation across non-US regions.
- Added tests for CCIP error handling and integration to ensure robust functionality.
- Included various new files and directories for the orchestration portal and deployment scripts.
2025-12-12 14:57:48 -08:00

58 lines
1.9 KiB
Bash
Executable File

#!/usr/bin/env bash
# Complete monitoring setup
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/../lib/init.sh"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
log_info "=== Complete Monitoring Setup ==="
# Load environment
if [ -f "$PROJECT_ROOT/.env" ]; then
source "$PROJECT_ROOT/.env"
fi
log_info "1. Etherscan Monitoring"
echo " Contracts to monitor:"
WETH9=$(grep "CCIPWETH9_BRIDGE_MAINNET=" "$PROJECT_ROOT/.env" 2>/dev/null | cut -d'=' -f2 | tr -d ' "' || echo "")
WETH10=$(grep "CCIPWETH10_BRIDGE_MAINNET=" "$PROJECT_ROOT/.env" 2>/dev/null | cut -d'=' -f2 | tr -d ' "' || echo "")
LOGGER=$(grep "CCIP_LOGGER_ETH_ADDRESS=" "$PROJECT_ROOT/.env" 2>/dev/null | cut -d'=' -f2 | tr -d ' "' || echo "")
if [ -n "$WETH9" ]; then
echo " • CCIPWETH9Bridge: https://etherscan.io/address/$WETH9"
fi
if [ -n "$WETH10" ]; then
echo " • CCIPWETH10Bridge: https://etherscan.io/address/$WETH10"
fi
if [ -n "$LOGGER" ]; then
echo " • CCIPLogger: https://etherscan.io/address/$LOGGER"
fi
log_info "2. Event Monitoring"
echo " Key events to monitor:"
echo " • CrossChainTransferInitiated"
echo " • CrossChainTransferCompleted"
echo " • CrossChainTransferFailed"
echo " • RemoteTxLogged (CCIPLogger)"
echo " • RemoteBatchLogged (CCIPLogger)"
log_info "3. Balance Monitoring"
echo " Create monitoring script for:"
echo " • Bridge LINK balances (CCIP fees)"
echo " • Bridge WETH balances"
echo " • Alert thresholds"
log_info "4. CCIP Message Tracking"
echo " Monitor via:"
echo " • Chainlink CCIP Explorer"
echo " • Contract events"
echo " • Message status queries"
log_success "✅ Monitoring setup guide created"
echo "Next steps:"
echo " 1. Set up Etherscan alerts"
echo " 2. Create event monitoring scripts"
echo " 3. Set up balance alerts"
echo " 4. Configure CCIP message tracking"