rpc: rm useless alloy-rpc-types-mev reexport (#11093)

This commit is contained in:
Thomas Coratger
2024-09-22 13:59:45 +02:00
committed by GitHub
parent b4ad28dfb4
commit fdcfe6ef29
9 changed files with 11 additions and 10 deletions

4
Cargo.lock generated
View File

@@ -8381,6 +8381,7 @@ dependencies = [
"alloy-primitives",
"alloy-rlp",
"alloy-rpc-types-eth",
"alloy-rpc-types-mev",
"alloy-rpc-types-txpool",
"async-trait",
"derive_more",
@@ -8439,6 +8440,7 @@ dependencies = [
"alloy-json-rpc",
"alloy-primitives",
"alloy-rpc-types-eth",
"alloy-rpc-types-mev",
"alloy-rpc-types-txpool",
"jsonrpsee",
"reth-engine-primitives",
@@ -8561,6 +8563,7 @@ dependencies = [
"alloy-network",
"alloy-primitives",
"alloy-rpc-types-eth",
"alloy-rpc-types-mev",
"async-trait",
"auto_impl",
"dyn-clone",
@@ -8673,7 +8676,6 @@ dependencies = [
"alloy-rpc-types-beacon",
"alloy-rpc-types-debug",
"alloy-rpc-types-engine",
"alloy-rpc-types-mev",
"alloy-rpc-types-trace",
"alloy-serde",
"arbitrary",

View File

@@ -24,6 +24,7 @@ alloy-eips.workspace = true
alloy-json-rpc.workspace = true
alloy-primitives.workspace = true
alloy-rpc-types-eth.workspace = true
alloy-rpc-types-mev.workspace = true
alloy-rpc-types-txpool.workspace = true
# misc

View File

@@ -1,7 +1,7 @@
use jsonrpsee::proc_macros::rpc;
use reth_rpc_types::mev::{
use alloy_rpc_types_mev::{
SendBundleRequest, SendBundleResponse, SimBundleOverrides, SimBundleResponse,
};
use jsonrpsee::proc_macros::rpc;
/// Mev rpc interface.
#[cfg_attr(not(feature = "client"), rpc(server, namespace = "mev"))]

View File

@@ -38,6 +38,7 @@ alloy-json-rpc.workspace = true
alloy-network.workspace = true
alloy-primitives.workspace = true
alloy-rpc-types-eth.workspace = true
alloy-rpc-types-mev.workspace = true
# rpc
jsonrpsee = { workspace = true, features = ["server", "macros"] }

View File

@@ -3,11 +3,11 @@
//! See also <https://docs.flashbots.net/flashbots-auction/searchers/advanced/rpc-endpoint>
use alloy_primitives::{Bytes, B256};
use jsonrpsee::proc_macros::rpc;
use reth_rpc_types::mev::{
use alloy_rpc_types_mev::{
CancelBundleRequest, CancelPrivateTransactionRequest, EthBundleHash, EthCallBundle,
EthCallBundleResponse, EthSendBundle, PrivateTransactionRequest,
};
use jsonrpsee::proc_macros::rpc;
/// A subset of the [EthBundleApi] API interface that only supports `eth_callBundle`.
#[cfg_attr(not(feature = "client"), rpc(server, namespace = "eth"))]

View File

@@ -19,7 +19,6 @@ alloy-rpc-types.workspace = true
alloy-rpc-types-admin.workspace = true
alloy-rpc-types-anvil.workspace = true
alloy-rpc-types-beacon = { workspace = true, optional = true }
alloy-rpc-types-mev.workspace = true
alloy-rpc-types-trace.workspace = true
alloy-rpc-types-debug.workspace = true
alloy-serde.workspace = true

View File

@@ -36,9 +36,6 @@ pub use alloy_rpc_types_admin as admin;
// Anvil specific rpc types coming from alloy.
pub use alloy_rpc_types_anvil as anvil;
// re-export mev
pub use alloy_rpc_types_mev as mev;
// re-export beacon
#[cfg(feature = "jsonrpsee-types")]
pub use alloy_rpc_types_beacon as beacon;

View File

@@ -43,6 +43,7 @@ alloy-network.workspace = true
alloy-primitives.workspace = true
alloy-rlp.workspace = true
alloy-rpc-types-eth.workspace = true
alloy-rpc-types-mev.workspace = true
alloy-rpc-types-txpool.workspace = true
revm = { workspace = true, features = [
"optional_block_gas_limit",

View File

@@ -3,6 +3,7 @@
use std::sync::Arc;
use alloy_primitives::{keccak256, U256};
use alloy_rpc_types_mev::{EthCallBundle, EthCallBundleResponse, EthCallBundleTransactionResult};
use jsonrpsee::core::RpcResult;
use reth_evm::{ConfigureEvm, ConfigureEvmEnv};
use reth_primitives::{
@@ -11,7 +12,6 @@ use reth_primitives::{
};
use reth_revm::database::StateProviderDatabase;
use reth_rpc_eth_api::{FromEthApiError, FromEvmError};
use reth_rpc_types::mev::{EthCallBundle, EthCallBundleResponse, EthCallBundleTransactionResult};
use reth_tasks::pool::BlockingTaskGuard;
use revm::{
db::CacheDB,