mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-13 08:25:08 -05:00
chore(engine): rename enveloped associated types to envelope (#11812)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@@ -118,7 +118,10 @@ pub trait EngineApi<Engine: EngineTypes> {
|
||||
/// payload build process at the time of receiving this call. Note:
|
||||
/// > Provider software MAY stop the corresponding build process after serving this call.
|
||||
#[method(name = "getPayloadV2")]
|
||||
async fn get_payload_v2(&self, payload_id: PayloadId) -> RpcResult<Engine::ExecutionPayloadV2>;
|
||||
async fn get_payload_v2(
|
||||
&self,
|
||||
payload_id: PayloadId,
|
||||
) -> RpcResult<Engine::ExecutionPayloadEnvelopeV2>;
|
||||
|
||||
/// Post Cancun payload handler which also returns a blobs bundle.
|
||||
///
|
||||
@@ -128,7 +131,10 @@ pub trait EngineApi<Engine: EngineTypes> {
|
||||
/// payload build process at the time of receiving this call. Note:
|
||||
/// > Provider software MAY stop the corresponding build process after serving this call.
|
||||
#[method(name = "getPayloadV3")]
|
||||
async fn get_payload_v3(&self, payload_id: PayloadId) -> RpcResult<Engine::ExecutionPayloadV3>;
|
||||
async fn get_payload_v3(
|
||||
&self,
|
||||
payload_id: PayloadId,
|
||||
) -> RpcResult<Engine::ExecutionPayloadEnvelopeV3>;
|
||||
|
||||
/// Post Prague payload handler.
|
||||
///
|
||||
@@ -138,7 +144,10 @@ pub trait EngineApi<Engine: EngineTypes> {
|
||||
/// payload build process at the time of receiving this call. Note:
|
||||
/// > Provider software MAY stop the corresponding build process after serving this call.
|
||||
#[method(name = "getPayloadV4")]
|
||||
async fn get_payload_v4(&self, payload_id: PayloadId) -> RpcResult<Engine::ExecutionPayloadV4>;
|
||||
async fn get_payload_v4(
|
||||
&self,
|
||||
payload_id: PayloadId,
|
||||
) -> RpcResult<Engine::ExecutionPayloadEnvelopeV4>;
|
||||
|
||||
/// See also <https://github.com/ethereum/execution-apis/blob/6452a6b194d7db269bf1dbd087a267251d3cc7f8/src/engine/shanghai.md#engine_getpayloadbodiesbyhashv1>
|
||||
#[method(name = "getPayloadBodiesByHashV1")]
|
||||
|
||||
@@ -289,7 +289,7 @@ where
|
||||
pub async fn get_payload_v2(
|
||||
&self,
|
||||
payload_id: PayloadId,
|
||||
) -> EngineApiResult<EngineT::ExecutionPayloadV2> {
|
||||
) -> EngineApiResult<EngineT::ExecutionPayloadEnvelopeV2> {
|
||||
// First we fetch the payload attributes to check the timestamp
|
||||
let attributes = self.get_payload_attributes(payload_id).await?;
|
||||
|
||||
@@ -324,7 +324,7 @@ where
|
||||
pub async fn get_payload_v3(
|
||||
&self,
|
||||
payload_id: PayloadId,
|
||||
) -> EngineApiResult<EngineT::ExecutionPayloadV3> {
|
||||
) -> EngineApiResult<EngineT::ExecutionPayloadEnvelopeV3> {
|
||||
// First we fetch the payload attributes to check the timestamp
|
||||
let attributes = self.get_payload_attributes(payload_id).await?;
|
||||
|
||||
@@ -359,7 +359,7 @@ where
|
||||
pub async fn get_payload_v4(
|
||||
&self,
|
||||
payload_id: PayloadId,
|
||||
) -> EngineApiResult<EngineT::ExecutionPayloadV4> {
|
||||
) -> EngineApiResult<EngineT::ExecutionPayloadEnvelopeV4> {
|
||||
// First we fetch the payload attributes to check the timestamp
|
||||
let attributes = self.get_payload_attributes(payload_id).await?;
|
||||
|
||||
@@ -778,7 +778,7 @@ where
|
||||
async fn get_payload_v2(
|
||||
&self,
|
||||
payload_id: PayloadId,
|
||||
) -> RpcResult<EngineT::ExecutionPayloadV2> {
|
||||
) -> RpcResult<EngineT::ExecutionPayloadEnvelopeV2> {
|
||||
trace!(target: "rpc::engine", "Serving engine_getPayloadV2");
|
||||
let start = Instant::now();
|
||||
let res = Self::get_payload_v2(self, payload_id).await;
|
||||
@@ -798,7 +798,7 @@ where
|
||||
async fn get_payload_v3(
|
||||
&self,
|
||||
payload_id: PayloadId,
|
||||
) -> RpcResult<EngineT::ExecutionPayloadV3> {
|
||||
) -> RpcResult<EngineT::ExecutionPayloadEnvelopeV3> {
|
||||
trace!(target: "rpc::engine", "Serving engine_getPayloadV3");
|
||||
let start = Instant::now();
|
||||
let res = Self::get_payload_v3(self, payload_id).await;
|
||||
@@ -818,7 +818,7 @@ where
|
||||
async fn get_payload_v4(
|
||||
&self,
|
||||
payload_id: PayloadId,
|
||||
) -> RpcResult<EngineT::ExecutionPayloadV4> {
|
||||
) -> RpcResult<EngineT::ExecutionPayloadEnvelopeV4> {
|
||||
trace!(target: "rpc::engine", "Serving engine_getPayloadV4");
|
||||
let start = Instant::now();
|
||||
let res = Self::get_payload_v4(self, payload_id).await;
|
||||
|
||||
Reference in New Issue
Block a user