Skip to content

Commit c5e105d

Browse files
authored
chore(runner): Runner Touchups (#256)
* chore(runner): touchup runner crate * fix: lints
1 parent ebae794 commit c5e105d

File tree

3 files changed

+23
-9
lines changed

3 files changed

+23
-9
lines changed

crates/runner/src/extensions/mod.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
//! of the node building process.
55
66
mod canon;
7-
mod rpc;
8-
mod tracing;
9-
mod types;
10-
117
pub use canon::FlashblocksCanonExtension;
8+
9+
mod rpc;
1210
pub use rpc::BaseRpcExtension;
11+
12+
mod tracing;
1313
pub use tracing::TransactionTracingExtension;
14-
pub(crate) use types::{FlashblocksCell, OpBuilder};
14+
15+
mod types;
16+
pub use types::{FlashblocksCell, OpBuilder, OpProvider};

crates/runner/src/extensions/types.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Type aliases
2+
13
use std::sync::Arc;
24

35
use base_reth_flashblocks::FlashblocksState;
@@ -10,11 +12,16 @@ use reth::{
1012
use reth_db::DatabaseEnv;
1113
use reth_optimism_node::OpNode;
1214

13-
pub(crate) type OpProvider = BlockchainProvider<NodeTypesWithDBAdapter<OpNode, Arc<DatabaseEnv>>>;
1415
type OpNodeTypes = FullNodeTypesAdapter<OpNode, Arc<DatabaseEnv>, OpProvider>;
1516
type OpComponentsBuilder = <OpNode as Node<OpNodeTypes>>::ComponentsBuilder;
1617
type OpAddOns = <OpNode as Node<OpNodeTypes>>::AddOns;
17-
pub(crate) type OpBuilder =
18+
19+
/// A [`BlockchainProvider`] instance.
20+
pub type OpProvider = BlockchainProvider<NodeTypesWithDBAdapter<OpNode, Arc<DatabaseEnv>>>;
21+
22+
/// OP Builder is a [`WithLaunchContext`] reth node builder.
23+
pub type OpBuilder =
1824
WithLaunchContext<NodeBuilderWithComponents<OpNodeTypes, OpComponentsBuilder, OpAddOns>>;
1925

20-
pub(crate) type FlashblocksCell = Arc<OnceCell<Arc<FlashblocksState<OpProvider>>>>;
26+
/// The flashblocks cell holds the [`FlashblocksState`].
27+
pub type FlashblocksCell = Arc<OnceCell<Arc<FlashblocksState<OpProvider>>>>;

crates/runner/src/lib.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#![doc = include_str!("../README.md")]
2+
#![doc(issue_tracker_base_url = "https://github.com/base/node-reth/issues/")]
3+
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
24
#![cfg_attr(not(test), warn(unused_crate_dependencies))]
35

46
mod context;
@@ -11,4 +13,7 @@ mod config;
1113
pub use config::{BaseNodeConfig, FlashblocksConfig, TracingConfig};
1214

1315
mod extensions;
14-
pub use extensions::{BaseRpcExtension, FlashblocksCanonExtension, TransactionTracingExtension};
16+
pub use extensions::{
17+
BaseRpcExtension, FlashblocksCanonExtension, FlashblocksCell, OpBuilder, OpProvider,
18+
TransactionTracingExtension,
19+
};

0 commit comments

Comments
 (0)