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>
This commit is contained in:
30
orig/scripts/setup-env.sh
Executable file
30
orig/scripts/setup-env.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Setup script for MEV Bot environment
|
||||
echo "Setting up MEV Bot environment..."
|
||||
|
||||
# Copy the fixed .env file if it exists
|
||||
if [[ -f ".env.fixed" ]]; then
|
||||
cp .env.fixed .env
|
||||
echo "✅ Copied .env.fixed to .env"
|
||||
else
|
||||
echo "⚠️ Warning: .env.fixed not found, skipping copy"
|
||||
fi
|
||||
|
||||
# Create required directories
|
||||
mkdir -p keystore backups logs
|
||||
|
||||
# Set proper permissions
|
||||
chmod 600 .env
|
||||
|
||||
echo "Environment setup complete!"
|
||||
echo ""
|
||||
echo "IMPORTANT: Please update the following variables in .env:"
|
||||
echo " - ETHEREUM_PRIVATE_KEY: Your actual private key"
|
||||
echo " - ETHEREUM_ACCOUNT_ADDRESS: Your Ethereum account address"
|
||||
echo " - CONTRACT_ARBITRAGE_EXECUTOR: Your deployed arbitrage contract address"
|
||||
echo " - CONTRACT_FLASH_SWAPPER: Your deployed flash swapper contract address"
|
||||
echo ""
|
||||
echo "You can generate a new encryption key with:"
|
||||
echo " openssl rand -base64 32"
|
||||
Reference in New Issue
Block a user