Skip to content

Commit eabcce4

Browse files
Wollaccapossele
authored andcommitted
WEB3-499: chore: upgrade alloy-evm (#643)
- Update all alloy crates to the latest version - Update Rust toolchain to v1.88 (Rust 1.86 is now required by alloy) - Fix warnings for updated clippy
1 parent 4180a20 commit eabcce4

File tree

45 files changed

+176
-115
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+176
-115
lines changed

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ permissions:
1717

1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
RISC0_TOOLCHAIN_VERSION: 1.85.0
20+
RISC0_TOOLCHAIN_VERSION: 1.88.0
2121
FOUNDRY_VERSION: v1.0.0
2222
RISC0_MONOREPO_REF: "release-2.3"
2323

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ permissions:
1616

1717
env:
1818
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19-
RISC0_TOOLCHAIN_VERSION: 1.85.0
19+
RISC0_TOOLCHAIN_VERSION: 1.88.0
2020
FOUNDRY_VERSION: v1.0.0
2121
RISC0_MONOREPO_REF: "release-2.3"
2222
# CARGO_LOCKED is defined as the string '--locked' in PRs targeting release branches and '' elsewhere.

.github/workflows/steel-documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ concurrency:
1717
cancel-in-progress: true
1818

1919
env:
20-
RISC0_TOOLCHAIN_VERSION: 1.85.0
21-
RISC0_MONOREPO_REF: "release-2.3"
20+
RISC0_TOOLCHAIN_VERSION: 1.88.0
21+
RISC0_MONOREPO_REF: "main"
2222

2323
jobs:
2424
build:

Cargo.toml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,15 @@ risc0-zkvm = { version = "2.3", default-features = false }
2626
# Alloy guest dependencies
2727
alloy-consensus = { version = "1.0" }
2828
alloy-eips = { version = "1.0" }
29-
alloy-evm = { version = "0.8" }
29+
alloy-evm = { version = "0.15" }
3030
alloy-rlp = { version = "0.3.8" }
31-
alloy-primitives = { version = "1.0" }
31+
alloy-primitives = { version = "1.3" }
3232
alloy-rpc-types = { version = "1.0" }
33-
alloy-sol-types = { version = "1.0" }
34-
# TODO: Update op-alloy-network to 0.18 to remove this requirement.
35-
alloy-network = { version = "<1.0.14,>=1.0.0" }
33+
alloy-sol-types = { version = "1.3" }
3634

3735
# OP Steel
38-
alloy-op-evm = { version = "0.8" }
39-
op-alloy-network = { version = "0.16" }
36+
alloy-op-evm = { version = "0.15" }
37+
op-alloy-network = { version = "0.18" }
4038

4139
# Alloy host dependencies
4240
alloy = { version = "1.0" }

contracts/src/groth16.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ mod tests {
117117

118118
fn parse_digest(file_path: &str, name: &str) -> Result<String, anyhow::Error> {
119119
let content = fs::read_to_string(file_path)?;
120-
let re_digest = Regex::new(&format!(r#"{}\s*=\s*hex"([0-9a-fA-F]+)""#, name))?;
120+
let re_digest = Regex::new(&format!(r#"{name}\s*=\s*hex"([0-9a-fA-F]+)""#))?;
121121
re_digest
122122
.captures(&content)
123123
.and_then(|caps| caps.get(1).map(|m| m.as_str().to_string()))

crates/aggregation/guest/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ fn main() {
4646
.with_elf_sol_path(SOLIDITY_ELF_PATH);
4747

4848
if let Err(e) = generate_solidity_files(guests.as_slice(), &solidity_opts) {
49-
println!("cargo:warning=Failed to generate Solidity files: {}", e);
49+
println!("cargo:warning=Failed to generate Solidity files: {e}");
5050
}
5151
}

crates/ffi/tests/basic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use risc0_zkvm::{FakeReceipt, InnerReceipt, Receipt, ReceiptClaim};
2424
fn basic_usage() {
2525
let exe_path = env!("CARGO_BIN_EXE_risc0-forge-ffi");
2626
let args = ["prove", ECHO_PATH, "0xdeadbeef"];
27-
println!("{} {:?}", exe_path, args);
27+
println!("{exe_path} {args:?}");
2828
let output = Command::new(exe_path)
2929
.env_clear()
3030
// PATH is required so r0vm can be found.
@@ -59,7 +59,7 @@ fn basic_usage() {
5959
fn basic_usage_with_rust_log() {
6060
let exe_path = env!("CARGO_BIN_EXE_risc0-forge-ffi");
6161
let args = ["prove", ECHO_PATH, "0xdeadbeef"];
62-
println!("{} {:?}", exe_path, args);
62+
println!("{exe_path} {args:?}");
6363
let output = Command::new(exe_path)
6464
.env_clear()
6565
// PATH is required so r0vm can be found.

crates/op-steel/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ rustdoc-args = ["--cfg", "docsrs"]
1414

1515
[dependencies]
1616
alloy = { workspace = true, optional = true, features = ["contract", "providers"] }
17+
alloy-eips = { workspace = true }
1718
alloy-evm = { workspace = true }
18-
# TODO: Update op-alloy-network to 0.18 to remove this requirement.
19-
alloy-network = { workspace = true }
2019
alloy-op-evm = { workspace = true }
2120
alloy-primitives = { workspace = true, features = ["rlp", "serde"] }
2221
alloy-sol-types = { workspace = true }

crates/op-steel/src/game.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ pub mod host {
185185
.await
186186
.context("eth_getBlockByNumber failed")?;
187187
let block =
188-
block_response.with_context(|| format!("block not found: {}", block_number))?;
188+
block_response.with_context(|| format!("block not found: {block_number}"))?;
189189
let header = block.header;
190190

191191
let proof = provider

crates/op-steel/src/l1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ where
8989
.await?;
9090
let timestamp = block_response.unwrap().header.timestamp;
9191

92-
log::debug!("OP timestamp of beacon commit: {}", timestamp);
92+
log::debug!("OP timestamp of beacon commit: {timestamp}");
9393

9494
Ok(EthEvmInput::Beacon(BeaconInput::new(
9595
input,

0 commit comments

Comments
 (0)