Files
mev-beta/orig/scripts/verify-organization.sh
Administrator c54c569f30 refactor: move all remaining files to orig/ directory
Completed clean root directory structure:
- Root now contains only: .git, .env, docs/, orig/
- Moved all remaining files and directories to orig/:
  - Config files (.claude, .dockerignore, .drone.yml, etc.)
  - All .env variants (except active .env)
  - Git config (.gitconfig, .github, .gitignore, etc.)
  - Tool configs (.golangci.yml, .revive.toml, etc.)
  - Documentation (*.md files, @prompts)
  - Build files (Dockerfiles, Makefile, go.mod, go.sum)
  - Docker compose files
  - All source directories (scripts, tests, tools, etc.)
  - Runtime directories (logs, monitoring, reports)
  - Dependency files (node_modules, lib, cache)
  - Special files (--delete)

- Removed empty runtime directories (bin/, data/)

V2 structure is now clean:
- docs/planning/ - V2 planning documents
- orig/ - Complete V1 codebase preserved
- .env - Active environment config (not in git)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 10:53:05 +01:00

61 lines
2.0 KiB
Bash
Executable File

#!/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"