Files
smom-dbis-138/scripts/deployment/phase4-deploy-integration.sh
defiQUG 2b52cc6e32 refactor(archive): move historical contracts and adapters to archive directory
- 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.
2026-04-12 18:21:05 -07:00

55 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
# Phase 4: Deploy Integration Contracts
# This script deploys peg managers and reserve coordinator
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 4: Deploy Integration Contracts ==="
# Check required variables
REQUIRED_VARS=(
"PRIVATE_KEY"
"ETHEREUM_MAINNET_RPC"
"ETHERSCAN_API_KEY"
"BRIDGE_SWAP_COORDINATOR"
"RESERVE_SYSTEM"
)
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 "--- Deploying Integration Contracts ---"
forge script script/bridge/trustless/DeployIntegrationContracts.s.sol:DeployIntegrationContracts \
--rpc-url "$ETHEREUM_MAINNET_RPC" \
--broadcast \
--via-ir \
--verify \
--etherscan-api-key "$ETHERSCAN_API_KEY" \
--private-key "$PRIVATE_KEY"
echo ""
echo "⚠️ Please save all deployed addresses to .env file:"
echo " - STABLECOIN_PEG_MANAGER"
echo " - COMMODITY_PEG_MANAGER"
echo " - ISO_CURRENCY_MANAGER"
echo " - BRIDGE_RESERVE_COORDINATOR"
echo ""
echo "Extract addresses from deployment output above"
echo ""
echo "=== Phase 4 Complete ==="
echo "Integration contracts deployed"
echo "⚠️ Remember to update .env with all contract addresses"