Skip to content

Commit 15194e9

Browse files
onbjergDaniPopes
andauthored
refactor: move breakpoints to foundry-evm-core (#11889)
* refactor: move breakpoints to foundry-evm-core * chore: ws Co-authored-by: DaniPopes <[email protected]> --------- Co-authored-by: DaniPopes <[email protected]>
1 parent 46bf86b commit 15194e9

File tree

26 files changed

+29
-38
lines changed

26 files changed

+29
-38
lines changed

Cargo.lock

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/anvil/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ foundry-cli.workspace = true
2727
foundry-common.workspace = true
2828
foundry-config.workspace = true
2929
foundry-evm.workspace = true
30-
foundry-evm-core.workspace = true
3130
foundry-evm-networks.workspace = true
3231

3332
# alloy

crates/anvil/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ use foundry_config::Config;
3939
use foundry_evm::{
4040
backend::{BlockchainDb, BlockchainDbMeta, SharedBackend},
4141
constants::DEFAULT_CREATE2_DEPLOYER,
42+
core::AsEnvMut,
4243
utils::{apply_chain_and_block_specific_env_changes, get_blob_base_fee_update_fraction},
4344
};
44-
use foundry_evm_core::AsEnvMut;
4545
use itertools::Itertools;
4646
use op_revm::OpTransaction;
4747
use parking_lot::RwLock;

crates/anvil/src/eth/backend/env.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use alloy_evm::EvmEnv;
2-
use foundry_evm::EnvMut;
3-
use foundry_evm_core::AsEnvMut;
2+
use foundry_evm::{EnvMut, core::AsEnvMut};
43
use foundry_evm_networks::NetworkConfigs;
54
use op_revm::OpTransaction;
65
use revm::context::{BlockEnv, CfgEnv, TxEnv};

crates/anvil/src/eth/backend/executor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ use anvil_core::eth::{
3131
};
3232
use foundry_evm::{
3333
backend::DatabaseError,
34+
core::{either_evm::EitherEvm, precompiles::EC_RECOVER},
3435
traces::{CallTraceDecoder, CallTraceNode},
3536
};
36-
use foundry_evm_core::{either_evm::EitherEvm, precompiles::EC_RECOVER};
3737
use foundry_evm_networks::NetworkConfigs;
3838
use op_revm::{L1BlockInfo, OpContext, precompiles::OpPrecompiles};
3939
use revm::{

crates/anvil/src/eth/backend/mem/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ use flate2::{Compression, read::GzDecoder, write::GzEncoder};
9999
use foundry_evm::{
100100
backend::{DatabaseError, DatabaseResult, RevertStateSnapshotAction},
101101
constants::DEFAULT_CREATE2_DEPLOYER_RUNTIME_CODE,
102+
core::{either_evm::EitherEvm, precompiles::EC_RECOVER},
102103
decode::RevertDecoder,
103104
inspectors::AccessListInspector,
104105
traces::{
@@ -107,7 +108,6 @@ use foundry_evm::{
107108
},
108109
utils::{get_blob_base_fee_update_fraction, get_blob_base_fee_update_fraction_by_spec_id},
109110
};
110-
use foundry_evm_core::{either_evm::EitherEvm, precompiles::EC_RECOVER};
111111
use futures::channel::mpsc::{UnboundedSender, unbounded};
112112
use op_alloy_consensus::DEPOSIT_TX_TYPE_ID;
113113
use op_revm::{

crates/anvil/src/evm.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use alloy_evm::{
44
precompiles::{DynPrecompile, PrecompileInput, PrecompilesMap},
55
};
66

7-
use foundry_evm_core::either_evm::EitherEvm;
7+
use foundry_evm::core::either_evm::EitherEvm;
88
use op_revm::OpContext;
99
use revm::{Inspector, precompile::Precompile};
1010
use std::fmt::Debug;
@@ -41,7 +41,7 @@ mod tests {
4141
use alloy_evm::{EthEvm, Evm, EvmEnv, eth::EthEvmContext, precompiles::PrecompilesMap};
4242
use alloy_op_evm::OpEvm;
4343
use alloy_primitives::{Address, Bytes, TxKind, U256, address};
44-
use foundry_evm_core::either_evm::EitherEvm;
44+
use foundry_evm::core::either_evm::EitherEvm;
4545
use foundry_evm_networks::NetworkConfigs;
4646
use itertools::Itertools;
4747
use op_revm::{L1BlockInfo, OpContext, OpSpecId, OpTransaction, precompiles::OpPrecompiles};

crates/cast/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ foundry-common.workspace = true
2727
foundry-compilers.workspace = true
2828
foundry-config.workspace = true
2929
foundry-debugger.workspace = true
30-
foundry-evm-core.workspace = true
3130
foundry-evm.workspace = true
3231
foundry-wallets.workspace = true
3332
forge-fmt.workspace = true

crates/cast/src/cmd/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ use foundry_config::{
2424
};
2525
use foundry_evm::{
2626
Env,
27+
core::env::AsEnvMut,
2728
executors::{EvmError, TracingExecutor},
2829
opts::EvmOpts,
2930
traces::{InternalTraceMode, TraceMode, Traces},
3031
utils::configure_tx_env,
3132
};
32-
use foundry_evm_core::env::AsEnvMut;
3333

3434
use crate::utils::apply_chain_and_block_specific_env_changes;
3535

crates/cast/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ use foundry_common::{
3535
fs, get_pretty_tx_receipt_attr, shell,
3636
};
3737
use foundry_config::Chain;
38-
use foundry_evm_core::ic::decode_instructions;
38+
use foundry_evm::core::ic::decode_instructions;
3939
use futures::{FutureExt, StreamExt, future::Either};
4040
use op_alloy_consensus::OpTxEnvelope;
4141
use rayon::prelude::*;

0 commit comments

Comments
 (0)