mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: rename v1 type (#12205)
This commit is contained in:
@ -23,7 +23,7 @@ use serde::{de::DeserializeOwned, ser::Serialize};
|
||||
/// payload job. Hence this trait is also [`PayloadTypes`].
|
||||
pub trait EngineTypes:
|
||||
PayloadTypes<
|
||||
BuiltPayload: TryInto<Self::ExecutionPayloadV1>
|
||||
BuiltPayload: TryInto<Self::ExecutionPayloadEnvelopeV1>
|
||||
+ TryInto<Self::ExecutionPayloadEnvelopeV2>
|
||||
+ TryInto<Self::ExecutionPayloadEnvelopeV3>
|
||||
+ TryInto<Self::ExecutionPayloadEnvelopeV4>,
|
||||
@ -31,9 +31,15 @@ pub trait EngineTypes:
|
||||
+ Serialize
|
||||
+ 'static
|
||||
{
|
||||
/// Execution Payload V1 type.
|
||||
type ExecutionPayloadV1: DeserializeOwned + Serialize + Clone + Unpin + Send + Sync + 'static;
|
||||
/// Execution Payload V2 type.
|
||||
/// Execution Payload V1 envelope type.
|
||||
type ExecutionPayloadEnvelopeV1: DeserializeOwned
|
||||
+ Serialize
|
||||
+ Clone
|
||||
+ Unpin
|
||||
+ Send
|
||||
+ Sync
|
||||
+ 'static;
|
||||
/// Execution Payload V2 envelope type.
|
||||
type ExecutionPayloadEnvelopeV2: DeserializeOwned
|
||||
+ Serialize
|
||||
+ Clone
|
||||
@ -41,7 +47,7 @@ pub trait EngineTypes:
|
||||
+ Send
|
||||
+ Sync
|
||||
+ 'static;
|
||||
/// Execution Payload V3 type.
|
||||
/// Execution Payload V3 envelope type.
|
||||
type ExecutionPayloadEnvelopeV3: DeserializeOwned
|
||||
+ Serialize
|
||||
+ Clone
|
||||
@ -49,7 +55,7 @@ pub trait EngineTypes:
|
||||
+ Send
|
||||
+ Sync
|
||||
+ 'static;
|
||||
/// Execution Payload V4 type.
|
||||
/// Execution Payload V4 envelope type.
|
||||
type ExecutionPayloadEnvelopeV4: DeserializeOwned
|
||||
+ Serialize
|
||||
+ Clone
|
||||
|
||||
Reference in New Issue
Block a user