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
20 changes: 20 additions & 0 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
@@ -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 }}
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
12 changes: 6 additions & 6 deletions crates/block-explorers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
12 changes: 9 additions & 3 deletions crates/block-explorers/src/gas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<U256>::into(parse_units("141.9", "gwei").unwrap())
);

let v = r#"{
Expand All @@ -154,7 +154,10 @@ mod tests {
}"#;
let gas_oracle: Response<GasOracle> = 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::<U256>::into(parse_units(22, "gwei").unwrap())
);

// remove quotes around integers
let v = r#"{
Expand All @@ -171,6 +174,9 @@ mod tests {
}"#;
let gas_oracle: Response<GasOracle> = 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::<U256>::into(parse_units(22, "gwei").unwrap())
);
}
}