rpc: rm useless alloy_rpc_types reexport (#11098)

Co-authored-by: Emilia Hane <elsaemiliaevahane@gmail.com>
This commit is contained in:
Thomas Coratger
2024-09-22 16:29:35 +02:00
committed by GitHub
parent 63dfa9a4dc
commit 159bf2cf16
70 changed files with 133 additions and 115 deletions

View File

@ -19,7 +19,6 @@ reth-provider.workspace = true
reth-rpc-eth-api.workspace = true
reth-rpc-eth-types.workspace = true
reth-rpc-server-types.workspace = true
reth-rpc-types.workspace = true
reth-tasks = { workspace = true, features = ["rayon"] }
reth-transaction-pool.workspace = true
reth-rpc.workspace = true
@ -35,6 +34,7 @@ reth-optimism-forks.workspace = true
# ethereum
alloy-primitives.workspace = true
alloy-rpc-types-eth.workspace = true
alloy-rpc-types.workspace = true
op-alloy-network.workspace = true
op-alloy-rpc-types.workspace = true
op-alloy-consensus.workspace = true

View File

@ -1,12 +1,12 @@
//! RPC errors specific to OP.
use alloy_rpc_types::error::EthRpcErrorCode;
use jsonrpsee_types::error::INTERNAL_ERROR_CODE;
use reth_evm_optimism::OptimismBlockExecutionError;
use reth_primitives::revm_primitives::{InvalidTransaction, OptimismInvalidTransaction};
use reth_rpc_eth_api::AsEthApiError;
use reth_rpc_eth_types::EthApiError;
use reth_rpc_server_types::result::{internal_rpc_err, rpc_err};
use reth_rpc_types::error::EthRpcErrorCode;
/// Optimism specific errors, that extend [`EthApiError`].
#[derive(Debug, thiserror::Error)]

View File

@ -1,5 +1,6 @@
//! Loads and formats OP block RPC response.
use alloy_rpc_types::BlockId;
use op_alloy_network::Network;
use op_alloy_rpc_types::OpTransactionReceipt;
use reth_chainspec::{ChainSpec, ChainSpecProvider};
@ -11,7 +12,6 @@ use reth_rpc_eth_api::{
RpcReceipt,
};
use reth_rpc_eth_types::EthStateCache;
use reth_rpc_types::BlockId;
use crate::{OpEthApi, OpEthApiError, OpReceiptBuilder};

View File

@ -1,5 +1,6 @@
//! Loads and formats OP receipt RPC response.
use alloy_rpc_types::{AnyReceiptEnvelope, Log, TransactionReceipt};
use op_alloy_consensus::{OpDepositReceipt, OpDepositReceiptWithBloom, OpReceiptEnvelope};
use op_alloy_rpc_types::{
receipt::L1BlockInfo, OpTransactionReceipt, OptimismTransactionReceiptFields,
@ -12,7 +13,6 @@ use reth_primitives::{Receipt, TransactionMeta, TransactionSigned, TxType};
use reth_provider::ChainSpecProvider;
use reth_rpc_eth_api::{helpers::LoadReceipt, FromEthApiError, RpcReceipt};
use reth_rpc_eth_types::{EthApiError, EthStateCache, ReceiptBuilder};
use reth_rpc_types::{AnyReceiptEnvelope, Log, TransactionReceipt};
use crate::{OpEthApi, OpEthApiError};

View File

@ -1,6 +1,7 @@
//! Loads and formats OP transaction RPC response.
use alloy_primitives::{Bytes, B256};
use alloy_rpc_types::TransactionInfo;
use op_alloy_rpc_types::Transaction;
use reth_node_api::FullNodeComponents;
use reth_primitives::TransactionSignedEcRecovered;
@ -11,7 +12,6 @@ use reth_rpc_eth_api::{
FromEthApiError, FullEthApiTypes, TransactionCompat,
};
use reth_rpc_eth_types::{utils::recover_raw_transaction, EthStateCache};
use reth_rpc_types::TransactionInfo;
use reth_transaction_pool::{PoolTransaction, TransactionOrigin, TransactionPool};
use crate::{OpEthApi, SequencerClient};