Skip to content
Merged
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
4 changes: 2 additions & 2 deletions bin/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use builder::{
service::serve_builder,
tasks::{
block::sim::Simulator, cache::CacheTasks, env::EnvTask, metrics::MetricsTask,
submit::SubmitTask,
submit::BuilderHelperTask,
},
};
use init4_bin_base::{
Expand Down Expand Up @@ -51,7 +51,7 @@ async fn main() -> eyre::Result<()> {
let (tx_channel, metrics_jh) = metrics.spawn();

// Make a Tx submission task
let submit = SubmitTask {
let submit = BuilderHelperTask {
zenith,
quincey,
config: config.clone(),
Expand Down
2 changes: 2 additions & 0 deletions src/tasks/submit/builder_helper/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mod submit;
pub use submit::{BuilderHelperTask, ControlFlow};
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,10 @@ pub enum ControlFlow {
Done,
}

/// Submits sidecars in ethereum txns to mainnet ethereum
/// Submits rollup blocks as blob sidecars in ethereum txns to
/// mainnet ethereum by crafting a `BuilderHelper` contract call.
#[derive(Debug)]
pub struct SubmitTask {
pub struct BuilderHelperTask {
/// Zenith
pub zenith: ZenithInstance,
/// Quincey
Expand All @@ -80,7 +81,7 @@ pub struct SubmitTask {
pub outbound_tx_channel: mpsc::UnboundedSender<TxHash>,
}

impl SubmitTask {
impl BuilderHelperTask {
/// Get the provider from the zenith instance
const fn provider(&self) -> &HostProvider {
self.zenith.provider()
Expand Down
4 changes: 2 additions & 2 deletions src/tasks/submit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ pub use prep::{Bumpable, SubmitPrep};
mod sim_err;
pub use sim_err::{SimErrorResp, SimRevertKind};

mod task;
pub use task::{ControlFlow, SubmitTask};
mod builder_helper;
pub use builder_helper::{BuilderHelperTask, ControlFlow};