reth_provider/traits/
tree_viewer.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use crate::BlockchainTreePendingStateProvider;
use reth_blockchain_tree_api::{BlockchainTreeEngine, BlockchainTreeViewer};
use reth_chain_state::CanonStateSubscriptions;

/// Helper trait to combine all the traits we need for the `BlockchainProvider`
///
/// This is a temporary solution
pub trait TreeViewer:
    BlockchainTreeViewer
    + BlockchainTreePendingStateProvider
    + CanonStateSubscriptions
    + BlockchainTreeEngine
{
}

impl<T> TreeViewer for T where
    T: BlockchainTreeViewer
        + BlockchainTreePendingStateProvider
        + CanonStateSubscriptions
        + BlockchainTreeEngine
{
}