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

Commit 35b36f9

Browse files
authored
Merge pull request #75 from ethereum-optimism/rf/fix/kona-type-refactor
fix: Use Refactored Kona Types
2 parents aa8be77 + d923447 commit 35b36f9

File tree

12 files changed

+67
-63
lines changed

12 files changed

+67
-63
lines changed

Cargo.lock

Lines changed: 52 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ revm = { version = "12.1", features = ["alloydb", "optimism"] }
4646

4747
# Kona + OP Types
4848
superchain-registry = "0.2.6"
49-
kona-derive = { git = "https://github.com/ethereum-optimism/kona", rev = "4e57dd35ea08b31d0baa293c7a12165f28e6cd92", features = ["online"] }
49+
kona-primitives = { git = "https://github.com/ethereum-optimism/kona", version = "0.0.2", features = ["online"] }
50+
kona-derive = { git = "https://github.com/ethereum-optimism/kona", version = "0.0.3", features = ["online"] }
5051

5152
# Internal
5253
op-test-vectors = { path = "crates/op-test-vectors" }

bin/opdn/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ alloy-eips.workspace = true
3030

3131
# OP Types + Kona
3232
op-test-vectors.workspace = true
33+
kona-primitives.workspace = true
3334
kona-derive.workspace = true
3435
superchain-registry.workspace = true

bin/opdn/src/cmd/blobs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use kona_derive::online::{
99
OnlineBeaconClient, OnlineBlobProviderWithFallback, SimpleSlotDerivation,
1010
};
1111
use kona_derive::traits::BlobProvider;
12-
use kona_derive::types::{Blob, BlockInfo, IndexedBlobHash};
12+
use kona_primitives::{Blob, BlockInfo, IndexedBlobHash};
1313

1414
/// Loads blobs for the given block number.
1515
pub async fn load(

bin/opdn/src/cmd/fixtures.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use kona_derive::online::{
88
AlloyChainProvider, OnlineBeaconClient, OnlineBlobProviderWithFallback, SimpleSlotDerivation,
99
};
1010
use kona_derive::traits::ChainProvider;
11-
use kona_derive::types::Blob;
11+
use kona_primitives::Blob;
1212
use op_test_vectors::derivation::FixtureBlock;
1313

1414
/// Constructs [FixtureBlock]s for the given L1 blocks.

bin/opdn/src/cmd/from_l1.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ use color_eyre::{
66
Result,
77
};
88
use hashbrown::HashMap;
9-
use kona_derive::{
10-
online::*,
11-
types::{L2BlockInfo, StageError},
12-
};
9+
use kona_derive::{errors::StageError, online::*};
10+
use kona_primitives::L2BlockInfo;
1311
use op_test_vectors::derivation::DerivationFixture;
1412
use reqwest::Url;
1513
use std::path::PathBuf;

bin/opdn/src/cmd/from_l2.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ use color_eyre::{
66
Result,
77
};
88
use hashbrown::HashMap;
9-
use kona_derive::{
10-
online::*,
11-
types::{L2BlockInfo, StageError},
12-
};
9+
use kona_derive::{errors::StageError, online::*};
10+
use kona_primitives::L2BlockInfo;
1311
use op_test_vectors::derivation::DerivationFixture;
1412
use reqwest::Url;
1513
use std::path::PathBuf;

bin/opdn/src/cmd/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Utilities
22
3-
use kona_derive::types::{L2ExecutionPayloadEnvelope, L2PayloadAttributes, RawTransaction};
3+
use kona_primitives::{L2ExecutionPayloadEnvelope, L2PayloadAttributes, RawTransaction};
44

55
/// Converts an [L2ExecutionPayloadEnvelope] to an [L2PayloadAttributes].
66
pub fn to_payload_attributes(payload: L2ExecutionPayloadEnvelope) -> L2PayloadAttributes {

bin/range-finder/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ alloy-eips.workspace = true
2727

2828
# OP Types + Kona
2929
kona-derive.workspace = true
30+
kona-primitives.workspace = true
3031
superchain-registry.workspace = true

bin/range-finder/src/cli.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
33
use clap::{ArgAction, Parser};
44
use color_eyre::eyre::{eyre, Result};
5-
use kona_derive::{
6-
online::*,
7-
types::{L2BlockInfo, StageError},
8-
};
5+
use kona_derive::{errors::StageError, online::*};
6+
use kona_primitives::L2BlockInfo;
97
use reqwest::Url;
108
use std::sync::Arc;
119
use superchain_registry::ROLLUP_CONFIGS;

0 commit comments

Comments
 (0)