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: abstract OP payload builder over transaction #14153

Merged
merged 5 commits into from
Feb 3, 2025

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Feb 1, 2025

Based on #14152

This is similar to #13792 and is based on the same OpReceiptBuilder trait.

OpBuiltPayload and OpPayloadBuilderAttributes are made generic over primitive types. With this PR OpPayloadBuilder is fully generic over transaction, delegating all execution to ConfigureEvm, and receipt building to configured OpReceiptBuilder, allowing it to be reused for OP rollups with custom transaction types

@klkvr klkvr changed the base branch from main to klkvr/simplify-op-payload February 1, 2025 22:55
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm, smol layout suggestion

Comment on lines 55 to 62
pub trait OpPayloadPrimitives:
NodePrimitives<
Receipt: DepositReceipt,
SignedTx = Self::_TX,
BlockHeader = Header,
BlockBody = BlockBody<Self::_TX>,
>
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we move this to traits.rs so that we could move this more easily

@klkvr klkvr force-pushed the klkvr/generic-op-built-payload branch from 725839b to b67f06a Compare February 2, 2025 16:41
Base automatically changed from klkvr/simplify-op-payload to main February 2, 2025 16:44
@klkvr klkvr force-pushed the klkvr/generic-op-built-payload branch from b67f06a to 9b912cc Compare February 2, 2025 16:47
@klkvr klkvr added this pull request to the merge queue Feb 3, 2025
@klkvr klkvr removed this pull request from the merge queue due to a manual request Feb 3, 2025
@klkvr klkvr enabled auto-merge February 3, 2025 14:44
@klkvr klkvr added this pull request to the merge queue Feb 3, 2025
Merged via the queue into main with commit 65c3bd7 Feb 3, 2025
44 checks passed
@klkvr klkvr deleted the klkvr/generic-op-built-payload branch February 3, 2025 15:12
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