Skip to main content Module exploit Copy item path Source use clap::Parser; π use clap::ValueHint; π use eyre::Context ; π use eyre::Result ; π use eyre::eyre ; π use foundry_cli::opts::BuildOpts ; π use foundry_cli::utils::LoadConfig ; π use foundry_common::provider::mpp::transport::LazyAccountsProvider ; π use foundry_common::shell ; π use foundry_compilers::utils::source_files_iter; π use foundry_config::impl_figment_convert ; π use foundry_evm::constants::CHEATCODE_ADDRESS ; π use foundry_evm::constants::HARDHAT_CONSOLE_ADDRESS ; π use foundry_evm::constants::MONAD_CHEATCODE_ADDRESS ; π use mpp::client::Fetch; π use serde::Serialize ; π use serde::Serialize ; π use serde_json::Value ; π use serde_json::json ; π use std::fmt::Write as _; π use std::io::Write as _; π use std::path::Path ; π use std::path::PathBuf ; π use url::Url ; π use crate::cmd::properties::SELECT_ALL_TESTS ; π use crate::cmd::properties::Sandbox ; π use crate::cmd::properties::TestFile ; π use crate::cmd::properties::restrict_config ; π use crate::cmd::properties::shorten ; π use crate::cmd::properties::stderr ; π use crate::cmd::properties::suite_results ; π use crate::result::TestResult ; π use crate::result::TestStatus ; π use crate::traces::CallKind ; π use crate::traces::TraceKind ; π use crate::workspace::relative_to_root ; π Chat π ExploitArgs CLI arguments for forge exploit. Finding π A test the model wrote that passes, proving its claimed bug. Report π Run π DEFAULT_ENDPOINT π Tempo Gateway that serves OpenAI-compatible chat completions paid over MPP. DEFAULT_MODEL π Model used when none is given. MAX_SOURCE_BYTES π Longest source file sent to the model. NO_EXPLOIT π Reply that ends an attempt without a finding. SYSTEM π bug_tags π changes_state π Returns whether a test makes a successful plain call, which can change the calleeβs state,
into a contract other than the test, the cheatcodes of any network, and the console. A test
that does not, such as an empty one, one that only reads, or one whose calls all revert, passes
whatever the target does. The tests run in another process, so the networkβs own list of
cheatcode addresses is not at hand. read_source π run_test π Runs the tests of a model-written file in a fresh copy of the project. solidity_block π