Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

[OLD] feat(client): providers generic over oracles#295

Closed
zobront wants to merge 16 commits intoop-rs:mainfrom
succinctlabs:kona-upstream
Closed

[OLD] feat(client): providers generic over oracles#295
zobront wants to merge 16 commits intoop-rs:mainfrom
succinctlabs:kona-upstream

Conversation

@zobront
Copy link
Contributor

@zobront zobront commented Jun 21, 2024

THIS PR WOULD NOT TRIGGER GITHUB CI. NEW PR #336 REPLACED IT.

@codecov-commenter
Copy link

codecov-commenter commented Jun 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.6%. Comparing base (c024853) to head (98a2a02).

Additional details and impacted files

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zobront zobront changed the title feat(preimage): serde feature flag to rkyv feature flag feat(client): Providers Generic Over Oracles / Writers Jun 25, 2024
Comment on lines +15 to +17
} else if #[cfg(target_os = "zkvm")] {
#[doc = "Concrete implementation of the [BasicKernelInterface] trait for the `zkvm` target architecture."]
pub type ClientIO = crate::zkvm::io::ZkvmIO;
Copy link
Contributor Author

@zobront zobront Jun 25, 2024

Choose a reason for hiding this comment

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

I would like to get rid of the need for any of these changes, but putting them in here for now so it compiles and works. @clabby let me know if you're ok merging like this until we figure out a solution, or if you'd prefer to wait.

Copy link

Choose a reason for hiding this comment

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

I think we definitely need this otherwise we don't have the native file descriptors (like the filesystem) so it won't compile

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Totally right. Clabby and I brainstormed a few alternatives to remove the need for it, since we don't actually use the io system so it's not doing anything.

He's thinking through it more, but my perspective is that best option would be to create a no op BKI implementation and organize the feature flags and defaults in such a way that it typically defaults to NativeIO, but that we can import with default features off to fall back to the no op.

pub fn new(
config: &'a RollupConfig,
parent_header: Sealed<Header>,
// TODO: @Clabby - would you rather refactor this to assume Provider implements F + H and just pass one argument?
Copy link
Contributor Author

@zobront zobront Jun 25, 2024

Choose a reason for hiding this comment

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

Question for you @clabby: We can keep this as fetcher F and hinter H and just use the provider for both, or we can refactor the executor to expect the provider to handle everything. Which would you prefer?

Same question with the TrieDB, which is created in this function and also expects separate fetcher and hinter.

@zobront zobront changed the title feat(client): Providers Generic Over Oracles / Writers feat(client): Make Providers Generic Over Oracles & Oracles Include Writers Jun 25, 2024
@zobront zobront changed the title feat(client): Make Providers Generic Over Oracles & Oracles Include Writers feat(client): providers generic over oracles Jun 25, 2024
@zobront zobront changed the title feat(client): providers generic over oracles feat(client): providers generic over oracles [CLOSED] Jun 26, 2024
@zobront zobront changed the title feat(client): providers generic over oracles [CLOSED] [CLOSED] feat(client): providers generic over oracles Jun 26, 2024
@zobront
Copy link
Contributor Author

zobront commented Jun 26, 2024

I cannot get CI to run, so going to close this PR and reopen a new one to see if it fixes...

@zobront zobront closed this Jun 26, 2024
@zobront zobront changed the title [CLOSED] feat(client): providers generic over oracles [OLD] feat(client): providers generic over oracles Jun 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants