Type Alias Adapter

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

Type alias for a NodeAdapter

Aliased Type§

struct Adapter<N, Provider = BlockchainProvider<NodeTypesWithDBAdapter<N, TmpDB>>> {
    pub components: <<N as Node<FullNodeTypesAdapter<N, Arc<TempDatabase<DatabaseEnv>>, Provider>>>::ComponentsBuilder as NodeComponentsBuilder<FullNodeTypesAdapter<N, Arc<TempDatabase<DatabaseEnv>>, Provider>>>::Components,
    pub task_executor: TaskExecutor,
    pub provider: <FullNodeTypesAdapter<N, Arc<TempDatabase<DatabaseEnv>>, Provider> as FullNodeTypes>::Provider,
}

Fields§

§components: <<N as Node<FullNodeTypesAdapter<N, Arc<TempDatabase<DatabaseEnv>>, Provider>>>::ComponentsBuilder as NodeComponentsBuilder<FullNodeTypesAdapter<N, Arc<TempDatabase<DatabaseEnv>>, Provider>>>::Components

The components of the node.

§task_executor: TaskExecutor

The task executor for the node.

§provider: <FullNodeTypesAdapter<N, Arc<TempDatabase<DatabaseEnv>>, Provider> as FullNodeTypes>::Provider

The provider of the node.

Layout§

Note: Encountered an error during type layout; the type failed to be normalized.

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> 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 NodeTypesWithEngine>::Engine>

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.