Skip to content

Commit

Permalink
fix(providers): remove slot derivation (#636)
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell authored Oct 7, 2024
1 parent 40b7ebd commit 3046b06
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 113 deletions.
8 changes: 2 additions & 6 deletions bin/host/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use clap::{
builder::styling::{AnsiColor, Color, Style},
ArgAction, Parser,
};
use kona_providers_alloy::{OnlineBeaconClient, OnlineBlobProvider, SimpleSlotDerivation};
use kona_providers_alloy::{OnlineBeaconClient, OnlineBlobProvider};
use op_alloy_genesis::RollupConfig;
use serde::Serialize;
use std::{path::PathBuf, sync::Arc};
Expand Down Expand Up @@ -130,11 +130,7 @@ impl HostCli {
/// - A [ReqwestProvider] for the L2 node.
pub async fn create_providers(
&self,
) -> Result<(
ReqwestProvider,
OnlineBlobProvider<OnlineBeaconClient, SimpleSlotDerivation>,
ReqwestProvider,
)> {
) -> Result<(ReqwestProvider, OnlineBlobProvider<OnlineBeaconClient>, ReqwestProvider)> {
let beacon_client = OnlineBeaconClient::new_http(
self.l1_beacon_address.clone().ok_or(anyhow!("Beacon API URL must be set"))?,
);
Expand Down
6 changes: 3 additions & 3 deletions bin/host/src/fetcher/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ use anyhow::{anyhow, Result};
use kona_client::HintType;
use kona_preimage::{PreimageKey, PreimageKeyType};
use kona_primitives::IndexedBlobHash;
use kona_providers_alloy::{OnlineBeaconClient, OnlineBlobProvider, SimpleSlotDerivation};
use kona_providers_alloy::{OnlineBeaconClient, OnlineBlobProvider};
use op_alloy_protocol::BlockInfo;
use std::sync::Arc;
use tokio::sync::RwLock;
Expand All @@ -33,7 +33,7 @@ where
/// L1 chain provider.
l1_provider: ReqwestProvider,
/// The blob provider
blob_provider: OnlineBlobProvider<OnlineBeaconClient, SimpleSlotDerivation>,
blob_provider: OnlineBlobProvider<OnlineBeaconClient>,
/// L2 chain provider.
/// TODO: OP provider, N = Optimism
l2_provider: ReqwestProvider,
Expand All @@ -51,7 +51,7 @@ where
pub const fn new(
kv_store: Arc<RwLock<KV>>,
l1_provider: ReqwestProvider,
blob_provider: OnlineBlobProvider<OnlineBeaconClient, SimpleSlotDerivation>,
blob_provider: OnlineBlobProvider<OnlineBeaconClient>,
l2_provider: ReqwestProvider,
l2_head: B256,
) -> Self {
Expand Down
Loading

0 comments on commit 3046b06

Please sign in to comment.