Skip to content

feat(protocol): SystemConfig Conversion Utility#135

Merged
refcell merged 2 commits intomainfrom
rf/feat/conversion-utils
Oct 1, 2024
Merged

feat(protocol): SystemConfig Conversion Utility#135
refcell merged 2 commits intomainfrom
rf/feat/conversion-utils

Conversation

@refcell
Copy link
Collaborator

@refcell refcell commented Oct 1, 2024

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.

@refcell refcell requested review from emhane and mattsse as code owners October 1, 2024 02:14
@refcell refcell self-assigned this Oct 1, 2024
@refcell refcell force-pushed the rf/feat/conversion-utils branch from 670c001 to a42a860 Compare October 1, 2024 02:16
@refcell refcell added A-protocol C-debt Category: technical debt or removable C-feat Category: New feature or request and removed C-debt Category: technical debt or removable labels Oct 1, 2024
github-merge-queue bot pushed a commit that referenced this pull request Oct 1, 2024
### 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
#135
@refcell refcell added this pull request to the merge queue Oct 1, 2024
Merged via the queue into main with commit ddc36fe Oct 1, 2024
@refcell refcell deleted the rf/feat/conversion-utils branch October 1, 2024 12:58
docker-dragonmj9ol added a commit to docker-dragonmj9ol/op-alloy that referenced this pull request Nov 6, 2025
### 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/op-alloy#135
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Jan 21, 2026
### 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/op-alloy#135
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Jan 21, 2026
### 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.
refcell added a commit to base/base that referenced this pull request Feb 18, 2026
### 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/op-alloy#135
refcell added a commit to base/base that referenced this pull request Feb 18, 2026
### 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/op-alloy#135
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-feat Category: New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants