Issue compiling MEV bot (Rusty-Sando) due to deleted Foundry branches and Solar/ethers conflicts

Hi everyone,

I'm currently working on setting up the rusty-sando MEV bot (https://github.com/mouseless0x/rusty-sando). I have already deployed the contracts, but I'm stuck at the compilation stage of the bot.

The original project relies on specific, patched versions of Foundry that are no longer available. Specifically, the Cargo.toml points to:

foundry-evm = { git = "https://github.com/mouseless-eth/foundry.git", branch = "ethers-version-change" }
anvil = { git = "https://github.com/mouseless-eth/foundry.git", branch = "ethers-version-change" }

Since the mouseless-eth/foundry repository and the ethers-version-change branch have been deleted, I've tried switching to the official foundry-rs/foundry master branch and various tags. However, this leads to significant breaking changes and compilation errors, most notably:

  1. The MIN_SOLIDITY_VERSION Error: I keep getting unresolved import solar::interface::MIN_SOLIDITY_VERSION in the foundry-compilers or foundry-evm crates. It seems like a transitive dependency issue related to the "Solar" solidity analyzer that was recently introduced/modified in Foundry.

  2. Type Mismatches: Using newer Foundry versions causes conflicts with ethers (v2.0.7) and revm (v3), resulting in B160/Address type mismatches across the dependency tree.

My Questions:

  • Is there a known "stable" commit or tag for foundry-evm and foundry-compilers that still maintains compatibility with ethers v2.0.7 without the Solar analyzer breaking changes?

  • If I must use the latest Foundry, what is the recommended way to patch or exclude the solar dependency that causes the MIN_SOLIDITY_VERSION error?

  • Alternatively, is there a modularized version of Foundry EVM (like a 'mini' version) that avoids these CLI-related dependency headaches for simulation-only purposes?

I would appreciate any guidance on which specific versions or patches I should use to get this bot compiling again.