Skip to content

John0n1/ON1Builder

Repository files navigation

ON1Builder

PyPI version license python

Multi-Chain MEV Transaction Execution Framework Asynchronous engine for scanning mempools, analyzing on-chain & market data, and dispatching profitable MEV trades across any EVM chain – complete with safety-nets, RL-powered strategy selection, and an interactive terminal experience.

⚠️ Warning: This project is in alpha development phase and undergoing rapid iteration. Expect breaking changes and incomplete features.


Quick Start

The easiest way to enter ON1Builder Framework is through our interactive ignition system:

  • Clone and enter the ignition system
git clone https://github.com/john0n1/ON1Builder.git
cd ON1Builder
python ignition.py
  • Follow the prompts
  • Select "Install and set up dependencies"

Alternative (Traditional CLI)

  • If you prefer the traditional approach:
./setup_dev.sh
  • Run directly:
on1builder run --env .env --dry-run

What Makes ON1Builder:

Feature Description
Auto-Setup One-click dependency installation, virtual environment setup, and configuration
Multi-Chain MultiChainCore spawns workers per chain with shared safety & metrics
MEV Strategies Front-run, back-run, sandwich (+ flash-loan variants) with RL-powered auto-selection
Robust Safety SafetyNet with balance, gas, slippage checks + circuit-breaker alerts
Real-time Monitoring Mempool & market monitors feeding live data to RL agents
Nonce-safe Thread-safe nonce management under high concurrency
Dynamic ABIs Hot-loadable JSON ABIs with automatic validation
Full Persistence Async SQLAlchemy recording every transaction for analytics

Interactive Features

Dependency Management

The ignition system automatically:

  • Checks for required packages
  • Installs missing dependencies
  • Sets up Python virtual environments
  • Configures development environment
  • Provides fallback systems for missing packages

Menu System

Navigate through terminal menus:

  • Install and set up dependencies - One-click setup
  • Launch ON1Builder - Start the MEV engine
  • Configure Settings - Interactive configuration
  • View System Status - Health checks and diagnostics
  • Manage Configuration Files - Edit and create configs
  • View Logs - Real-time log monitoring
  • Help & Documentation - Built-in help system

Configuration

Configuration is handled through:

  • YAML files in configs/chains/
  • Environment variables in .env (for secrets)
  • Interactive setup via ignition.py

Quick Config Commands

on1builder config init > my_chain.yaml
# Validate configuration
on1builder config validate my_chain.yaml
  • Or use the interactive system
python ignition.py
# → Select "Manage Configuration Files"

Development

Requirements

  • Python ≥ 3.12
  • Poetry (optional, for advanced dependency management)
  • Git

Development Setup

poetry install --with dev
pre-commit install
pytest -q

VS Code Integration

  • Pre-configured settings in .vscode/
  • Automatic Python environment detection
  • Integrated debugging and testing

Docker & Monitoring

  • Start full stack (Grafana + Prometheus + Node)
docker compose up -d

Security & Support

  • Production keys: Always use .env files; never commit secrets
  • Bug reports: Create GitHub issues or email john@on1.no
  • Security issues: Use GPG key in SECURITY.md

Contributing

We welcome contributions!

  1. Fork the repository
  2. Use 'setup_dev.sh' to set up your development environment
  3. Create a feature branch
  4. Make your changes
  5. Run tests via ignition system
  6. Submit a pull request

License


MIT © 2025 John0n1/ON1Builder
See LICENSE for full terms