Skip to content

Commit 882e20c

Browse files
chore(op-alloy): Update to use op-alloy flashblock types (#458)
* Update to use op-alloy flashblock types * Rebase to resolve conflict * merge conflicts --------- Co-authored-by: Francis Li <francis.li@uniswap.org>
1 parent bec1d42 commit 882e20c

File tree

21 files changed

+62
-178
lines changed

21 files changed

+62
-178
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ resolver = "3"
44
members = [
55
"crates/rollup-boost",
66
"crates/websocket-proxy",
7-
"crates/rollup-boost-types",
87
]
98

109
[workspace.dependencies]
1110
rollup-boost = { path = "crates/rollup-boost" }
12-
rollup-boost-types = { path = "crates/rollup-boost-types" }
1311

1412
backoff = "0.4.0"
1513
clap = { version = "4", features = ["derive", "env"] }

Justfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,13 @@ build:
44

55
# Build docker image (debug)
66
build-debug:
7-
docker buildx build --build-arg RELEASE=false -t flashbots/rollup-boost:develop .
7+
docker buildx build --build-arg RELEASE=false -t flashbots/rollup-boost:develop .
8+
9+
clippy:
10+
cargo clippy --workspace -- -D warnings
11+
12+
fmt:
13+
cargo fmt --all
14+
15+
test:
16+
cargo nextest run --workspace

crates/rollup-boost-types/Cargo.toml

Lines changed: 0 additions & 17 deletions
This file was deleted.

crates/rollup-boost-types/src/flashblocks.rs

Lines changed: 0 additions & 82 deletions
This file was deleted.

crates/rollup-boost-types/src/lib.rs

Lines changed: 0 additions & 2 deletions
This file was deleted.

crates/rollup-boost/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ edition = "2024"
55
license = "MIT"
66

77
[dependencies]
8-
rollup-boost-types.workspace = true
98
tracing.workspace = true
109
tracing-subscriber.workspace = true
1110
clap.workspace = true

crates/rollup-boost/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use std::{net::SocketAddr, path::PathBuf};
44
use tokio::signal::unix::{SignalKind, signal as unix_signal};
55
use tracing::{Level, info};
66

7+
use crate::payload::PayloadSource;
78
use crate::{
89
BlockSelectionPolicy, ClientArgs, DebugServer, FlashblocksArgs, ProxyLayer, RollupBoostServer,
910
client::rpc::{BuilderArgs, L2ClientArgs},
@@ -12,7 +13,6 @@ use crate::{
1213
probe::ProbeLayer,
1314
};
1415
use crate::{FlashblocksService, RpcClient};
15-
use rollup_boost_types::payload::PayloadSource;
1616

1717
#[derive(Clone, Debug, clap::Args)]
1818
pub struct RollupBoostLibArgs {

crates/rollup-boost/src/client/http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use std::time::Duration;
22

33
use crate::client::auth::AuthLayer;
4+
use crate::payload::PayloadSource;
45
use alloy_primitives::bytes::Bytes;
56
use alloy_rpc_types_engine::JwtSecret;
67
use http::Uri;
@@ -13,7 +14,6 @@ use hyper_util::rt::TokioExecutor;
1314
use jsonrpsee::core::BoxError;
1415
use jsonrpsee::server::HttpBody;
1516
use opentelemetry::trace::SpanKind;
16-
use rollup_boost_types::payload::PayloadSource;
1717
use tower::{
1818
Service as _, ServiceBuilder, ServiceExt,
1919
timeout::{Timeout, TimeoutLayer},

crates/rollup-boost/src/client/rpc.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use crate::EngineApiExt;
22
use crate::client::auth::AuthLayer;
33
use crate::client::http::HttpClient as RollupBoostHttpClient;
4+
use crate::payload::{NewPayload, OpExecutionPayloadEnvelope, PayloadSource, PayloadVersion};
45
use crate::server::EngineApiClient;
56
use crate::version::{CARGO_PKG_VERSION, VERGEN_GIT_SHA};
67
use alloy_primitives::{B256, Bytes};
@@ -23,9 +24,6 @@ use op_alloy_rpc_types_engine::{
2324
};
2425
use opentelemetry::trace::SpanKind;
2526
use paste::paste;
26-
use rollup_boost_types::payload::{
27-
NewPayload, OpExecutionPayloadEnvelope, PayloadSource, PayloadVersion,
28-
};
2927
use std::path::PathBuf;
3028
use std::time::Duration;
3129
use thiserror::Error;
@@ -478,12 +476,12 @@ pub mod tests {
478476
use jsonrpsee::core::client::ClientT;
479477
use parking_lot::Mutex;
480478

479+
use crate::payload::PayloadSource;
481480
use alloy_rpc_types_engine::JwtSecret;
482481
use jsonrpsee::core::client::Error as ClientError;
483482
use jsonrpsee::server::{ServerBuilder, ServerHandle};
484483
use jsonrpsee::{RpcModule, rpc_params};
485484
use predicates::prelude::*;
486-
use rollup_boost_types::payload::PayloadSource;
487485
use std::collections::HashSet;
488486
use std::net::SocketAddr;
489487
use std::net::TcpListener;

0 commit comments

Comments
 (0)