Type Alias MockNodeTypes

Source
pub type MockNodeTypes = AnyNodeTypesWithEngine<EthPrimitives, EthEngineTypes, ChainSpec, MerklePatriciaTrie, EthStorage>;
Available on crate feature test-utils only.
Expand description

Mock [reth_node_types::NodeTypes] for testing.

Aliased Type§

struct MockNodeTypes { /* private fields */ }

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: 0 bytes

Implementations

§

impl<P, E, C, SC, S> AnyNodeTypesWithEngine<P, E, C, SC, S>

pub const fn new() -> AnyNodeTypesWithEngine<P, E, C, SC, S>

Creates a new instance of [AnyNodeTypesWithEngine].

pub const fn primitives<T>(self) -> AnyNodeTypesWithEngine<T, E, C, SC, S>

Sets the Primitives associated type.

pub const fn engine<T>(self) -> AnyNodeTypesWithEngine<P, T, C, SC, S>

Sets the Engine associated type.

pub const fn chain_spec<T>(self) -> AnyNodeTypesWithEngine<P, E, T, SC, S>

Sets the ChainSpec associated type.

pub const fn state_commitment<T>(self) -> AnyNodeTypesWithEngine<P, E, C, T, S>

Sets the StateCommitment associated type.

pub const fn storage<T>(self) -> AnyNodeTypesWithEngine<P, E, C, SC, T>

Sets the Storage associated type.

Trait Implementations

§

impl<P, E, C, SC, S> Debug for AnyNodeTypesWithEngine<P, E, C, SC, S>
where P: Debug, E: Debug, C: Debug, SC: Debug, S: Debug,

§

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

Formats the value using the given formatter. Read more
§

impl<P, E, C, SC, S> Default for AnyNodeTypesWithEngine<P, E, C, SC, S>

§

fn default() -> AnyNodeTypesWithEngine<P, E, C, SC, S>

Returns the “default value” for a type. Read more
§

impl<P, E, C, SC, S> NodeTypes for AnyNodeTypesWithEngine<P, E, C, SC, S>
where P: NodePrimitives + Send + Sync + Unpin + 'static, E: EngineTypes + Send + Sync + Unpin, C: EthChainSpec<Header = <P as NodePrimitives>::BlockHeader> + 'static, SC: StateCommitment, S: Default + Send + Sync + Unpin + Debug + 'static,

§

type Primitives = P

The node’s primitive types, defining basic operations and structures.
§

type ChainSpec = C

The type used for configuration of the EVM.
§

type StateCommitment = SC

The type used to perform state commitment operations.
§

type Storage = S

The type responsible for writing chain primitives to storage.
§

impl<P, E, C, SC, S> NodeTypesWithEngine for AnyNodeTypesWithEngine<P, E, C, SC, S>
where P: NodePrimitives + Send + Sync + Unpin + 'static, E: EngineTypes + Send + Sync + Unpin, <E as PayloadTypes>::BuiltPayload: BuiltPayload<Primitives = P>, C: EthChainSpec<Header = <P as NodePrimitives>::BlockHeader> + 'static, SC: StateCommitment, S: Default + Send + Sync + Unpin + Debug + 'static,

§

type Engine = E

The node’s engine types, defining the interaction with the consensus engine.