Files
proxmox/backups/configs/proxmox-configs-20260203_195622/config/production/validate-production-config.sh
defiQUG fbda1b4beb
Some checks failed
Deploy to Phoenix / deploy (push) Has been cancelled
docs: Ledger Live integration, contract deploy learnings, NEXT_STEPS updates
- ADD_CHAIN138_TO_LEDGER_LIVE: Ledger form done; public code review repo bis-innovations/LedgerLive; init/push commands
- CONTRACT_DEPLOYMENT_RUNBOOK: Chain 138 gas price 1 gwei, 36-addr check, TransactionMirror workaround
- CONTRACT_*: AddressMapper, MirrorManager deployed 2026-02-12; 36-address on-chain check
- NEXT_STEPS_FOR_YOU: Ledger done; steps completable now (no LAN); run-completable-tasks-from-anywhere
- MASTER_INDEX, OPERATOR_OPTIONAL, SMART_CONTRACTS_INVENTORY_SIMPLE: updates
- LEDGER_BLOCKCHAIN_INTEGRATION_COMPLETE: bis-innovations/LedgerLive reference

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 15:46:57 -08:00

74 lines
1.6 KiB
Bash
Executable File

#!/usr/bin/env bash
# Validate Production Configuration
set -euo pipefail
source .env.production 2>/dev/null || {
echo "Error: .env.production not found"
exit 1
}
echo "Validating Production Configuration..."
echo ""
ERRORS=0
# Check required variables
REQUIRED_VARS=(
"CHAIN138_RPC"
"ETHEREUM_MAINNET_RPC"
"LOCKBOX138_ADDRESS"
"INBOX_ETH_ADDRESS"
"BOND_MANAGER_ADDRESS"
"CHALLENGE_MANAGER_ADDRESS"
"LIQUIDITY_POOL_ADDRESS"
"MULTISIG_ADDRESS"
)
for var in "${REQUIRED_VARS[@]}"; do
if [ -z "${!var:-}" ]; then
echo "❌ Missing: $var"
ERRORS=$((ERRORS + 1))
else
echo "$var is set"
fi
done
# Validate addresses (not zero)
if [ "$LOCKBOX138_ADDRESS" = "0x0000000000000000000000000000000000000000" ]; then
echo "❌ LOCKBOX138_ADDRESS is not set"
ERRORS=$((ERRORS + 1))
fi
if [ "$MULTISIG_ADDRESS" = "0x0000000000000000000000000000000000000000" ]; then
echo "❌ MULTISIG_ADDRESS is not set"
ERRORS=$((ERRORS + 1))
fi
# Validate RPC connectivity
echo ""
echo "Testing RPC connectivity..."
if cast block-number --rpc-url "$CHAIN138_RPC" >/dev/null 2>&1; then
echo "✅ ChainID 138 RPC is accessible"
else
echo "❌ ChainID 138 RPC is not accessible"
ERRORS=$((ERRORS + 1))
fi
if cast block-number --rpc-url "$ETHEREUM_MAINNET_RPC" >/dev/null 2>&1; then
echo "✅ Ethereum Mainnet RPC is accessible"
else
echo "❌ Ethereum Mainnet RPC is not accessible"
ERRORS=$((ERRORS + 1))
fi
echo ""
if [ $ERRORS -eq 0 ]; then
echo "✅ Production configuration is valid"
exit 0
else
echo "❌ Production configuration has $ERRORS error(s)"
exit 1
fi