Skip to content

Commit

Permalink
refactor(consensus): rename papyrus_consensus_orchestrator package to…
Browse files Browse the repository at this point in the history
… starknet_
  • Loading branch information
asmaastarkware committed Jan 15, 2025
1 parent 31b374f commit 8d27996
Show file tree
Hide file tree
Showing 28 changed files with 50 additions and 50 deletions.
76 changes: 38 additions & 38 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ members = [
"crates/papyrus_base_layer",
"crates/papyrus_common",
"crates/papyrus_config",
"crates/papyrus_consensus_orchestrator",
"crates/papyrus_execution",
"crates/papyrus_load_test",
"crates/papyrus_monitoring_gateway",
Expand All @@ -35,6 +34,7 @@ members = [
"crates/starknet_committer",
"crates/starknet_consensus",
"crates/starknet_consensus_manager",
"crates/starknet_consensus_orchestrator",
"crates/starknet_gateway",
"crates/starknet_gateway_types",
"crates/starknet_http_server",
Expand Down Expand Up @@ -166,7 +166,6 @@ page_size = "0.6.0"
papyrus_base_layer = { path = "crates/papyrus_base_layer", version = "0.0.0" }
papyrus_common = { path = "crates/papyrus_common", version = "0.0.0" }
papyrus_config = { path = "crates/papyrus_config", version = "0.0.0" }
papyrus_consensus_orchestrator = { path = "crates/papyrus_consensus_orchestrator", version = "0.0.0" }
papyrus_execution = { path = "crates/papyrus_execution", version = "0.0.0" }
papyrus_monitoring_gateway = { path = "crates/papyrus_monitoring_gateway", version = "0.0.0" }
papyrus_network = { path = "crates/papyrus_network", version = "0.0.0" }
Expand Down Expand Up @@ -225,6 +224,7 @@ starknet_client = { path = "crates/starknet_client", version = "0.0.0" }
starknet_committer = { path = "crates/starknet_committer", version = "0.0.0" }
starknet_consensus = { path = "crates/starknet_consensus", version = "0.0.0" }
starknet_consensus_manager = { path = "crates/starknet_consensus_manager", version = "0.0.0" }
starknet_consensus_orchestrator = { path = "crates/starknet_consensus_orchestrator", version = "0.0.0" }
starknet_gateway = { path = "crates/starknet_gateway", version = "0.0.0" }
starknet_gateway_types = { path = "crates/starknet_gateway_types", version = "0.0.0" }
starknet_http_server = { path = "crates/starknet_http_server", version = "0.0.0" }
Expand Down
2 changes: 1 addition & 1 deletion crates/papyrus_node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ once_cell.workspace = true
papyrus_base_layer.workspace = true
papyrus_common.workspace = true
papyrus_config.workspace = true
papyrus_consensus_orchestrator.workspace = true
papyrus_monitoring_gateway.workspace = true
papyrus_network.workspace = true
papyrus_p2p_sync.workspace = true
Expand All @@ -45,6 +44,7 @@ serde_json = { workspace = true, features = ["arbitrary_precision"] }
starknet_api = { workspace = true, features = ["testing"] }
starknet_client.workspace = true
starknet_consensus.workspace = true
starknet_consensus_orchestrator.workspace = true
strum.workspace = true
tokio = { workspace = true, features = ["full", "sync"] }
tracing.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/papyrus_node/src/bin/run_consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use clap::Parser;
use futures::stream::StreamExt;
use papyrus_consensus_orchestrator::papyrus_consensus_context::PapyrusConsensusContext;
use papyrus_network::gossipsub_impl::Topic;
use papyrus_network::network_manager::{BroadcastTopicChannels, NetworkManager};
use papyrus_node::bin_utils::build_configs;
Expand All @@ -20,6 +19,7 @@ use starknet_consensus::config::ConsensusConfig;
use starknet_consensus::simulation_network_receiver::NetworkReceiver;
use starknet_consensus::stream_handler::StreamHandler;
use starknet_consensus::types::BroadcastVoteChannel;
use starknet_consensus_orchestrator::papyrus_consensus_context::PapyrusConsensusContext;
use tokio::task::JoinHandle;

/// Test configuration for consensus.
Expand Down
2 changes: 1 addition & 1 deletion crates/papyrus_node/src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ use papyrus_common::metrics::COLLECT_PROFILING_METRICS;
use papyrus_common::pending_classes::PendingClasses;
use papyrus_config::presentation::get_config_presentation;
use papyrus_config::validators::config_validate;
use papyrus_consensus_orchestrator::papyrus_consensus_context::PapyrusConsensusContext;
use papyrus_monitoring_gateway::MonitoringServer;
use papyrus_network::gossipsub_impl::Topic;
use papyrus_network::network_manager::{BroadcastTopicChannels, NetworkManager};
Expand All @@ -36,6 +35,7 @@ use starknet_client::reader::objects::pending_data::{PendingBlock, PendingBlockO
use starknet_client::reader::PendingData;
use starknet_consensus::config::ConsensusConfig;
use starknet_consensus::stream_handler::StreamHandler;
use starknet_consensus_orchestrator::papyrus_consensus_context::PapyrusConsensusContext;
use tokio::sync::RwLock;
use tokio::task::JoinHandle;
use tracing::metadata::LevelFilter;
Expand Down
2 changes: 1 addition & 1 deletion crates/starknet_consensus_manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ workspace = true
[dependencies]
async-trait.workspace = true
papyrus_config.workspace = true
papyrus_consensus_orchestrator.workspace = true
papyrus_network.workspace = true
papyrus_protobuf.workspace = true
serde.workspace = true
starknet_api.workspace = true
starknet_batcher_types.workspace = true
starknet_consensus.workspace = true
starknet_consensus_orchestrator.workspace = true
starknet_infra_utils.workspace = true
starknet_sequencer_infra.workspace = true
starknet_state_sync_types.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/starknet_consensus_manager/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ use std::collections::BTreeMap;

use papyrus_config::dumping::{append_sub_config_name, SerializeConfig};
use papyrus_config::{ParamPath, SerializedParam};
use papyrus_consensus_orchestrator::cende::CendeConfig;
use serde::{Deserialize, Serialize};
use starknet_consensus::config::ConsensusConfig;
use starknet_consensus_orchestrator::cende::CendeConfig;
use validator::Validate;

/// The consensus manager related configuration.
Expand Down
4 changes: 2 additions & 2 deletions crates/starknet_consensus_manager/src/consensus_manager.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
use std::sync::Arc;

use async_trait::async_trait;
use papyrus_consensus_orchestrator::cende::CendeAmbassador;
use papyrus_consensus_orchestrator::sequencer_consensus_context::SequencerConsensusContext;
use papyrus_network::gossipsub_impl::Topic;
use papyrus_network::network_manager::{BroadcastTopicChannels, NetworkManager};
use papyrus_protobuf::consensus::{HeightAndRound, ProposalPart, StreamMessage, Vote};
use starknet_api::block::BlockNumber;
use starknet_batcher_types::communication::SharedBatcherClient;
use starknet_consensus::stream_handler::StreamHandler;
use starknet_consensus::types::ConsensusError;
use starknet_consensus_orchestrator::cende::CendeAmbassador;
use starknet_consensus_orchestrator::sequencer_consensus_context::SequencerConsensusContext;
use starknet_infra_utils::type_name::short_type_name;
use starknet_sequencer_infra::component_definitions::ComponentStarter;
use starknet_sequencer_infra::errors::ComponentError;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "papyrus_consensus_orchestrator"
name = "starknet_consensus_orchestrator"
version.workspace = true
edition.workspace = true
repository.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/starknet_integration_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ itertools.workspace = true
mempool_test_utils.workspace = true
papyrus_common.workspace = true
papyrus_config.workspace = true
papyrus_consensus_orchestrator.workspace = true
papyrus_execution.workspace = true
papyrus_network = { workspace = true, features = ["testing"] }
papyrus_protobuf.workspace = true
Expand All @@ -32,6 +31,7 @@ starknet_batcher.workspace = true
starknet_client.workspace = true
starknet_consensus.workspace = true
starknet_consensus_manager.workspace = true
starknet_consensus_orchestrator.workspace = true
starknet_gateway = { workspace = true, features = ["testing"] }
starknet_gateway_types.workspace = true
starknet_http_server = { workspace = true, features = ["testing"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/starknet_integration_tests/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use mempool_test_utils::starknet_api_test_utils::{
Contract,
MultiAccountTransactionGenerator,
};
use papyrus_consensus_orchestrator::cende::RECORDER_WRITE_BLOB_PATH;
use papyrus_network::network_manager::test_utils::create_connected_network_configs;
use papyrus_network::NetworkConfig;
use papyrus_storage::StorageConfig;
Expand All @@ -28,6 +27,7 @@ use starknet_batcher::config::BatcherConfig;
use starknet_consensus::config::{ConsensusConfig, TimeoutsConfig};
use starknet_consensus::types::ValidatorId;
use starknet_consensus_manager::config::ConsensusManagerConfig;
use starknet_consensus_orchestrator::cende::RECORDER_WRITE_BLOB_PATH;
use starknet_gateway::config::{
GatewayConfig,
StatefulTransactionValidatorConfig,
Expand Down

0 comments on commit 8d27996

Please sign in to comment.