Skip to content

Commit 61d16f3

Browse files
Himessdanyalprout
authored andcommitted
docs(op-rbuilder): add README and cleanup lib.rs formatting
- Add README.md with crate overview, features, and usage examples - Add standard crate-level doc attributes to lib.rs - Reorganize module declarations to match workspace style
1 parent f6651ac commit 61d16f3

File tree

3 files changed

+56
-1
lines changed

3 files changed

+56
-1
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# `op-rbuilder`
2+
3+
<a href="https://github.com/base/node-reth/actions/workflows/ci.yml"><img src="https://github.com/base/node-reth/actions/workflows/ci.yml/badge.svg?label=ci" alt="CI"></a>
4+
<a href="https://github.com/base/node-reth/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-d1d1f6.svg?label=license&labelColor=2a2f35" alt="MIT License"></a>
5+
6+
Optimism block builder for Base. Provides payload building infrastructure with support for standard block production and flashblocks, which progressively builds block chunks at sub-second intervals.
7+
8+
## Overview
9+
10+
- **`FlashblocksBuilder`**: Progressive block builder that produces block chunks at short intervals, publishing them via WebSocket before merging into full blocks.
11+
- **`StandardBuilder`**: Traditional block builder that produces complete blocks at each chain block time.
12+
- **`BuilderMode`**: Configuration enum to select between `Standard` and `Flashblocks` modes.
13+
- **`GasLimiter`**: Dynamic gas limit management based on configurable policies.
14+
- **`RevertProtection`**: RPC extension for protecting transactions from reverts.
15+
- **`TxDataStore`**: Transaction data storage and retrieval service.
16+
- **`Signer`**: Transaction signing utilities for builder operations.
17+
18+
## Binaries
19+
20+
- **`op-rbuilder`**: Main builder binary with full node capabilities.
21+
- **`tester`**: Testing utility binary (requires `testing` feature).
22+
23+
## Features
24+
25+
- `jemalloc`: Use jemalloc allocator (default).
26+
- `testing`: Enable testing utilities and framework.
27+
- `telemetry`: Enable OpenTelemetry integration.
28+
- `interop`: Enable interoperability features.
29+
- `custom-engine-api`: Enable custom engine API extensions.
30+
31+
## Usage
32+
33+
Add the dependency to your `Cargo.toml`:
34+
35+
```toml
36+
[dependencies]
37+
op-rbuilder = { git = "https://github.com/base/node-reth" }
38+
```
39+
40+
Run the builder:
41+
42+
```bash
43+
# Standard mode
44+
op-rbuilder node --builder.mode standard
45+
46+
# Flashblocks mode
47+
op-rbuilder node --builder.mode flashblocks
48+
```
49+
50+
## License
51+
52+
Licensed under the [MIT License](https://github.com/base/node-reth/blob/main/LICENSE).

crates/builder/op-rbuilder/src/lib.rs

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

37
pub mod args;
48
pub mod builders;

0 commit comments

Comments
 (0)