Files
smom-dbis-138/scripts/genesis/add-weth-to-genesis.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

40 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
# Add WETH9 and WETH10 to genesis.json via alloc
set -e
cd "$(dirname "$0")/../.."
# Color codes
echo "=== Adding WETH9 and WETH10 to Genesis ==="
GENESIS_FILE="config/genesis.json"
if [ ! -f "$GENESIS_FILE" ]; then
log_error "❌ Genesis file not found: $GENESIS_FILE"
exit 1
fi
# WETH9 and WETH10 addresses
WETH9_ADDR="0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
WETH10_ADDR="0xf4BB2e28688e89fCcE3c0580D37d36A7672E8A9f"
# Check if already present
if grep -q "$WETH9_ADDR" "$GENESIS_FILE" 2>/dev/null; then
log_success "✅ WETH9 already in genesis"
else
log_warn "⚠️ WETH9 not in genesis - needs to be added"
echo " Use: scripts/genesis/add-predeployed-weth-mainnet.sh"
fi
if grep -q "$WETH10_ADDR" "$GENESIS_FILE" 2>/dev/null; then
log_success "✅ WETH10 already in genesis"
else
log_warn "⚠️ WETH10 not in genesis - needs to be added"
echo " Use: scripts/genesis/add-predeployed-weth-mainnet.sh"
fi
echo "Note: WETH contracts should be predeployed via alloc in genesis.json"
echo " This ensures they exist at canonical addresses from block 0"