- Archived multiple non-EVM adapters (Algorand, Hedera, Tron, TON, Cosmos, Solana) and compliance contracts (IndyVerifier) to `archive/solidity/contracts/`. - Updated documentation to reflect the historical status of archived components. - Adjusted `foundry.toml` and `README.md` for clarity on historical dependencies and configurations. - Enhanced Makefile and package.json scripts for improved contract testing and building processes. - Removed obsolete contracts (AlltraCustomBridge, CommodityCCIPBridge, ISO4217WCCIPBridge, VaultBridgeAdapter) from the main directory. - Updated implementation reports to indicate archived status for various components.
42 lines
1000 B
Bash
Executable File
42 lines
1000 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Phase 5: Initialize System
|
|
# This script initializes the bridge system configuration
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
cd "$PROJECT_ROOT"
|
|
source "$PROJECT_ROOT/scripts/load-env.sh" >/dev/null 2>&1 || true
|
|
|
|
echo "=== Phase 5: Initialize System ==="
|
|
|
|
# Check required variables
|
|
REQUIRED_VARS=(
|
|
"PRIVATE_KEY"
|
|
"ETHEREUM_MAINNET_RPC"
|
|
"ENHANCED_SWAP_ROUTER"
|
|
"BRIDGE_SWAP_COORDINATOR"
|
|
)
|
|
|
|
for var in "${REQUIRED_VARS[@]}"; do
|
|
if [ -z "${!var}" ] || [ "${!var}" == "0x..." ]; then
|
|
echo "Error: $var is not set in .env"
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
echo ""
|
|
echo "--- Initializing System Configuration ---"
|
|
|
|
forge script script/bridge/trustless/InitializeBridgeSystem.s.sol:InitializeBridgeSystem \
|
|
--rpc-url "$ETHEREUM_MAINNET_RPC" \
|
|
--broadcast \
|
|
--via-ir \
|
|
--private-key "$PRIVATE_KEY"
|
|
|
|
echo ""
|
|
echo "=== Phase 5 Complete ==="
|
|
echo "System initialized and configured"
|