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(protocol): Batch Type #172

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft

feat(protocol): Batch Type #172

wants to merge 7 commits into from

Conversation

refcell
Copy link
Collaborator

@refcell refcell commented Oct 15, 2024

Description

kona-derive is nearly decoupled from protocol-level types. The final remaining types are batch, span batch, and single batch types living in kona-derive's batch module. These types need to be cleaned up and ported over to op-alloy with improved abstractions around validity checks.

Additional Context

Works on anton-rs/kona#695

@refcell refcell changed the title feat: batch type feat(protocol): batch type Oct 15, 2024
@refcell refcell changed the title feat(protocol): batch type feat(protocol): Batch Type Oct 15, 2024
caglaryucekaya and others added 6 commits October 22, 2024 11:44
<!--
Thank you for your Pull Request. Please provide a description above and
review
the requirements below.

Bug fixes and new features should include tests.

Contributors guide:
https://github.com/alloy-rs/core/blob/main/CONTRIBUTING.md

The contributors guide includes instructions for running rustfmt and
building the
documentation.
-->

<!-- ** Please select "Allow edits from maintainers" in the PR Options
** -->

## Motivation
`optimism_deposit_tx_signature` function in `reth` should be moved to
`op-alloy` as part of an
[issue](paradigmxyz/reth#11781).

paradigmxyz/reth#11781

<!--
Explain the context and why you're making that change. What is the
problem
you're trying to solve? In some cases there is not a problem and this
can be
thought of as being the motivation for your change.
-->

## Solution
An associated function `signature` is added to the `TxDeposit` struct.

<!--
Summarize the solution and provide any necessary context needed to
understand
the code change.
-->

## PR Checklist

- [ ] Added Tests
- [ ] Added Documentation
- [ ] Breaking changes
## Motivation

There is no longer a V4 execution payload in Pectra, so it does not make
sense that there would be one for Optimism. The v4 payload envelope
still exists, but it now wraps a v3 payload.

See also alloy-rs/alloy#1383

Based on #175

## Solution

Remove the V4 payload.

## PR Checklist

- [ ] Added Tests
- [ ] Added Documentation
- [ ] Breaking changes

---------

Co-authored-by: Yash Atreya <[email protected]>
### Description

Dependency updates
### Description

Cleans up `op-alloy-consensus`, moving tests to their respective
modules.
### Description

Introduces an accessor method for the `SystemConfig` to get the encoded
EIP 1559 params.
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.

4 participants