Skip to content

Commit 2d58a58

Browse files
committed
adds config value for builder helper contract address
1 parent f43f35b commit 2d58a58

File tree

6 files changed

+10
-3
lines changed

6 files changed

+10
-3
lines changed

src/config.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const OAUTH_CLIENT_ID: &str = "OAUTH_CLIENT_ID";
3333
const OAUTH_CLIENT_SECRET: &str = "OAUTH_CLIENT_SECRET";
3434
const OAUTH_AUTHENTICATE_URL: &str = "OAUTH_AUTHENTICATE_URL";
3535
const OAUTH_TOKEN_URL: &str = "OAUTH_TOKEN_URL";
36+
const BUILDER_HELPER_ADDRESS: &str = "0x0000000000000000000000000000000000000000";
3637

3738
/// Configuration for a builder running a specific rollup on a specific host
3839
/// chain.
@@ -50,6 +51,8 @@ pub struct BuilderConfig {
5051
pub tx_broadcast_urls: Vec<Cow<'static, str>>,
5152
/// address of the Zenith contract on Host.
5253
pub zenith_address: Address,
54+
/// address of the Builder Helper contract on Host.
55+
pub builder_helper_address: Address,
5356
/// URL for remote Quincey Sequencer server to sign blocks.
5457
/// Disregarded if a sequencer_signer is configured.
5558
pub quincey_url: Cow<'static, str>,
@@ -157,6 +160,7 @@ impl BuilderConfig {
157160
.map(Into::into)
158161
.collect(),
159162
zenith_address: load_address(ZENITH_ADDRESS)?,
163+
builder_helper_address: load_address(BUILDER_HELPER_ADDRESS)?,
160164
quincey_url: load_url(QUINCEY_URL)?,
161165
builder_port: load_u16(BUILDER_PORT)?,
162166
sequencer_key: load_string_option(SEQUENCER_KEY),

src/tasks/block.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use eyre::{bail, eyre};
1616
use std::time::{SystemTime, UNIX_EPOCH};
1717
use std::{sync::OnceLock, time::Duration};
1818
use tokio::{sync::mpsc, task::JoinHandle};
19-
use tracing::{debug, error, Instrument};
19+
use tracing::{error, Instrument};
2020
use zenith_types::{encode_txns, Alloy2718Coder, ZenithEthBundle};
2121

2222
/// Ethereum's slot time in seconds.
@@ -75,7 +75,7 @@ impl InProgressBlock {
7575
/// Ingest a bundle into the in-progress block.
7676
/// Ignores Signed Orders for now.
7777
pub fn ingest_bundle(&mut self, bundle: Bundle) {
78-
debug!(bundle = %bundle.id, "ingesting bundle");
78+
tracing::trace!(bundle = %bundle.id, "ingesting bundle");
7979

8080
let txs = bundle
8181
.bundle

src/tasks/oauth.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ mod tests {
164164
oauth_token_url: "http://localhost:9000".into(),
165165
tx_broadcast_urls: vec!["http://localhost:9000".into()],
166166
oauth_token_refresh_interval: 300, // 5 minutes
167+
builder_helper_address: Address::default(),
167168
};
168169
Ok(config)
169170
}

src/tasks/submit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl SubmitTask {
156156
let tx = self
157157
.build_blob_tx(fills, header, v, r, s, in_progress)?
158158
.with_from(self.host_provider.default_signer_address())
159-
.with_to(self.config.zenith_address)
159+
.with_to(self.config.builder_helper_address)
160160
.with_gas_limit(1_000_000);
161161

162162
if let Err(TransportError::ErrorResp(e)) =

tests/bundle_poller_test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ mod tests {
4141
oauth_token_url: "http://localhost:8080".into(),
4242
tx_broadcast_urls: vec!["http://localhost:9000".into()],
4343
oauth_token_refresh_interval: 300, // 5 minutes
44+
builder_helper_address: Address::default(),
4445
};
4546
Ok(config)
4647
}

tests/tx_poller_test.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ mod tests {
8787
oauth_authenticate_url: "http://localhost:8080".into(),
8888
oauth_token_url: "http://localhost:8080".into(),
8989
oauth_token_refresh_interval: 300, // 5 minutes
90+
builder_helper_address: Address::default(),
9091
};
9192
Ok(config)
9293
}

0 commit comments

Comments
 (0)