diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml new file mode 100644 index 0000000..e452a68 --- /dev/null +++ b/.github/workflows/dependencies.yml @@ -0,0 +1,20 @@ +# Runs `cargo update` periodically. + +name: dependencies + +on: + schedule: + # Run weekly + - cron: "0 0 * * SUN" + workflow_dispatch: +# Needed so we can run it manually + +permissions: + contents: write + pull-requests: write + +jobs: + update: + uses: ithacaxyz/ci/.github/workflows/cargo-update-pr.yml@main + secrets: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index e3fd6e9..e1c376e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,17 +18,17 @@ exclude = [".github/", "scripts/", "test-data/"] [workspace.dependencies] alloy-chains = "0.2" -alloy-primitives = { version = "1.0", default-features = false, features = [ +alloy-primitives = { version = "1.3", default-features = false, features = [ "std", "serde", ] } -alloy-json-abi = { version = "1.0", default-features = false } -alloy-rpc-types-eth = "1.0.3" -alloy-eips = "1.0.3" -alloy-serde = "1.0.3" +alloy-json-abi = { version = "1.3", default-features = false } +alloy-rpc-types-eth = "1.0" +alloy-eips = "1.0" +alloy-serde = "1.0" reqwest = { version = "0.12", default-features = false, features = ["json"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -tokio = { version = "1.37" } +tokio = { version = "1.47" } diff --git a/crates/block-explorers/Cargo.toml b/crates/block-explorers/Cargo.toml index c72dbc4..d8bcb71 100644 --- a/crates/block-explorers/Cargo.toml +++ b/crates/block-explorers/Cargo.toml @@ -33,17 +33,17 @@ alloy-primitives = { workspace = true, default-features = false, features = [ reqwest = { workspace = true, default-features = false, features = ["json"] } serde = { workspace = true, features = ["derive"] } serde_json.workspace = true -thiserror = "1.0" -tracing = "0.1.37" +thiserror = "2.0" +tracing = "0.1.41" semver = "1.0" -foundry-compilers = { version = "0.18.0", optional = true } +foundry-compilers = { version = "0.18.2", optional = true } [dev-dependencies] -tempfile = "3.8" +tempfile = "3.20" tokio = { workspace = true, features = ["macros", "rt-multi-thread", "time"] } -serial_test = "3.0.0" -tracing-subscriber = { version = "0.3.17", features = ["env-filter", "fmt"] } +serial_test = "3.2.0" +tracing-subscriber = { version = "0.3.19", features = ["env-filter", "fmt"] } [features] default = ["rustls"] diff --git a/crates/block-explorers/src/gas.rs b/crates/block-explorers/src/gas.rs index 24f30c7..0648429 100644 --- a/crates/block-explorers/src/gas.rs +++ b/crates/block-explorers/src/gas.rs @@ -137,7 +137,7 @@ mod tests { assert_eq!(gas_oracle.message, "OK"); assert_eq!( gas_oracle.result.propose_gas_price, - parse_units("141.9", "gwei").unwrap().into() + Into::::into(parse_units("141.9", "gwei").unwrap()) ); let v = r#"{ @@ -154,7 +154,10 @@ mod tests { }"#; let gas_oracle: Response = serde_json::from_str(v).unwrap(); assert_eq!(gas_oracle.message, "OK"); - assert_eq!(gas_oracle.result.propose_gas_price, parse_units(22, "gwei").unwrap().into()); + assert_eq!( + gas_oracle.result.propose_gas_price, + Into::::into(parse_units(22, "gwei").unwrap()) + ); // remove quotes around integers let v = r#"{ @@ -171,6 +174,9 @@ mod tests { }"#; let gas_oracle: Response = serde_json::from_str(v).unwrap(); assert_eq!(gas_oracle.message, "OK"); - assert_eq!(gas_oracle.result.propose_gas_price, parse_units(22, "gwei").unwrap().into()); + assert_eq!( + gas_oracle.result.propose_gas_price, + Into::::into(parse_units(22, "gwei").unwrap()) + ); } }