kona-derive
A no_std
compatible implementation of the OP Stack's derivation pipeline.
Usage
The intended way of working with kona-derive
is to use the DerivationPipeline
which implements the Pipeline
trait. To create an instance of the DerivationPipeline
, it's recommended to use the PipelineBuilder
as follows.
use Arc;
use RollupConfig;
use EthereumDataSource;
use PipelineBuilder;
use StatefulAttributesBuilder;
let chain_provider = todo!;
let l2_chain_provider = todo!;
let blob_provider = todo!;
let l1_origin = todo!;
let cfg = new;
let attributes = new;
let dap = new;
// Construct a new derivation pipeline.
let pipeline = new
.rollup_config
.dap_source
.l2_chain_provider
.chain_provider
.builder
.origin
.build;
Features
The most up-to-date feature list will be available on the docs.rs Feature Flags
tab of the kona-derive
crate.
Some features include the following.
serde
: Serialization and Deserialization support forkona-derive
types.test-utils
: Test utilities for downstream libraries.
By default, kona-derive
enables the serde
feature.