This repository was archived by the owner on Jan 16, 2026. It is now read-only.
feat(derive): Abstract Alt DA out of kona-derive#156
Merged
Conversation
2c41ed8 to
87999c5
Compare
refcell
reviewed
Apr 28, 2024
refcell
reviewed
Apr 28, 2024
refcell
reviewed
Apr 28, 2024
2c693c6 to
8a85a2f
Compare
Closed
This was referenced May 29, 2024
Closed
Closed
Closed
This was referenced Jun 16, 2024
Closed
Closed
Merged
Closed
theochap
pushed a commit
to ethereum-optimism/optimism
that referenced
this pull request
Dec 10, 2025
* chore(workspace): Simplify, fix CI * feat: Re-add `kona-plasma` * feat(derive): Abstract away alternative DA layers * feat(plasma): Add `PlasmaDataSource` * chore(plasma): Standard `test_utils` mod name fmt
theochap
pushed a commit
to ethereum-optimism/optimism
that referenced
this pull request
Jan 14, 2026
* chore(workspace): Simplify, fix CI * feat: Re-add `kona-plasma` * feat(derive): Abstract away alternative DA layers * feat(plasma): Add `PlasmaDataSource` * chore(plasma): Standard `test_utils` mod name fmt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Abstracts alternative data availability adapters out of
kona-deriveby doing away with theDataSourceFactoryin favor of adapters implementing theDataAvailabilityProvidertrait themselves. Right now, theDataSourceFactorycomposes the various DA options like so:Removing the dependency on the
DataSourceFactoryas a composition type wrapping around theDataAvailabilityProvidertrait lends towards more flexibility for other future alternative DA adapter implementors, given thatkona-derive's business logic only depends on theDataAvailabilityProvidertrait's interface. This also allows us to completely decouple alt data availability modifications fromkona-derive, and allow for them to exist as extensions (think:revm+ the handler abstractions, allowing for modifications to the base EVM logic). Other consumers of the crate can make new extensions without having to upstream changes tokona-derivefor their modifications.This also makes composition a bit cleaner for the consumer of the library - for example, in the
onlinefeature ofkona-derive's constructor, we can use the concrete implementations of the various online traits, as well as abstract over the DA (useful, for example, in a rollup client that may support several DAs through configuration at a higher level):Note that above, we no longer need to supply types for DA options we are not using.
Other File Jumblin'
kona-plasmanow contains all logic related to the alternative Plasma DA extension forkona-derive.kona-providershas been moved back intokona-derive; These providers are specific to the pipeline and pretty minimal interfaces of the full RPCs, shouldn't be useful except to consumers ofkona-derive.