How screamonei2/conversationarchiver works
Project type and purpose
• This is a backend‐only, high‐performance, fully automated Solana blockchain arbitrage bot written in Rust.
• Its goal is to monitor multiple on-chain DEXs (Orca, Raydium, Phoenix), spot price inefficiencies (direct, triangular, cross-DEX), and execute optimized trades autonomously, with risk management (slippage, position sizing, simulation mode) and real-time monitoring (mempool, whales).
File structure
• Top‐level:
• Cargo.toml, config.toml (.env) → Rust project manifest and configuration
• src/
– config.rs: loads TOML/env variables
– console.rs: CLI or logging interface
– dex/: DEX connectors (orca.rs, raydium.rs, phoenix.rs)
– engine/: core arbitrage logic
• screener.rs: identifies opportunities
• executor.rs: builds & dispatches transactions
– monitor/: real-time watchers
• mempool.rs: WebSocket stream processing
• whales.rs: big-wallet tracking
– utils/: math (AMM formulas), rpc (rate-limited Solana RPC client)
– models.rs, types.rs: domain data structures
– main.rs: application entry, orchestrates modules
README insights
• Architecture section calls out Core Components (Screener, Executor, Monitor, RPC Client, Math Utils) and DEX integrations
• Lists advanced features (transaction simulation, compute budget optimization, confirmation tracking) hinting at sequential flow: data ingestion → screening → planning → simulation → execution → confirmation
• Blue for external systems/services (Solana RPC, Mainnet)
• Green for core modules (Monitor, Screener, Engine)
• Yellow for adapters/connectors (DEX modules)
• Gray for utilities/config
Detail
• Every module in src/ as its own component
• Interactions between Monitor, DEX connectors, Screener, and Executor
• Config flow: Config Loader → all modules