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
2 changes: 0 additions & 2 deletions crates/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ repository.workspace = true
default = []

[dependencies]
reth-chainspec.workspace = true
reth-optimism-rpc.workspace = true
reth-rpc.workspace = true
reth-rpc-eth-api.workspace = true
reth-storage-api.workspace = true

jsonrpsee.workspace = true
serde.workspace = true
Expand Down
20 changes: 1 addition & 19 deletions crates/rpc/src/xlayer_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,8 @@ use jsonrpsee::{
proc_macros::rpc,
};

use reth_chainspec::{ChainSpecProvider, EthChainSpec};
use reth_optimism_rpc::SequencerClient;
use reth_rpc::RpcTypes;
use reth_rpc_eth_api::{
helpers::{EthFees, LoadBlock, LoadFee},
EthApiTypes,
};
use reth_storage_api::{BlockReaderIdExt, HeaderProvider, ProviderHeader};

/// Trait for accessing sequencer client from backend
pub trait SequencerClientProvider {
Expand Down Expand Up @@ -47,19 +41,7 @@ pub struct XlayerRpcExt<T> {
#[async_trait]
impl<T, Net> XlayerRpcExtApiServer<Net> for XlayerRpcExt<T>
where
T: EthFees
+ LoadFee
+ LoadBlock
+ EthApiTypes<NetworkTypes = Net>
+ SequencerClientProvider
+ PendingFlashBlockProvider
+ Clone
+ Send
+ Sync
+ 'static,
T::Provider: ChainSpecProvider<ChainSpec: EthChainSpec<Header = ProviderHeader<T::Provider>>>
+ BlockReaderIdExt
+ HeaderProvider,
T: PendingFlashBlockProvider + Send + Sync + 'static,
Net: RpcTypes + Send + Sync + 'static,
{
async fn flashblocks_enabled(&self) -> RpcResult<bool> {
Expand Down