Skip to content

Commit

Permalink
feat(claimer): remove broker and redis
Browse files Browse the repository at this point in the history
  • Loading branch information
GMKrieger committed Jul 2, 2024
1 parent e241669 commit a893989
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 945 deletions.
88 changes: 0 additions & 88 deletions cmd/authority-claimer/Cargo.lock

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

2 changes: 0 additions & 2 deletions cmd/authority-claimer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ test = false
[dependencies]
async-trait = "0.1"
axum = "0.7"
backoff = {version = "0.4", features = ["tokio"]}
base64 = "0.22"
clap = {version = "4.5", features = ["string", "derive", "env"]}
ethers = "1.0"
Expand All @@ -23,7 +22,6 @@ eth-state-fold-types = {version = "0.9", features = ["ethers"]}
eth-tx-manager = "0.10"
hex = "0.4"
prometheus-client = "0.22"
redis = {version = "0.25", features = ["streams", "tokio-comp", "connection-manager", "tls-native-tls", "tokio-native-tls-comp", "cluster", "cluster-async"]}
reqwest = "=0.11.24" # Set specific reqwest version to fix the build
rusoto_core = "0.48"
rusoto_kms = "0.48"
Expand Down
9 changes: 1 addition & 8 deletions cmd/authority-claimer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use crate::{
log::{LogConfig, LogEnvCliConfig},
redacted::Redacted,
rollups_events::{Address, BrokerCLIConfig, BrokerConfig, HexArrayError},
rollups_events::{Address, HexArrayError},
};
use clap::{command, Parser};
use eth_tx_manager::{
Expand Down Expand Up @@ -48,7 +48,6 @@ pub struct Config {
pub tx_manager_config: TxManagerConfig,
pub tx_signing_config: TxSigningConfig,
pub tx_manager_priority: Priority,
pub broker_config: BrokerConfig,
pub log_config: LogConfig,
pub iconsensus_address: Address,
pub genesis_block: u64,
Expand Down Expand Up @@ -83,8 +82,6 @@ impl Config {
let tx_signing_config =
TxSigningConfig::try_from(cli_config.tx_signing_config)?;

let broker_config = BrokerConfig::from(cli_config.broker_config);

let log_config = LogConfig::initialize(cli_config.log_config);

let iconsensus_address = cli_config
Expand All @@ -96,7 +93,6 @@ impl Config {
tx_manager_config,
tx_signing_config,
tx_manager_priority: Priority::Normal,
broker_config,
log_config,
iconsensus_address,
genesis_block: cli_config.genesis_block,
Expand All @@ -115,9 +111,6 @@ struct AuthorityClaimerCLI {
#[command(flatten)]
pub tx_signing_config: TxSigningCLIConfig,

#[command(flatten)]
pub broker_config: BrokerCLIConfig,

#[command(flatten)]
pub log_config: LogEnvCliConfig,

Expand Down
4 changes: 0 additions & 4 deletions cmd/authority-claimer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ mod claimer;
mod config;
mod contracts;
mod http_server;
mod listener;
pub mod log;
mod metrics;
mod redacted;
Expand All @@ -16,9 +15,6 @@ mod sender;
mod signer;
mod types;

#[cfg(test)]
mod test_fixtures;

use checker::DefaultDuplicateChecker;
use claimer::{Claimer, DefaultClaimer};
pub use config::Config;
Expand Down
Loading

0 comments on commit a893989

Please sign in to comment.