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: add altda data source + eigenda implementation #1

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
241 changes: 238 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,6 @@ revm = { version = "16.0.0", default-features = false }

# K/V database
rocksdb = { version = "0.22", default-features = false }

# grpc
tonic = "0.12.3"
9 changes: 9 additions & 0 deletions bin/client/src/kona.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use kona_common_proc::client_entry;
use kona_driver::{Driver, DriverError};
use kona_preimage::{HintWriter, OracleReader};
use kona_proof::{
altda::{self, OracleAltDAProvider, OracleEigenDAProvider},
executor::KonaExecutorConstructor,
l1::{OracleBlobProvider, OracleL1ChainProvider, OraclePipeline},
l2::OracleL2ChainProvider,
Expand Down Expand Up @@ -70,6 +71,13 @@ fn main() -> Result<(), String> {
let l1_provider = OracleL1ChainProvider::new(boot.clone(), oracle.clone());
let l2_provider = OracleL2ChainProvider::new(boot.clone(), oracle.clone());
let beacon = OracleBlobProvider::new(oracle.clone());
let altda_provider = if boot.rollup_config.is_alt_da_enabled() {
// TODO: altda_provider should be a struct that contains all the altda providers,
// such that a rollup can dynamically switch between da providers if needed.
Some(OracleAltDAProvider::new_from_oracle(oracle.clone()))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at runtime, for failover?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really for failover, more like if some rollup decides to switch from celestia to eigenda or the other way around at some point in its existence.

} else {
None
};

// If the genesis block is claimed, we can exit early.
// The agreed upon prestate is consented to by all parties, and there is no state
Expand Down Expand Up @@ -108,6 +116,7 @@ fn main() -> Result<(), String> {
beacon,
l1_provider.clone(),
l2_provider.clone(),
altda_provider,
);
let executor = KonaExecutorConstructor::new(
&cfg,
Expand Down
Loading