Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions crates/artifacts/solc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,7 @@ pub enum EvmVersion {
#[default]
Cancun,
Prague,
Osaka,
}

impl EvmVersion {
Expand Down Expand Up @@ -900,6 +901,7 @@ impl EvmVersion {
Self::Shanghai => "shanghai",
Self::Cancun => "cancun",
Self::Prague => "prague",
Self::Osaka => "osaka",
}
}

Expand Down Expand Up @@ -969,6 +971,7 @@ impl FromStr for EvmVersion {
"shanghai" => Ok(Self::Shanghai),
"cancun" => Ok(Self::Cancun),
"prague" => Ok(Self::Prague),
"osaka" => Ok(Self::Osaka),
s => Err(format!("Unknown evm version: {s}")),
}
}
Expand Down
4 changes: 4 additions & 0 deletions crates/core/src/utils/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ pub const CANCUN_SOLC: Version = Version::new(0, 8, 24);
/// <https://soliditylang.org/blog/2024/09/04/solidity-0.8.27-release-announcement>
pub const PRAGUE_SOLC: Version = Version::new(0, 8, 27);

/// Osaka support
/// <https://soliditylang.org/blog/2025/03/12/solidity-0.8.29-release-announcement>
pub const OSAKA_SOLC: Version = Version::new(0, 8, 29);

// `--base-path` was introduced in 0.6.9 <https://github.com/ethereum/solidity/releases/tag/v0.6.9>
pub static SUPPORTS_BASE_PATH: Lazy<VersionReq> =
Lazy::new(|| VersionReq::parse(">=0.6.9").unwrap());
Expand Down