Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ alloy-rpc-types-engine = { version = "1.0.27", default-features = false }

# op-alloy
alloy-op-hardforks = { version = "0.4.2" }
op-alloy-consensus = { version = "0.22", default-features = false }
op-alloy-rpc-types = { version = "0.22", default-features = false }
op-alloy-rpc-types-engine = { version = "0.22", default-features = false }
op-alloy = { version = "0.22", default-features = false, features = ["consensus"] }

# revm
revm = { version = "32.0.0", default-features = false }
Expand Down
18 changes: 6 additions & 12 deletions crates/evm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ alloy-hardforks.workspace = true
alloy-op-hardforks = { workspace = true, optional = true }
alloy-rpc-types-eth = { workspace = true, optional = true }
alloy-rpc-types-engine = { workspace = true, optional = true }
op-alloy-rpc-types-engine = { workspace = true, optional = true }

revm.workspace = true
op-revm = { workspace = true, optional = true }
op-alloy-consensus = { workspace = true, optional = true }
op-alloy-rpc-types = { workspace = true, optional = true }
op-alloy = { workspace = true, optional = true }

auto_impl.workspace = true
derive_more.workspace = true
Expand All @@ -53,17 +51,13 @@ std = [
"derive_more/std",
"op-revm?/std",
"thiserror/std",
"op-alloy-consensus?/std",
"op-alloy?/std",
"alloy-rpc-types-eth?/std",
"alloy-rpc-types-engine?/std",
"op-alloy-rpc-types-engine?/std",
"op-alloy-rpc-types?/std"
"alloy-rpc-types-engine?/std"
]
op = ["op-revm", "op-alloy-consensus", "alloy-op-hardforks"]
op = ["op-revm", "op-alloy", "alloy-op-hardforks"]
overrides = ["dep:alloy-rpc-types-eth"]
call-util = ["overrides"]
engine = ["dep:alloy-rpc-types-engine"]
op-engine = ["dep:op-alloy-rpc-types-engine"]
engine = ["dep:alloy-rpc-types-engine", "op-alloy?/rpc-types-engine"]
asm-keccak = ["alloy-primitives/asm-keccak", "revm/asm-keccak"]
rpc = ["dep:alloy-rpc-types-eth"]
op-rpc = ["rpc", "dep:op-alloy-rpc-types"]
rpc = ["dep:alloy-rpc-types-eth", "op-alloy?/rpc-types"]
4 changes: 2 additions & 2 deletions crates/evm/src/op/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ impl EvmEnv<OpSpecId> {
}
}

#[cfg(feature = "op-engine")]
#[cfg(feature = "engine")]
mod payload {
use super::*;
use op_alloy_rpc_types_engine::OpExecutionPayload;
use op_alloy::rpc_types_engine::OpExecutionPayload;

impl EvmEnv<OpSpecId> {
/// Create a new `EvmEnv` with [`OpSpecId`] from a `payload`, `chain_id`, `chain_spec` and
Expand Down
2 changes: 1 addition & 1 deletion crates/evm/src/op/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Optimism EVM implementation.

mod env;
#[cfg(feature = "op-rpc")]
#[cfg(feature = "rpc")]
mod rpc;
mod spec_id;
mod tx;
Expand Down
2 changes: 1 addition & 1 deletion crates/evm/src/op/rpc.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use alloy_primitives::Bytes;
use op_alloy_rpc_types::OpTransactionRequest;
use op_alloy::rpc_types::OpTransactionRequest;
use op_revm::OpTransaction;
use revm::context::{BlockEnv, TxEnv};

Expand Down
2 changes: 1 addition & 1 deletion crates/evm/src/op/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use crate::{FromRecoveredTx, FromTxWithEncoded};
use alloy_consensus::{Signed, TxEip1559, TxEip2930, TxEip4844, TxEip7702, TxLegacy};
use alloy_eips::{Encodable2718, Typed2718};
use alloy_primitives::{Address, Bytes};
use op_alloy_consensus::{OpTxEnvelope, TxDeposit};
use op_alloy::consensus::{OpTxEnvelope, TxDeposit};
use op_revm::{transaction::deposit::DepositTransactionParts, OpTransaction};
use revm::context::TxEnv;

Expand Down
4 changes: 2 additions & 2 deletions crates/op-evm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ alloy-consensus.workspace = true
alloy-primitives.workspace = true

alloy-op-hardforks.workspace = true
op-alloy-consensus.workspace = true
op-alloy.workspace = true

revm.workspace = true
op-revm.workspace = true
Expand All @@ -43,7 +43,7 @@ std = [
"op-revm/std",
"alloy-consensus/std",
"alloy-eips/std",
"op-alloy-consensus/std",
"op-alloy/std",
"thiserror/std"
]
asm-keccak = ["alloy-evm/asm-keccak", "alloy-primitives/asm-keccak", "revm/asm-keccak"]
4 changes: 2 additions & 2 deletions crates/op-evm/src/block/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use alloy_evm::{
use alloy_op_hardforks::{OpChainHardforks, OpHardforks};
use alloy_primitives::{Bytes, B256};
use canyon::ensure_create2_deployer;
use op_alloy_consensus::OpDepositReceipt;
use op_alloy::consensus::OpDepositReceipt;
use op_revm::{
constants::L1_BLOCK_CONTRACT, estimate_tx_compressed_size,
transaction::deposit::DEPOSIT_TRANSACTION_TYPE, L1BlockInfo, OpTransaction,
Expand Down Expand Up @@ -446,7 +446,7 @@ mod tests {
use alloy_hardforks::ForkCondition;
use alloy_op_hardforks::OpHardfork;
use alloy_primitives::{uint, Address, Signature, U256};
use op_alloy_consensus::OpTxEnvelope;
use op_alloy::consensus::OpTxEnvelope;
use op_revm::{
constants::{
BASE_FEE_SCALAR_OFFSET, ECOTONE_L1_BLOB_BASE_FEE_SLOT, ECOTONE_L1_FEE_SCALARS_SLOT,
Expand Down
2 changes: 1 addition & 1 deletion crates/op-evm/src/block/receipt_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use alloy_consensus::Eip658Value;
use alloy_evm::{eth::receipt_builder::ReceiptBuilderCtx, Evm};
use core::fmt::Debug;
use op_alloy_consensus::{OpDepositReceipt, OpReceiptEnvelope, OpTxEnvelope, OpTxType};
use op_alloy::consensus::{OpDepositReceipt, OpReceiptEnvelope, OpTxEnvelope, OpTxType};

/// Type that knows how to build a receipt based on execution result.
#[auto_impl::auto_impl(&, Arc)]
Expand Down
Loading