chore: rename v1 type (#12205)

This commit is contained in:
Matthias Seitz
2024-10-30 18:56:36 +01:00
committed by GitHub
parent 755fac08dd
commit b3e8327065
6 changed files with 21 additions and 12 deletions

View File

@ -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