Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ alloy = { version = "1.0.37", features = [
] }

axum = "0.7.5"
chrono = "0.4.40"
eyre = "0.6.12"
openssl = { version = "0.10", features = ["vendored"] }
reqwest = { version = "0.12.22", features = ["blocking", "json"] }
Expand Down
22 changes: 7 additions & 15 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use crate::{
quincey::Quincey,
tasks::{
block::{cfg::SignetCfgEnv, sim::SimResult},
submit::{BuilderHelperTask, FlashbotsTask},
submit::FlashbotsTask,
},
};
use alloy::{
Expand Down Expand Up @@ -188,6 +188,7 @@ pub struct BuilderConfig {
/// The slot calculator for the builder.
pub slot_calculator: SlotCalculator,

// TODO: Make this compatible with FromEnv again, somehow it broke
/// The signet system constants.
pub constants: SignetSystemConstants,
}
Expand Down Expand Up @@ -329,19 +330,10 @@ impl BuilderConfig {
&self,
tx_channel: UnboundedSender<TxHash>,
) -> eyre::Result<(UnboundedSender<SimResult>, JoinHandle<()>)> {
match &self.flashbots_endpoint {
Some(url) => {
info!(url = url.as_str(), "spawning flashbots submit task");
let submit = FlashbotsTask::new(self.clone(), tx_channel).await?;
let (submit_channel, submit_jh) = submit.spawn();
Ok((submit_channel, submit_jh))
}
None => {
info!("spawning builder helper submit task");
let submit = BuilderHelperTask::new(self.clone(), tx_channel).await?;
let (submit_channel, submit_jh) = submit.spawn();
Ok((submit_channel, submit_jh))
}
}
let url = self.flashbots_endpoint.as_ref().expect("flashbots endpoint must be configured");
info!(url = url.as_str(), "spawning flashbots submit task");
let submit = FlashbotsTask::new(self.clone(), tx_channel).await?;
let (submit_channel, submit_jh) = submit.spawn();
Ok((submit_channel, submit_jh))
}
}
319 changes: 0 additions & 319 deletions src/tasks/submit/builder_helper.rs

This file was deleted.

4 changes: 0 additions & 4 deletions src/tasks/submit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ pub use prep::{Bumpable, SubmitPrep};
mod sim_err;
pub use sim_err::{SimErrorResp, SimRevertKind};

/// Submission logic for the BundleHelper contract
pub mod builder_helper;
pub use builder_helper::{BuilderHelperTask, ControlFlow};

/// Submission logic for Flashbots
pub mod flashbots;
pub use flashbots::FlashbotsTask;
Loading