-
Notifications
You must be signed in to change notification settings - Fork 236
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: add OptimismExecutionPayloadV3 #242
feat: add OptimismExecutionPayloadV3 #242
Conversation
alloy project does not intend to house any non-Ethereum structs. this whole file belongs in a separate repo |
this should be in there for ease of use, at least for the time being because we already have some other op types, but once stable we should remove them yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doc nit, otherwise lgtm
/// This structure maps on the ExecutionPayloadV3 structure of the beacon chain spec. | ||
/// | ||
/// See also: <https://github.com/ethereum/execution-apis/blob/6709c2a795b707202e93c4f2867fa0bf2640a84f/src/engine/shanghai.md#executionpayloadv2> | ||
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should also reference the op spec:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should also reference the op spec:
sure, proposed here #244
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm codewise. as prestwich said, this should only be temporary—I think we should make an issue to track moving OP types to another repo once we have stability
@DaniPopes is the clippy relevant? otherwise good to merge |
@prestwich nope, clippy is unrelated—see proptest fix: proptest-rs/proptest#427 |
Tracking wrt OP types #243 |
Updates `alloy-rpc-types` and `alloy-rpc-trace-types` to `52bf7125d944e8a389371be503035724dfde5657`, which contains alloy-rs/alloy#242
Motivation
Towards paradigmxyz/reth#6871
Solution
Adds specific type for
OptimismExecutionPayloadV3
to be used inBuiltPayload
. Very similar toExecutionPayloadV3
, adds optimism-specific fieldparent_beacon_block_root
PR Checklist