#!/usr/bin/env bash
# Complete Operational Setup
# Runs all operational setup tasks

set -euo pipefail

SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../../../../.." && pwd)"

echo "Complete Operational Setup"
echo "========================="
echo ""

# Step 1: Schedule Audit
echo "Step 1: Security Audit Setup"
echo "----------------------------"
bash "$SCRIPT_DIR/schedule-audit.sh"
echo ""

# Step 2: Production Configuration
echo "Step 2: Production Configuration"
echo "--------------------------------"
bash "$SCRIPT_DIR/setup-production-config.sh"
echo ""

# Step 3: Multisig Deployment
echo "Step 3: Multisig Deployment Preparation"
echo "----------------------------------------"
echo "Multisig deployment scripts ready:"
echo "  - deploy-multisig.sh"
echo "  - deploy-multisig-production.sh"
echo "  - transfer-ownership.sh"
echo ""

# Step 4: Load Testing
echo "Step 4: Load Testing Setup"
echo "-------------------------"
bash "$SCRIPT_DIR/load-test.sh" 10 0.1 300
echo ""

# Step 5: Disaster Recovery
echo "Step 5: Disaster Recovery Testing Setup"
echo "---------------------------------------"
bash "$SCRIPT_DIR/disaster-recovery-test.sh"
echo ""

echo "Operational Setup Complete"
echo "=========================="
echo ""
echo "Next Steps:"
echo "1. Review all generated files"
echo "2. Fill in production configuration"
echo "3. Schedule security audit"
echo "4. Deploy multisig"
echo "5. Run load tests"
echo "6. Run disaster recovery tests"
echo ""
echo "All operational scripts are ready in: $SCRIPT_DIR"

