reth_node_api

Trait EngineTypes

Source
pub trait EngineTypes:
    PayloadTypes
    + DeserializeOwned
    + Serialize
    + 'static{
    type ExecutionPayloadEnvelopeV1: DeserializeOwned + Serialize + Clone + Unpin + Send + Sync + 'static;
    type ExecutionPayloadEnvelopeV2: DeserializeOwned + Serialize + Clone + Unpin + Send + Sync + 'static;
    type ExecutionPayloadEnvelopeV3: DeserializeOwned + Serialize + Clone + Unpin + Send + Sync + 'static;
    type ExecutionPayloadEnvelopeV4: DeserializeOwned + Serialize + Clone + Unpin + Send + Sync + 'static;
}
Expand description

This type defines the versioned types of the engine API.

This includes the execution payload types and payload attributes that are used to trigger a payload job. Hence this trait is also PayloadTypes.

Required Associated Types§

Source

type ExecutionPayloadEnvelopeV1: DeserializeOwned + Serialize + Clone + Unpin + Send + Sync + 'static

Execution Payload V1 envelope type.

Source

type ExecutionPayloadEnvelopeV2: DeserializeOwned + Serialize + Clone + Unpin + Send + Sync + 'static

Execution Payload V2 envelope type.

Source

type ExecutionPayloadEnvelopeV3: DeserializeOwned + Serialize + Clone + Unpin + Send + Sync + 'static

Execution Payload V3 envelope type.

Source

type ExecutionPayloadEnvelopeV4: DeserializeOwned + Serialize + Clone + Unpin + Send + Sync + 'static

Execution Payload V4 envelope type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> EngineTypes for EthEngineTypes<T>
where T: PayloadTypes, <T as PayloadTypes>::BuiltPayload: TryInto<ExecutionPayloadV1> + TryInto<ExecutionPayloadEnvelopeV2> + TryInto<ExecutionPayloadEnvelopeV3> + TryInto<ExecutionPayloadEnvelopeV4>,

Source§

type ExecutionPayloadEnvelopeV1 = ExecutionPayloadV1

Source§

type ExecutionPayloadEnvelopeV2 = ExecutionPayloadEnvelopeV2

Source§

type ExecutionPayloadEnvelopeV3 = ExecutionPayloadEnvelopeV3

Source§

type ExecutionPayloadEnvelopeV4 = ExecutionPayloadEnvelopeV4

Implementors§