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

operator fee #1

Closed
wants to merge 9 commits into from
Closed

operator fee #1

wants to merge 9 commits into from

Conversation

yuwen01
Copy link
Owner

@yuwen01 yuwen01 commented Sep 30, 2024

Motivation

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

yuwen01 and others added 9 commits September 30, 2024 11:11
## Motivation

alloy-rs/alloy#1349

## Solution

Same as alloy-rs/alloy#1397

## PR Checklist

- [x] Added Tests
- [x] Added Documentation
- [ ] Breaking changes
### Description

Removes payload conversion utilities.

Kona removed the need to fetch the payload by number, using the block
instead in op-rs/kona#542.

Instead of converting a payload into the `L2BlockInfo` and
`SystemConfig`, the `OpBlock` type is now fetched and converted into
those types using the conversion utilities:
-
[`L2BlockInfo::from_block_and_genesis`](https://github.com/alloy-rs/op-alloy/blob/main/crates/protocol/src/block.rs#L134)
- `to_system_config` standalone method introduced in
alloy-rs#135
### Description

Adds a utility to convert an `OpBlock` into a `SystemConfig`. Since this
requires the `SystemConfig` type in `op-alloy-genesis` and the
`L1BlockInfo` types in `op-alloy-protocol`, this is best placed in
`op-alloy-protocol` for now without dependency surgery.
@yuwen01 yuwen01 closed this Oct 1, 2024
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.

3 participants