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:
-
The
MIN_SOLIDITY_VERSIONError: I keep gettingunresolved import solar::interface::MIN_SOLIDITY_VERSIONin thefoundry-compilersorfoundry-evmcrates. It seems like a transitive dependency issue related to the "Solar" solidity analyzer that was recently introduced/modified in Foundry. -
Type Mismatches: Using newer Foundry versions causes conflicts with
ethers(v2.0.7) andrevm(v3), resulting inB160/Addresstype mismatches across the dependency tree.
My Questions:
-
Is there a known "stable" commit or tag for
foundry-evmandfoundry-compilersthat still maintains compatibility withethersv2.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
solardependency that causes theMIN_SOLIDITY_VERSIONerror? -
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.