Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): alloy 0.3.3 #498

Merged
merged 8 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
399 changes: 242 additions & 157 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ debug = true
version = "0.8.4"
edition = "2021"
license = "MIT"
rust-version = "1.75"
rust-version = "1.79"
homepage = "https://heimdall.rs"
repository = "https://github.com/Jon-Becker/heimdall-rs"
keywords = ["ethereum", "web3", "decompiler", "evm", "crypto"]
Expand Down
2 changes: 1 addition & 1 deletion crates/cfg/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ eyre = "0.6.12"
futures = "0.3.30"
lazy_static = "1.4.0"
petgraph = "0.6.2"
alloy = { version = "0.1.3", features = ["full", "rpc-types-debug", "rpc-types-trace"] }
alloy = { version = "0.3.3", features = ["full", "rpc-types-debug", "rpc-types-trace"] }

heimdall-disassembler.workspace = true
heimdall-vm.workspace = true
4 changes: 2 additions & 2 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ thiserror = "1.0.50"
tracing = "0.1.40"
tracing-subscriber = "0.3.18"
eyre = "0.6.12"
alloy-json-abi = "0.7.6"
alloy = { version = "0.1.3", features = ["full", "rpc-types-debug", "rpc-types-trace"] }
alloy-json-abi = "0.8.3"
alloy = { version = "0.3.3", features = ["full", "rpc-types-debug", "rpc-types-trace"] }
async-trait = "0.1.51"

[[bin]]
Expand Down
6 changes: 3 additions & 3 deletions crates/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ backoff = { version = "0.4.0", features = ["tokio"] }
thiserror = "1.0.50"
tracing = "0.1.40"
eyre = "0.6.12"
alloy-json-abi = "0.7.6"
alloy-json-abi = "0.8.3"
futures = "0.3.17"
alloy = { version = "0.1.3", features = ["full", "rpc-types-debug", "rpc-types-trace"] }
alloy = { version = "0.3.3", features = ["full", "rpc-types-debug", "rpc-types-trace"] }
bytes = "1.6.1"
alloy-dyn-abi = "0.7.7"
alloy-dyn-abi = "0.8.3"
tokio-retry = "0.3.0"
hashbrown = "0.14.5"
8 changes: 4 additions & 4 deletions crates/common/src/ether/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use alloy_json_abi::Param;
use serde_json::{Map, Number, Value};
use std::collections::VecDeque;

use crate::utils::{hex::ToLowerHex, strings::find_balanced_encapsulator};
use crate::utils::strings::find_balanced_encapsulator;
use eyre::Result;

