Files
smom-dbis-138/scripts/deployment/check-mainnet-deployment-status.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

62 lines
1.8 KiB
Bash
Executable File

#!/usr/bin/env bash
# Check what contracts need Mainnet deployment and their dependencies
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$SCRIPT_DIR/../lib/init.sh"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
# Colors
log_info "=== Mainnet Deployment Status Check ==="
# Load environment variables
if [ -f "$PROJECT_ROOT/.env" ]; then
source "$PROJECT_ROOT/.env"
fi
# Check what's already deployed
log_warn "Checking deployment status..."
# Contracts that need Mainnet deployment
declare -A CONTRACTS=(
["CCIPWETH9Bridge"]="MAINNET_CCIP_WETH9_BRIDGE"
["CCIPWETH10Bridge"]="MAINNET_CCIP_WETH10_BRIDGE"
["CCIPRouter"]="MAINNET_CCIP_ROUTER"
["CCIPSender"]="MAINNET_CCIP_SENDER"
["CCIPReceiver"]="MAINNET_CCIP_RECEIVER"
["OracleAggregator"]="MAINNET_ORACLE_AGGREGATOR"
)
# Dependencies
declare -A DEPENDENCIES=(
["CCIPWETH9Bridge"]="CCIPRouter"
["CCIPWETH10Bridge"]="CCIPRouter"
["CCIPSender"]="CCIPRouter,OracleAggregator"
["CCIPReceiver"]="CCIPRouter,OracleAggregator"
)
echo "Contract Deployment Status:"
for contract in "${!CONTRACTS[@]}"; do
env_var="${CONTRACTS[$contract]}"
address="${!env_var}"
deps="${DEPENDENCIES[$contract]:-None}"
if [ -n "$address" ] && [ "$address" != "" ]; then
printf " ${GREEN}${NC} %-25s %s\n" "$contract" "$address"
else
if [ "$deps" != "None" ]; then
printf " ${RED}%s${NC} %-25s Not deployed - depends on: %s\n" "❌" "$contract" "$deps"
else
printf " ${RED}%s${NC} %-25s Not deployed\n" "❌" "$contract"
fi
fi
done
log_warn "Note: WETH9 and WETH10 already exist on Mainnet at canonical addresses"
echo " WETH9: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
echo " WETH10: 0xf4BB2e28688e89fCcE3c0580D37d36A7672E8A9f"