Skip to content

Commit a18b444

Browse files
committed
refactors to account for init4 bin base in builder craate
1 parent 33fc80a commit a18b444

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,3 @@ tokio = { version = "1.36.0", features = ["full", "macros", "rt-multi-thread"] }
4848

4949
async-trait = "0.1.80"
5050
oauth2 = "4.4.2"
51-
metrics = "0.24.1"
52-
metrics-exporter-prometheus = "0.16.0"

src/config.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ impl ConfigError {
125125
}
126126
}
127127

128-
/// Defines a full provider
128+
/// Defines a full provider.
129129
pub type Provider = FillProvider<
130130
JoinFill<
131131
JoinFill<
@@ -138,7 +138,7 @@ pub type Provider = FillProvider<
138138
Ethereum,
139139
>;
140140

141-
/// Defines a read-only wallet
141+
/// Defines a provider type used to read-only.
142142
pub type WalletlessProvider = FillProvider<
143143
JoinFill<
144144
Identity,
@@ -149,7 +149,7 @@ pub type WalletlessProvider = FillProvider<
149149
>;
150150

151151
/// Defines a [`Zenith`] instance that is generic over [`Provider`]
152-
pub type ZenithInstance = Zenith::ZenithInstance<(), Provider, alloy::network::Ethereum>;
152+
pub type ZenithInstance<P = Provider> = Zenith::ZenithInstance<(), P, alloy::network::Ethereum>;
153153

154154
impl BuilderConfig {
155155
/// Load the builder configuration from environment variables.
@@ -226,7 +226,7 @@ impl BuilderConfig {
226226
Ok(provider)
227227
}
228228

229-
/// Connect additionally configured non-host providers to broadcast transactions to.
229+
/// Connect additional broadcast providers.
230230
pub async fn connect_additional_broadcast(
231231
&self,
232232
) -> Result<Vec<WalletlessProvider>, ConfigError> {

src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,4 @@ pub mod tasks;
2828
pub mod utils;
2929

3030
/// Anonymous crate dependency imports.
31-
use metrics as _;
32-
use metrics_exporter_prometheus as _;
3331
use openssl as _;

0 commit comments

Comments
 (0)