Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencartavia committed Jan 3, 2025
2 parents fd1093e + ceef3f3 commit aff9b30
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 23 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.14.1](https://github.com/paradigmxyz/revm-inspectors/releases/tag/v0.14.1) - 2024-12-30

### Dependencies

- Matt/bump revm19 ([#251](https://github.com/paradigmxyz/revm-inspectors/issues/251))
- Bump boa 20 ([#247](https://github.com/paradigmxyz/revm-inspectors/issues/247))

### Miscellaneous Tasks

- Make clippy happy ([#249](https://github.com/paradigmxyz/revm-inspectors/issues/249))

## [0.13.0](https://github.com/paradigmxyz/revm-inspectors/releases/tag/v0.13.0) - 2024-12-10

### Dependencies
Expand All @@ -13,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Miscellaneous Tasks

- Release 0.13.0
- Release 0.13.0

## [0.12.1](https://github.com/paradigmxyz/revm-inspectors/releases/tag/v0.12.1) - 2024-12-04
Expand Down
18 changes: 9 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "revm-inspectors"
description = "Revm inspector implementations"
version = "0.13.0"
version = "0.14.1"
edition = "2021"
rust-version = "1.82.0"
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -30,19 +30,19 @@ clippy.lint_groups_priority = "allow"

[dependencies]
# eth
alloy-rpc-types-eth = { version = "0.8", default-features = false }
alloy-rpc-types-trace = {version = "0.8", default-features = false }
alloy-sol-types = {version = "0.8", default-features = false }
alloy-primitives = { version = "0.8", features = ["map"], default-features = false }
revm = { version = "18.0.0", default-features = false, features = ["std"] }
alloy-rpc-types-eth = "0.9"
alloy-rpc-types-trace = "0.9"
alloy-sol-types = "0.8"
alloy-primitives = { version = "0.8", features = ["map-hashbrown"] }
revm = { version = "19.0.0", default-features = false, features = ["std"] }

anstyle = { version = "1.0", optional = true }
colorchoice = { version = "1.0", optional = true }
colorchoice = "1.0"
thiserror = { version = "2.0", default-features = false }

# serde
serde = { version = "1", optional = true, features = ["derive"] }
serde_json = { version = "1.0", optional = true }
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }

# js-tracer
boa_engine = { version = "0.20", optional = true }
Expand All @@ -53,7 +53,7 @@ snapbox = { version = "0.6", features = ["term-svg"] }

[features]
default = ["std"]
std = ["anstyle", "colorchoice", "serde_json"]
std = ["alloy-primitives/std", "anstyle/std", "serde/std", "serde_json/std", "revm/std", "thiserror/std"]
no_std = []
serde = ["dep:serde", "revm/serde"]
js-tracer = ["dep:boa_engine", "dep:boa_gc"]
5 changes: 2 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@

extern crate alloc;

#[cfg(feature = "std")]
pub use colorchoice::ColorChoice;

/// An inspector implementation for an EIP2930 Accesslist
pub mod access_list;

Expand All @@ -31,3 +28,5 @@ pub mod tracing;

/// An inspector for recording internal transfers.
pub mod transfer;

pub use colorchoice::ColorChoice;
2 changes: 1 addition & 1 deletion src/tracing/builder/parity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::tracing::{
utils::load_account_code,
TracingInspectorConfig,
};
use alloc::{collections::VecDeque, vec, vec::Vec};
use alloc::{collections::VecDeque, string::ToString, vec, vec::Vec};
use alloy_primitives::{map::HashSet, Address, U256, U64};
use alloy_rpc_types_eth::TransactionInfo;
use alloy_rpc_types_trace::parity::*;
Expand Down
2 changes: 2 additions & 0 deletions src/tracing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ use types::{CallLog, CallTrace, CallTraceStep};

mod utils;

#[cfg(feature = "std")]
mod writer;
#[cfg(feature = "std")]
pub use writer::{TraceWriter, TraceWriterConfig};

#[cfg(feature = "js-tracer")]
Expand Down
4 changes: 0 additions & 4 deletions src/tracing/mux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,6 @@ pub enum Error {
#[error("expected config is missing for tracer '{0:?}'")]
MissingConfig(GethDebugBuiltInTracerType),
/// Error when deserializing the config
#[cfg(feature = "std")]
#[error("error deserializing config: {0}")]
InvalidConfig(#[from] serde_json::Error),
#[cfg(not(feature = "std"))]
#[error("error deserializing config")]
InvalidConfigNoStd,
}
7 changes: 6 additions & 1 deletion src/tracing/types.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
//! Types for representing call trace items.
use crate::tracing::{config::TraceStyle, utils, utils::convert_memory};
use alloc::{collections::VecDeque, format, string::String, vec::Vec};
use alloc::{
collections::VecDeque,
format,
string::{String, ToString},
vec::Vec,
};
pub use alloy_primitives::Log;
use alloy_primitives::{Address, Bytes, FixedBytes, LogData, U256};
use alloy_rpc_types_trace::{
Expand Down
5 changes: 4 additions & 1 deletion src/tracing/utils.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
//! Util functions for revm related ops
use alloc::{string::String, vec::Vec};
use alloc::{
string::{String, ToString},
vec::Vec,
};
use alloy_primitives::{hex, Bytes};
use alloy_sol_types::{ContractError, GenericRevertReason};
use revm::{
Expand Down
3 changes: 0 additions & 3 deletions src/tracing/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ use super::{
};
use alloc::{format, string::String, vec::Vec};
use alloy_primitives::{address, hex, map::HashMap, Address, B256, U256};
#[cfg(feature = "std")]
use anstyle::{AnsiColor, Color, Style};
#[cfg(feature = "std")]
use colorchoice::ColorChoice;
#[cfg(feature = "std")]
use std::io::{self, Write};

const CHEATCODE_ADDRESS: Address = address!("7109709ECfa91a80626fF3989D68f67F5b1DD12D");
Expand Down
5 changes: 5 additions & 0 deletions tests/it/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#![allow(missing_docs)]
#[cfg(feature = "std")]
pub mod utils;

#[cfg(feature = "std")]
mod geth;
#[cfg(feature = "js-tracer")]
mod geth_js;
#[cfg(feature = "std")]
mod parity;
#[cfg(feature = "std")]
mod transfer;
#[cfg(feature = "std")]
mod writer;
2 changes: 1 addition & 1 deletion tests/it/parity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ fn test_parity_statediff_blob_commit() {
cfg.clone(),
BlockEnv {
basefee: U256::from(100),
blob_excess_gas_and_price: Some(BlobExcessGasAndPrice::new(100)),
blob_excess_gas_and_price: Some(BlobExcessGasAndPrice::new(100, false)),
..Default::default()
},
TxEnv {
Expand Down

0 comments on commit aff9b30

Please sign in to comment.