Type Alias Adapter

Source
pub type Adapter = NodeAdapter<RethFullAdapter<TmpDB, TestNode>, <<TestNode as Node<FullNodeTypesAdapter<TestNode, TmpDB, BlockchainProvider<NodeTypesWithDBAdapter<TestNode, TmpDB>>>>>::ComponentsBuilder as NodeComponentsBuilder<RethFullAdapter<TmpDB, TestNode>>>::Components>;
Expand description

The NodeAdapter for the TestExExContext. Contains type necessary to boot the testing environment

Aliased Type§

struct Adapter {
    pub components: Components<FullNodeTypesAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>, BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>>, EthNetworkPrimitives, Pool<MockTransactionValidator<MockTransaction>, CoinbaseTipOrdering<MockTransaction>, InMemoryBlobStore>, EthEvmConfig, MockExecutorProvider, Arc<TestConsensus>>,
    pub task_executor: TaskExecutor,
    pub provider: BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>,
}

Fields§

§components: Components<FullNodeTypesAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>, BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>>, EthNetworkPrimitives, Pool<MockTransactionValidator<MockTransaction>, CoinbaseTipOrdering<MockTransaction>, InMemoryBlobStore>, EthEvmConfig, MockExecutorProvider, Arc<TestConsensus>>

The components of the node.

§task_executor: TaskExecutor

The task executor for the node.

§provider: BlockchainProvider<NodeTypesWithDBAdapter<TestNode, Arc<TempDatabase<DatabaseEnv>>>>

The provider of the node.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 344 bytes

Trait Implementations

Source§

impl<T, C> Clone for NodeAdapter<T, C>
where T: FullNodeTypes, C: NodeComponents<T>,

Source§

fn clone(&self) -> NodeAdapter<T, C>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T, C> Debug for NodeAdapter<T, C>
where T: Debug + FullNodeTypes, C: Debug + NodeComponents<T>, <T as FullNodeTypes>::Provider: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<T, C> FullNodeComponents for NodeAdapter<T, C>
where T: FullNodeTypes, C: NodeComponents<T>,

Source§

type Pool = <C as NodeComponents<T>>::Pool

The transaction pool of the node.
Source§

type Evm = <C as NodeComponents<T>>::Evm

The node’s EVM configuration, defining settings for the Ethereum Virtual Machine.
Source§

type Executor = <C as NodeComponents<T>>::Executor

The type that knows how to execute blocks.
Source§

type Consensus = <C as NodeComponents<T>>::Consensus

The consensus type of the node.
Source§

type Network = <C as NodeComponents<T>>::Network

Network API.
Source§

fn pool(&self) -> &<NodeAdapter<T, C> as FullNodeComponents>::Pool

Returns the transaction pool of the node.
Source§

fn evm_config(&self) -> &<NodeAdapter<T, C> as FullNodeComponents>::Evm

Returns the node’s evm config.
Source§

fn block_executor(&self) -> &<NodeAdapter<T, C> as FullNodeComponents>::Executor

Returns the node’s executor type.
Source§

fn consensus(&self) -> &<NodeAdapter<T, C> as FullNodeComponents>::Consensus

Returns the node’s consensus type.
Source§

fn network(&self) -> &<NodeAdapter<T, C> as FullNodeComponents>::Network

Returns the handle to the network
Source§

fn payload_builder_handle( &self, ) -> &PayloadBuilderHandle<<<NodeAdapter<T, C> as FullNodeTypes>::Types as NodeTypes>::Payload>

Returns the handle to the payload builder service handling payload building requests from the engine.
Source§

fn provider(&self) -> &<NodeAdapter<T, C> as FullNodeTypes>::Provider

Returns the provider of the node.
Source§

fn task_executor(&self) -> &TaskExecutor

Returns handle to runtime.
Source§

impl<T, C> FullNodeTypes for NodeAdapter<T, C>
where T: FullNodeTypes, C: NodeComponents<T>,

Source§

type Types = <T as FullNodeTypes>::Types

Node’s types with the database.
Source§

type DB = <T as FullNodeTypes>::DB

Underlying database type used by the node to store and retrieve data.
Source§

type Provider = <T as FullNodeTypes>::Provider

The provider type used to interact with the node.