Skip to content

feat(L2): implement Into<RpcRequest> for EngineAPI request structs#606

Merged
ilitteri merged 2 commits into
ethereum_rust_l2_consensus_mockfrom
l2_engine_requests_into_rpc
Oct 2, 2024
Merged

feat(L2): implement Into<RpcRequest> for EngineAPI request structs#606
ilitteri merged 2 commits into
ethereum_rust_l2_consensus_mockfrom
l2_engine_requests_into_rpc

Conversation

@ManuelBilbao

Copy link
Copy Markdown
Contributor

Motivation

This avoid us to repeat the JSON-RPC specification on every request we want to make with EngineAPI.

Description

The trait Into<RpcRequest> was implemented for every used EngineAPI request structure (e.g. NewPayloadV3Request) so we can create an Engine request and then convert it to an RpcRequest.

@ManuelBilbao ManuelBilbao requested a review from ilitteri October 1, 2024 21:10
@ManuelBilbao ManuelBilbao requested a review from a team as a code owner October 1, 2024 21:10
Comment thread crates/rpc/engine/payload.rs Outdated

@ilitteri ilitteri left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one comment

@ilitteri ilitteri merged commit 934a25a into ethereum_rust_l2_consensus_mock Oct 2, 2024
@ilitteri ilitteri deleted the l2_engine_requests_into_rpc branch October 2, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants