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.
This commit is contained in:
37
scripts/lib/init.sh
Executable file
37
scripts/lib/init.sh
Executable file
@@ -0,0 +1,37 @@
|
||||
#!/usr/bin/env bash
|
||||
# Initialize common libraries
|
||||
# Usage: source "$SCRIPT_DIR/lib/init.sh"
|
||||
#
|
||||
# This script loads all common libraries in the correct order.
|
||||
# Individual scripts can source this instead of sourcing each library separately.
|
||||
|
||||
# Get lib directory (this file's directory)
|
||||
LIB_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
# Get script directory if not set (try to get from calling script)
|
||||
if [ -z "${SCRIPT_DIR:-}" ]; then
|
||||
# Try to get from calling script (BASH_SOURCE[2] because init.sh adds one level)
|
||||
if [ -n "${BASH_SOURCE[2]:-}" ]; then
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[2]}")" && pwd)"
|
||||
elif [ -n "${BASH_SOURCE[1]:-}" ]; then
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[1]}")" && pwd)"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Source libraries in order
|
||||
source "${LIB_DIR}/common/paths.sh"
|
||||
source "${LIB_DIR}/common/colors.sh"
|
||||
source "${LIB_DIR}/common/logging.sh"
|
||||
source "${LIB_DIR}/common/utils.sh"
|
||||
source "${LIB_DIR}/common/env.sh"
|
||||
source "${LIB_DIR}/common/metadata.sh"
|
||||
source "${LIB_DIR}/common/validation.sh" 2>/dev/null || true
|
||||
source "${LIB_DIR}/common/retry.sh" 2>/dev/null || true
|
||||
source "${LIB_DIR}/common/error-handling.sh" 2>/dev/null || true
|
||||
source "${LIB_DIR}/config/env.sh"
|
||||
source "${LIB_DIR}/config/regions.sh"
|
||||
source "${LIB_DIR}/azure/cli.sh" 2>/dev/null || true
|
||||
|
||||
# Log that libraries are loaded (only in debug mode)
|
||||
[ "${LOG_LEVEL:-1}" -le 0 ] && log_debug "Common libraries loaded from ${LIB_DIR}"
|
||||
|
||||
Reference in New Issue
Block a user