#!/bin/bash # Verification script for MEV Bot organization echo "=== MEV Bot Organization Verification ===" echo echo "1. Checking documentation structure..." echo "----------------------------------------" if [ -d "docs/1_getting_started" ] && [ -d "docs/2_architecture" ] && [ -d "docs/3_core_packages" ] && [ -d "docs/4_application" ] && [ -d "docs/5_development" ] && [ -d "docs/6_operations" ] && [ -d "docs/7_reference" ] && [ -d "docs/8_reports" ]; then echo "✓ Documentation directories exist" else echo "✗ Documentation directories missing" exit 1 fi # Check for key documentation files if [ -f "docs/1_getting_started/QUICK_START.md" ] && [ -f "docs/2_architecture/PROJECT_OVERVIEW.md" ] && [ -f "docs/3_core_packages/ARBITRAGE_PACKAGE.md" ]; then echo "✓ Key documentation files in place" else echo "✗ Key documentation files missing" exit 1 fi echo echo "2. Checking logs structure..." echo "-----------------------------" if [ -d "logs/app" ] && [ -d "logs/transactions" ] && [ -d "logs/events" ] && [ -d "logs/archived" ] && [ -d "logs/monitoring" ]; then echo "✓ Log directories exist" else echo "✗ Log directories missing" exit 1 fi echo echo "3. Checking scripts..." echo "----------------------" if [ -f "scripts/rotate-logs.sh" ] && [ -x "scripts/rotate-logs.sh" ]; then echo "✓ Log rotation script exists and is executable" else echo "✗ Log rotation script missing or not executable" exit 1 fi echo echo "4. Checking README updates..." echo "-----------------------------" if grep -q "1_getting_started" README.md && grep -q "Documentation Index" README.md; then echo "✓ README.md has been updated with new documentation structure" else echo "✗ README.md has not been updated correctly" exit 1 fi echo echo "=== All checks passed! ===" echo "The MEV Bot project has been successfully organized with:" echo "- Improved documentation structure" echo "- Organized log directories" echo "- Proper references and navigation" echo "- Log rotation capabilities"