alloy-rs / alloy

Transports, Middleware, and Networks for the Alloy project
https://alloy.rs
Apache License 2.0
669 stars 245 forks source link

[Feature] add ssz support for beacon request types #1004

Open mattsse opened 5 months ago

mattsse commented 5 months ago

Component

rpc

Describe the feature you would like

spec: https://flashbots.github.io/relay-specs/#/

blocks can be submitted as josn or ssz

we currently don't have ssz support for the submit types:

https://github.com/alloy-rs/alloy/blob/095ed893f73487ed5cba22b7e14b429c0873e102/crates/rpc-types-beacon/src/relay.rs#L125-L129

TODO

see also: https://github.com/flashbots/builder/blob/df9c765067d57ab4b2d0ad39dbb156cbe4965778/builder/relay.go#L137-L154C31 https://github.com/attestantio/go-builder-client/blob/73e0a0b2ce80aac4db7705ac3af06e6b85b0d64a/api/deneb/submitblockrequest_ssz.go#L14

Additional context

No response

programskillforverification commented 4 months ago

I want to try this. Could you assign to me?