Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rpc-types-beacon): BuilderBlockValidationRequestV4 #1322

Conversation

ryanschneider
Copy link
Contributor

Motivation

As suggested by @mattsse here this is a simple type alias for BuilderBlockValidationRequestV4.

I still think we should consider refactoring these structs to use an explicit versioned ExecutionPayloadV* instead of the enum, but I'm not sure how we feel about breaking compat on the V1 and V2 structs.

We could also move them from ::relay to ::validation to mirror the layout in reth: https://github.com/paradigmxyz/reth/blob/3daec1d9b97c2d654c7f84e8521ac552dcaf4928/crates/rpc/rpc-api/src/validation.rs

Solution

Anyways the type alias works for Pectra in the short-term, but happy to make the other changes if people are ok with that.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@mattsse
Copy link
Member

mattsse commented Sep 21, 2024

We could also move them from ::relay to ::validation to mirror the layout in reth:

that makes sense

an enum also makes sense

@mattsse mattsse merged commit 21bc07e into alloy-rs:main Sep 21, 2024
26 checks passed
lwedge99 pushed a commit to sentioxyz/alloy that referenced this pull request Oct 8, 2024
)

* feat(rpc-types-beacon): `BuilderBlockValidationRequestV4`

* chore: make type pub

---------

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
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