Skip to content

Commit d25408b

Browse files
committed
feat(execution): delete base-execution-evm crate
1 parent d05b3ec commit d25408b

120 files changed

Lines changed: 2366 additions & 2744 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cargo.lock

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

Cargo.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ unreachable-pub = "warn"
9696
unused-must-use = "deny"
9797
rust-2018-idioms = "deny"
9898
unnameable-types = "warn"
99+
# base_metrics::define_metrics! uses cfg(feature = "metrics") in macro expansions
100+
# which are evaluated in the destination crate's context, not the defining crate's.
101+
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(feature, values("metrics"))'] }
99102

100103
[workspace.lints.rustdoc]
101104
all = "warn"
@@ -182,7 +185,6 @@ base-alloy-rpc-types = { path = "crates/common/rpc-types" }
182185
base-access-lists = { path = "crates/common/access-lists" }
183186
base-alloy-flashblocks = { path = "crates/common/flashblocks" }
184187
base-alloy-rpc-jsonrpsee = { path = "crates/common/rpc-jsonrpsee" }
185-
base-alloy-evm = { path = "crates/common/evm", default-features = false }
186188
base-alloy-flz = { path = "crates/common/flz", default-features = false }
187189
base-alloy-consensus = { path = "crates/common/consensus", default-features = false }
188190
base-alloy-rpc-types-engine = { path = "crates/common/rpc-types-engine", default-features = false }
@@ -220,7 +222,6 @@ base-consensus-providers = { path = "crates/consensus/providers-alloy", default-
220222
# Execution
221223
base-node-core = { path = "crates/execution/node" }
222224
base-execution-cli = { path = "crates/execution/cli" }
223-
base-execution-evm = { path = "crates/execution/evm" }
224225
base-execution-rpc = { path = "crates/execution/rpc" }
225226
base-node-runner = { path = "crates/execution/runner" }
226227
base-execution-exex = { path = "crates/execution/exex" }
@@ -234,7 +235,7 @@ base-execution-chainspec = { path = "crates/execution/chainspec" }
234235
base-execution-consensus = { path = "crates/execution/consensus" }
235236
base-execution-primitives = { path = "crates/execution/primitives" }
236237
base-execution-payload-builder = { path = "crates/execution/payload" }
237-
base-revm = { path = "crates/execution/revm", default-features = false }
238+
base-evm = { path = "crates/execution/evm", default-features = false }
238239

239240
# Txpool
240241
base-txpool = { path = "crates/txpool" }

actions/harness/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ workspace = true
1616
reth-evm = { workspace = true, features = ["std"] }
1717

1818
# revm
19-
base-revm = { workspace = true, features = ["std"] }
2019
revm.workspace = true
2120

2221
# alloy
@@ -35,6 +34,9 @@ alloy-signer.workspace = true
3534
alloy-eips.workspace = true
3635
alloy-rlp.workspace = true
3736

37+
# base-evm
38+
base-evm = { workspace = true, features = ["reth"] }
39+
3840
# base-alloy
3941
base-alloy-consensus = { workspace = true, features = ["std", "evm"] }
4042
base-alloy-rpc-types-engine.workspace = true
@@ -55,7 +57,6 @@ base-consensus-engine.workspace = true
5557
base-batcher-encoder.workspace = true
5658
base-consensus-node.workspace = true
5759
base-batcher-source.workspace = true
58-
base-execution-evm.workspace = true
5960
base-batcher-core.workspace = true
6061
base-tx-manager.workspace = true
6162
base-runtime.workspace = true

actions/harness/src/l2.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ use alloy_signer::SignerSync;
1111
use alloy_signer_local::PrivateKeySigner;
1212
use alloy_trie::{EMPTY_ROOT_HASH, TrieAccount, root::state_root_unhashed};
1313
use base_alloy_chains::BaseUpgrade;
14-
use base_alloy_consensus::{OpBlock, OpTxEnvelope};
14+
use base_alloy_consensus::{EIP1559ParamError, OpBlock, OpTxEnvelope};
1515
use base_alloy_rpc_types_engine::{OpExecutionPayload, OpNetworkPayloadEnvelope, PayloadHash};
1616
use base_consensus_genesis::{L1ChainConfig, RollupConfig, SystemConfig};
17+
use base_evm::{OpEvmConfig, OpTransaction};
1718
use base_execution_chainspec::OpChainSpecBuilder;
18-
use base_execution_evm::OpEvmConfig;
1919
use base_protocol::{BlockInfo, L1BlockInfoTx, L2BlockInfo, OpAttributesWithParent};
20-
use base_revm::OpTransaction;
2120
use reth_evm::{ConfigureEvm, Evm as _, FromRecoveredTx};
2221
use revm::{
2322
DatabaseCommit,
@@ -691,8 +690,9 @@ impl StatefulL2Executor {
691690
let sender = tx_sender(tx, TEST_ACCOUNT_ADDRESS);
692691
let op_tx: OpTransaction<TxEnv> = OpTransaction::from_recovered_tx(tx, sender);
693692

694-
let evm_env =
695-
evm_config.evm_env(&header).map_err(|e| L2SequencerError::Evm(e.to_string()))?;
693+
let evm_env = evm_config
694+
.evm_env(&header)
695+
.map_err(|e: EIP1559ParamError| L2SequencerError::Evm(e.to_string()))?;
696696
let mut evm = evm_config.evm_with_env(&mut self.db, evm_env);
697697
match evm.transact(op_tx) {
698698
Ok(ResultAndState { state, result }) => {

crates/builder/core/Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ reth-payload-util.workspace = true
4242
reth-node-builder.workspace = true
4343
reth-network-peers.workspace = true
4444
reth-tracing-otlp.workspace = true
45-
base-execution-evm.workspace = true
4645
reth-node-ethereum.workspace = true
4746
base-execution-forks.workspace = true
4847
reth-cli-commands.workspace = true
@@ -65,7 +64,7 @@ base-execution-rpc = { workspace = true, features = ["client"] }
6564

6665
# revm
6766
revm.workspace = true
68-
base-revm.workspace = true
67+
base-evm = { workspace = true, features = ["reth"] }
6968

7069
# alloy
7170
alloy-evm.workspace = true
@@ -94,7 +93,6 @@ base-alloy-network.workspace = true
9493
base-alloy-consensus.workspace = true
9594
base-alloy-rpc-types.workspace = true
9695
base-alloy-rpc-types-engine.workspace = true
97-
base-alloy-evm = { workspace = true, features = ["std"] }
9896

9997
# tokio
10098
tokio.workspace = true

crates/builder/core/src/execution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ use ExecutionMeteringLimitExceeded::{
99
};
1010
use alloy_primitives::{Address, U256};
1111
use base_alloy_consensus::OpReceipt;
12+
use base_evm::OpTransactionError;
1213
use base_execution_primitives::OpTransactionSigned;
13-
use base_revm::OpTransactionError;
1414
use derive_more::Display;
1515
use thiserror::Error;
1616

crates/builder/core/src/flashblocks/context.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ use alloy_rpc_types_eth::Withdrawals;
1212
use base_access_lists::FBALBuilderDb;
1313
use base_alloy_chains::BaseUpgrades;
1414
use base_alloy_consensus::{OpDepositReceipt, OpReceipt, OpTxType};
15-
use base_alloy_evm::OpReceiptBuilder;
15+
use base_evm::{L1BlockInfo, OpEvmConfig, OpNextBlockEnvAttributes, OpReceiptBuilder, OpSpecId};
1616
use base_execution_chainspec::OpChainSpec;
17-
use base_execution_evm::{OpEvmConfig, OpNextBlockEnvAttributes};
1817
use base_execution_payload_builder::{OpPayloadBuilderAttributes, error::OpPayloadBuilderError};
1918
use base_execution_primitives::OpTransactionSigned;
20-
use base_revm::{L1BlockInfo, OpSpecId};
2119
use base_txpool::{
2220
BundleTransaction, TimestampedTransaction, estimated_da_size::DataAvailabilitySized,
2321
};

crates/builder/core/src/flashblocks/payload.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ use base_alloy_flashblocks::{
1919
ExecutionPayloadBaseV1, ExecutionPayloadFlashblockDeltaV1, FlashblocksPayloadV1,
2020
};
2121
use base_builder_publish::WebSocketPublisher;
22+
use base_evm::{OpEvmConfig, OpNextBlockEnvAttributes};
2223
use base_execution_consensus::{calculate_receipt_root_no_memo_optimism, isthmus};
23-
use base_execution_evm::{OpEvmConfig, OpNextBlockEnvAttributes};
2424
use base_execution_payload_builder::{OpBuiltPayload, OpPayloadBuilderAttributes};
2525
use base_execution_primitives::OpTransactionSigned;
2626
use either::Either;

crates/builder/core/src/flashblocks/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::sync::Arc;
22

33
use base_builder_publish::WebSocketPublisher;
4-
use base_execution_evm::OpEvmConfig;
4+
use base_evm::OpEvmConfig;
55
use base_node_core::{
66
OpConsensusBuilder, OpExecutorBuilder, OpNetworkBuilder, node::OpPoolBuilder,
77
};

crates/client/metering/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@ reth-evm.workspace = true
2222
reth-revm.workspace = true
2323
reth-provider.workspace = true
2424
reth-trie-common.workspace = true
25-
base-execution-evm.workspace = true
2625
reth-primitives-traits.workspace = true
2726
base-execution-chainspec.workspace = true
2827

2928
# revm
3029
revm-database.workspace = true
3130

32-
# base-revm
33-
base-revm.workspace = true
31+
# base-evm
32+
base-evm = { workspace = true, features = ["reth"] }
3433

3534
# alloy
3635
alloy-primitives.workspace = true

0 commit comments

Comments
 (0)