Skip to content

Commit

Permalink
chore: move revm-inspectors to a separate repo (paradigmxyz#5992)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Jan 9, 2024
1 parent 0efbf89 commit 19f4810
Show file tree
Hide file tree
Showing 28 changed files with 40 additions and 5,134 deletions.
39 changes: 20 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 11 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ members = [
"crates/primitives/",
"crates/prune/",
"crates/revm/",
"crates/revm/revm-inspectors/",
"crates/rpc/ipc/",
"crates/rpc/rpc/",
"crates/rpc/rpc-api/",
Expand Down Expand Up @@ -135,7 +134,6 @@ reth-primitives = { path = "crates/primitives" }
reth-provider = { path = "crates/storage/provider" }
reth-prune = { path = "crates/prune" }
reth-revm = { path = "crates/revm" }
reth-revm-inspectors = { path = "crates/revm/revm-inspectors" }
reth-rpc = { path = "crates/rpc/rpc" }
reth-rpc-api = { path = "crates/rpc/rpc-api" }
reth-rpc-api-testing-util = { path = "crates/rpc/rpc-testing-util" }
Expand All @@ -152,16 +150,24 @@ reth-transaction-pool = { path = "crates/transaction-pool" }
reth-trie = { path = "crates/trie" }

# revm
revm = { git = "https://github.com/bluealloy/revm", branch = "reth_freeze", features = ["std", "secp256k1"], default-features = false }
revm-primitives = { git = "https://github.com/bluealloy/revm", branch = "reth_freeze", features = ["std"], default-features = false }
revm = { git = "https://github.com/bluealloy/revm", branch = "reth_freeze", features = [
"std",
"secp256k1",
], default-features = false }
revm-primitives = { git = "https://github.com/bluealloy/revm", branch = "reth_freeze", features = [
"std",
], default-features = false }
revm-inspectors = { git = "https://github.com/paradigmxyz/evm-inspectors" }

# eth
alloy-primitives = "0.5"
alloy-dyn-abi = "0.5"
alloy-sol-types = "0.5"
alloy-rlp = "0.3"
alloy-rpc-types = { git = "https://github.com/alloy-rs/alloy", features = ["jsonrpsee-types"] }
alloy-rpc-trace-types = { git = "https://github.com/alloy-rs/alloy", features = ["jsonrpsee-types"] }
alloy-rpc-trace-types = { git = "https://github.com/alloy-rs/alloy", features = [
"jsonrpsee-types",
] }
ethers-core = { version = "2.0", default-features = false }
ethers-providers = { version = "2.0", default-features = false }
ethers-signers = { version = "2.0", default-features = false }
Expand Down Expand Up @@ -196,7 +202,6 @@ once_cell = "1.17"
syn = "2.0"
ahash = "0.8.6"


# proc-macros
proc-macro2 = "1.0"
quote = "1.0"
Expand Down Expand Up @@ -241,7 +246,6 @@ proptest = "1.4"
proptest-derive = "0.4"
serial_test = "2"


[workspace.metadata.cargo-udeps.ignore]
# ignored because this is mutually exclusive with the optimism payload builder via feature flags
normal = ["reth-ethereum-payload-builder"]
2 changes: 1 addition & 1 deletion bin/reth/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ reth-db = { workspace = true, features = ["mdbx", "test-utils"] }
# TODO: Temporary use of the test-utils feature
reth-provider = { workspace = true, features = ["test-utils"] }
reth-revm.workspace = true
reth-revm-inspectors.workspace = true
reth-stages.workspace = true
reth-interfaces = { workspace = true, features = ["test-utils", "clap"] }
reth-transaction-pool.workspace = true
Expand Down Expand Up @@ -60,6 +59,7 @@ reth-nippy-jar.workspace = true
# crypto
alloy-rlp.workspace = true
secp256k1 = { workspace = true, features = ["global-context", "rand-std", "recovery"] }
revm-inspectors.workspace = true

# tracing
tracing.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions bin/reth/src/builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ use reth_provider::{
};
use reth_prune::PrunerBuilder;
use reth_revm::EvmProcessorFactory;
use reth_revm_inspectors::stack::Hook;
use reth_rpc_engine_api::EngineApi;
use reth_stages::{
prelude::*,
Expand All @@ -89,6 +88,7 @@ use reth_transaction_pool::{
blobstore::InMemoryBlobStore, EthTransactionPool, TransactionPool,
TransactionValidationTaskExecutor,
};
use revm_inspectors::stack::Hook;
use secp256k1::SecretKey;
use std::{
net::{SocketAddr, SocketAddrV4},
Expand Down Expand Up @@ -862,7 +862,7 @@ impl NodeConfig {
}

let (tip_tx, tip_rx) = watch::channel(B256::ZERO);
use reth_revm_inspectors::stack::InspectorStackConfig;
use revm_inspectors::stack::InspectorStackConfig;
let factory = reth_revm::EvmProcessorFactory::new(self.chain.clone());

let stack_config = InspectorStackConfig {
Expand Down
3 changes: 2 additions & 1 deletion crates/revm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ workspace = true
reth-primitives.workspace = true
reth-interfaces.workspace = true
reth-provider.workspace = true
reth-revm-inspectors.workspace = true
reth-consensus-common.workspace = true

# revm
revm.workspace = true
revm-inspectors.workspace = true

# common
tracing.workspace = true
Expand All @@ -35,3 +35,4 @@ optimism = [
"reth-consensus-common/optimism",
"reth-interfaces/optimism",
]
js-tracer = ["revm-inspectors/js-tracer"]
35 changes: 0 additions & 35 deletions crates/revm/revm-inspectors/Cargo.toml

This file was deleted.

99 changes: 0 additions & 99 deletions crates/revm/revm-inspectors/src/access_list.rs

This file was deleted.

24 changes: 0 additions & 24 deletions crates/revm/revm-inspectors/src/lib.rs

This file was deleted.

Loading

0 comments on commit 19f4810

Please sign in to comment.