chore: move revm inspectors to alloy rpc types (#5990)

This commit is contained in:
Matthias Seitz
2024-01-09 20:58:47 +01:00
committed by GitHub
parent c80831cdba
commit 3fdb24ebd3
8 changed files with 11 additions and 10 deletions

3
Cargo.lock generated
View File

@ -6457,10 +6457,11 @@ name = "reth-revm-inspectors"
version = "0.1.0-alpha.14"
dependencies = [
"alloy-primitives",
"alloy-rpc-trace-types",
"alloy-rpc-types",
"alloy-sol-types",
"boa_engine",
"boa_gc",
"reth-rpc-types",
"revm",
"serde",
"serde_json",

View File

@ -12,12 +12,11 @@ description = "revm inspector implementations used by reth"
workspace = true
[dependencies]
# reth
reth-rpc-types.workspace = true
# eth
alloy-sol-types.workspace = true
alloy-primitives.workspace = true
alloy-rpc-types.workspace = true
alloy-rpc-trace-types.workspace = true
revm.workspace = true

View File

@ -1,5 +1,5 @@
use alloy_primitives::{Address, B256};
use reth_rpc_types::{AccessList, AccessListItem};
use alloy_rpc_types::{AccessList, AccessListItem};
use revm::{
interpreter::{opcode, Interpreter},
Database, EVMData, Inspector,

View File

@ -6,7 +6,7 @@ use crate::tracing::{
TracingInspectorConfig,
};
use alloy_primitives::{Address, Bytes, B256, U256};
use reth_rpc_types::trace::geth::{
use alloy_rpc_trace_types::geth::{
AccountChangeKind, AccountState, CallConfig, CallFrame, DefaultFrame, DiffMode,
GethDefaultTracingOptions, PreStateConfig, PreStateFrame, PreStateMode, StructLog,
};

View File

@ -5,7 +5,8 @@ use crate::tracing::{
TracingInspectorConfig,
};
use alloy_primitives::{Address, U64};
use reth_rpc_types::{trace::parity::*, TransactionInfo};
use alloy_rpc_trace_types::parity::*;
use alloy_rpc_types::TransactionInfo;
use revm::{
db::DatabaseRef,
interpreter::{

View File

@ -1,4 +1,4 @@
use reth_rpc_types::trace::{geth::GethDefaultTracingOptions, parity::TraceType};
use alloy_rpc_trace_types::{geth::GethDefaultTracingOptions, parity::TraceType};
use std::collections::HashSet;
/// Gives guidance to the [TracingInspector](crate::tracing::TracingInspector).

View File

@ -22,7 +22,7 @@
//! See also <https://geth.ethereum.org/docs/developers/evm-tracing/built-in-tracers>
use alloy_primitives::{hex, Bytes, Selector};
use reth_rpc_types::trace::geth::FourByteFrame;
use alloy_rpc_trace_types::geth::FourByteFrame;
use revm::{
interpreter::{CallInputs, Gas, InstructionResult},
Database, EVMData, Inspector,

View File

@ -4,7 +4,7 @@ use crate::tracing::{config::TraceStyle, utils, utils::convert_memory};
pub use alloy_primitives::Log;
use alloy_primitives::{Address, Bytes, U256, U64};
use reth_rpc_types::trace::{
use alloy_rpc_trace_types::{
geth::{CallFrame, CallLogFrame, GethDefaultTracingOptions, StructLog},
parity::{
Action, ActionType, CallAction, CallOutput, CallType, CreateAction, CreateOutput,