#[derive(Debug, Clone, PartialEq)]
Expand Down Expand Up @@ -261,14 +261,14 @@ pub trait DynSolValueExt {
impl DynSolValueExt for DynSolValue {
fn serialize(&self) -> Value {
match self {
DynSolValue::Address(addr) => Value::String(addr.to_lower_hex()),
DynSolValue::Address(addr) => Value::String(addr.to_string()),
DynSolValue::Bool(b) => Value::Bool(*b),
DynSolValue::String(s) => Value::String(s.to_owned()),
DynSolValue::Bytes(b) => {
Value::Array(b.iter().map(|b| Value::Number(Number::from(*b))).collect())
}
DynSolValue::Uint(u, _) => Value::String(u.to_lower_hex()),
DynSolValue::Int(i, _) => Value::String(i.to_lower_hex()),
DynSolValue::Uint(u, _) => Value::String(u.to_string()),
DynSolValue::Int(i, _) => Value::String(i.to_string()),
DynSolValue::FixedBytes(b, _) => {
Value::Array(b.iter().map(|b| Value::Number(Number::from(*b))).collect())
}
Expand Down
8 changes: 4 additions & 4 deletions crates/common/src/utils/io/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub fn display(inputs: Vec<DynSolValue>, prefix: &str) -> Vec<String> {
for input in inputs {
match input {
DynSolValue::Address(val) => {
output.push(format!("{prefix}{} {}", "address".blue(), val.to_lower_hex()))
output.push(format!("{prefix}{} {}", "address".blue(), val.to_string()))
}
DynSolValue::Int(val, _) => {
output.push(format!("{prefix}{} {}", "int ".blue(), val))
Expand All @@ -28,7 +28,7 @@ pub fn display(inputs: Vec<DynSolValue>, prefix: &str) -> Vec<String> {
}
}
DynSolValue::FixedBytes(val, _) => {
output.push(format!("{prefix}{} {}", "bytes ".blue(), val.to_lower_hex()));
output.push(format!("{prefix}{} {}", "bytes ".blue(), val.to_string()));
}
DynSolValue::Bytes(val) => {
// chunk val into 32-byte chunks
Expand Down Expand Up @@ -85,14 +85,14 @@ pub trait Parameterize {
impl Parameterize for DynSolValue {
fn parameterize(&self) -> String {
match self {
DynSolValue::Address(val) => format!("address: {}", val.to_lower_hex()),
DynSolValue::Address(val) => format!("address: {}", val.to_string()),
DynSolValue::Int(val, _) => format!("int: {}", val),
DynSolValue::Uint(val, _) => format!("uint: {}", val),
DynSolValue::String(val) => format!("string: {}", val),
DynSolValue::Bool(val) => format!("bool: {}", val),
DynSolValue::Bytes(val) => format!("bytes: 0x{}", val.to_lower_hex()),
DynSolValue::FixedBytes(val, size) => {
format!("bytes{}: 0x{}", size, &val.to_lower_hex()[(64 - size * 2) + 2..])
format!("bytes{}: 0x{}", size, &val.to_string()[(64 - size * 2) + 2..])
}
DynSolValue::Array(val) => {
// get type of array
Expand Down
6 changes: 3 additions & 3 deletions crates/decode/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ derive_builder = "0.12.0"
tracing = "0.1.40"
eyre = "0.6.12"
heimdall-vm.workspace = true
alloy-dyn-abi = "0.7.7"
alloy-json-abi = "0.7.6"
alloy = { version = "0.1.3", features = ["full", "rpc-types-debug", "rpc-types-trace"] }
alloy-dyn-abi = "0.8.3"
alloy-json-abi = "0.8.3"
alloy = { version = "0.3.3", features = ["full", "rpc-types-debug", "rpc-types-trace"] }
serde_json = "1.0"
hashbrown = "0.14.5"
6 changes: 3 additions & 3 deletions crates/decompile/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ heimdall-decoder = { workspace = true }
thiserror = "1.0.50"
clap = { workspace = true, features = ["derive"] }
derive_builder = "0.12.0"
alloy-json-abi = "0.7.6"
alloy-json-abi = "0.8.3"
tracing = "0.1.40"
eyre = "0.6.12"
futures = "0.3.30"
lazy_static = "1.4.0"
fancy-regex = "0.11.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
alloy-dyn-abi = "0.7.7"
alloy = { version = "0.1.3", features = ["full", "rpc-types-debug", "rpc-types-trace"] }
alloy-dyn-abi = "0.8.3"
alloy = { version = "0.3.3", features = ["full", "rpc-types-debug", "rpc-types-trace"] }
hashbrown = "0.14.5"

heimdall-disassembler.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/dump/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ tracing = "0.1.40"
eyre = "0.6.12"
tokio = { version = "1", features = ["full"] }
futures = "0.3.30"
alloy = { version = "0.1.3", features = ["full", "rpc-types-debug", "rpc-types-trace"] }
alloy = { version = "0.3.3", features = ["full", "rpc-types-debug", "rpc-types-trace"] }
hashbrown = "0.14.5"
2 changes: 1 addition & 1 deletion crates/inspect/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ async-convert = "1.0.0"
futures = "0.3.28"
async-recursion = "1.0.5"
tokio = { version = "1", features = ["full"] }
alloy = { version = "0.1.3", features = ["full", "rpc-types-debug", "rpc-types-trace"] }
alloy = { version = "0.3.3", features = ["full", "rpc-types-debug", "rpc-types-trace"] }
serde_json = "1.0"
hashbrown = "0.14.5"
4 changes: 2 additions & 2 deletions crates/inspect/src/interfaces/traces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ impl TryFrom<CallAction> for DecodedCall {
from: value.from,
to: value.to,
value: value.value,
gas: value.gas,
gas: alloy::primitives::U64::from(value.gas),
input: value.input,
call_type: value.call_type,
resolved_function,
Expand Down Expand Up @@ -256,7 +256,7 @@ impl TryFrom<CallOutput> for DecodedCallResult {
let decoded_outputs = result.decoded.decoded_inputs.unwrap_or_default();

Ok(Self {
gas_used: value.gas_used,
gas_used: alloy::primitives::U64::from(value.gas_used),
output: value.output,
decoded_outputs_serializeable: decoded_outputs.iter().map(|v| v.serialize()).collect(),
decoded_outputs,
Expand Down
2 changes: 1 addition & 1 deletion crates/vm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ thiserror = "1.0.50"
tracing = "0.1.40"
eyre = "0.6.12"
heimdall-common.workspace = true
alloy = { version = "0.1.3", features = [
alloy = { version = "0.3.3", features = [
"full",
"rpc-types-debug",
"rpc-types-trace",
Expand Down
Loading