Skip to content

Commit

Permalink
chore(sequencer_infra): rename sequencer infra package
Browse files Browse the repository at this point in the history
commit-id:afb5835e
  • Loading branch information
Itay-Tsabary-Starkware committed Oct 22, 2024
1 parent 8298fd3 commit 3b5e793
Show file tree
Hide file tree
Showing 50 changed files with 104 additions and 104 deletions.
66 changes: 33 additions & 33 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,13 @@ starknet_gateway = { path = "crates/gateway", version = "0.0.0" }
starknet_gateway_types = { path = "crates/gateway_types", version = "0.0.0" }
starknet_http_server = { path = "crates/http_server", version = "0.0.0" }
starknet_mempool = { path = "crates/mempool", version = "0.0.0" }
starknet_mempool_infra = { path = "crates/mempool_infra", version = "0.0.0" }
starknet_mempool_node = { path = "crates/mempool_node", version = "0.0.0" }
starknet_mempool_p2p = { path = "crates/mempool_p2p", version = "0.0.0" }
starknet_mempool_p2p_types = { path = "crates/mempool_p2p_types", version = "0.0.0" }
starknet_mempool_types = { path = "crates/mempool_types", version = "0.0.0" }
starknet_monitoring_endpoint = { path = "crates/monitoring_endpoint", version = "0.0.0" }
starknet_patricia = { path = "crates/starknet_patricia", version = "0.0.0" }
starknet_sequencer_infra = { path = "crates/mempool_infra", version = "0.0.0" }
starknet_sierra_compile = { path = "crates/starknet_sierra_compile", version = "0.0.0" }
starknet_task_executor = { path = "crates/task_executor", version = "0.0.0" }
static_assertions = "1.1.0"
Expand Down
2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ const Configuration = {
'l1-provider',
'load_test',
'mempool',
'mempool_infra',
'mempool_node',
'mempool_p2p',
'mempool_p2p_types',
Expand All @@ -52,6 +51,7 @@ const Configuration = {
'node',
'protobuf',
'release',
'sequencer_infra',
'skeleton',
'starknet_api',
'starknet_client',
Expand Down
2 changes: 1 addition & 1 deletion crates/batcher/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ serde.workspace = true
starknet-types-core.workspace = true
starknet_api.workspace = true
starknet_batcher_types.workspace = true
starknet_mempool_infra.workspace = true
starknet_mempool_types.workspace = true
starknet_sequencer_infra.workspace = true
thiserror.workspace = true
tokio.workspace = true
tokio-stream.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/batcher/src/batcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ use starknet_batcher_types::batcher_types::{
StartHeightInput,
};
use starknet_batcher_types::errors::BatcherError;
use starknet_mempool_infra::component_definitions::ComponentStarter;
use starknet_mempool_types::communication::SharedMempoolClient;
use starknet_mempool_types::mempool_types::CommitBlockArgs;
use starknet_sequencer_infra::component_definitions::ComponentStarter;
use tracing::{debug, error, info, instrument, trace};

use crate::block_builder::BlockBuilderFactory;
Expand Down
4 changes: 2 additions & 2 deletions crates/batcher/src/communication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use starknet_batcher_types::communication::{
BatcherRequestAndResponseSender,
BatcherResponse,
};
use starknet_mempool_infra::component_definitions::ComponentRequestHandler;
use starknet_mempool_infra::component_server::LocalComponentServer;
use starknet_sequencer_infra::component_definitions::ComponentRequestHandler;
use starknet_sequencer_infra::component_server::LocalComponentServer;
use tokio::sync::mpsc::Receiver;

use crate::batcher::Batcher;
Expand Down
2 changes: 1 addition & 1 deletion crates/batcher_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ mockall.workspace = true
papyrus_proc_macros.workspace = true
serde = { workspace = true, features = ["derive"] }
starknet_api.workspace = true
starknet_mempool_infra.workspace = true
starknet_sequencer_infra.workspace = true
thiserror.workspace = true
4 changes: 2 additions & 2 deletions crates/batcher_types/src/communication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ use mockall::predicate::*;
use mockall::*;
use papyrus_proc_macros::handle_response_variants;
use serde::{Deserialize, Serialize};
use starknet_mempool_infra::component_client::{
use starknet_sequencer_infra::component_client::{
ClientError,
LocalComponentClient,
RemoteComponentClient,
};
use starknet_mempool_infra::component_definitions::ComponentRequestAndResponseSender;
use starknet_sequencer_infra::component_definitions::ComponentRequestAndResponseSender;
use thiserror::Error;

use crate::batcher_types::{
Expand Down
2 changes: 1 addition & 1 deletion crates/consensus_manager/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ papyrus_network_types.workspace = true
papyrus_protobuf.workspace = true
serde.workspace = true
starknet_batcher_types.workspace = true
starknet_mempool_infra.workspace = true
starknet_sequencer_infra.workspace = true
tracing.workspace = true
validator.workspace = true
2 changes: 1 addition & 1 deletion crates/consensus_manager/src/communication.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use starknet_mempool_infra::component_server::WrapperServer;
use starknet_sequencer_infra::component_server::WrapperServer;

use crate::consensus_manager::ConsensusManager;

Expand Down
4 changes: 2 additions & 2 deletions crates/consensus_manager/src/consensus_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ use papyrus_network::network_manager::BroadcastTopicClient;
use papyrus_network_types::network_types::BroadcastedMessageMetadata;
use papyrus_protobuf::consensus::ConsensusMessage;
use starknet_batcher_types::communication::SharedBatcherClient;
use starknet_mempool_infra::component_definitions::ComponentStarter;
use starknet_mempool_infra::errors::ComponentError;
use starknet_sequencer_infra::component_definitions::ComponentStarter;
use starknet_sequencer_infra::errors::ComponentError;
use tracing::{error, info};

use crate::config::ConsensusManagerConfig;
Expand Down
2 changes: 1 addition & 1 deletion crates/gateway/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ serde_json.workspace = true
starknet-types-core.workspace = true
starknet_api.workspace = true
starknet_gateway_types.workspace = true
starknet_mempool_infra.workspace = true
starknet_mempool_types.workspace = true
starknet_sequencer_infra.workspace = true
starknet_sierra_compile.workspace = true
thiserror.workspace = true
tokio.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions crates/gateway/src/communication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use starknet_gateway_types::communication::{
GatewayResponse,
};
use starknet_gateway_types::errors::GatewayError;
use starknet_mempool_infra::component_definitions::ComponentRequestHandler;
use starknet_mempool_infra::component_server::LocalComponentServer;
use starknet_sequencer_infra::component_definitions::ComponentRequestHandler;
use starknet_sequencer_infra::component_server::LocalComponentServer;
use tokio::sync::mpsc::Receiver;
use tracing::instrument;

Expand Down
2 changes: 1 addition & 1 deletion crates/gateway/src/gateway.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ use starknet_api::executable_transaction::Transaction;
use starknet_api::rpc_transaction::RpcTransaction;
use starknet_api::transaction::TransactionHash;
use starknet_gateway_types::errors::GatewaySpecError;
use starknet_mempool_infra::component_definitions::ComponentStarter;
use starknet_mempool_types::communication::{AddTransactionArgsWrapper, SharedMempoolClient};
use starknet_mempool_types::mempool_types::{AccountState, AddTransactionArgs};
use starknet_sequencer_infra::component_definitions::ComponentStarter;
use starknet_sierra_compile::config::SierraToCasmCompilationConfig;
use tracing::{error, instrument};

Expand Down
2 changes: 1 addition & 1 deletion crates/gateway_types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ papyrus_rpc.workspace = true
serde = { workspace = true, features = ["derive"] }
serde_json.workspace = true
starknet_api.workspace = true
starknet_mempool_infra.workspace = true
starknet_sequencer_infra.workspace = true
thiserror.workspace = true
tracing.workspace = true
4 changes: 2 additions & 2 deletions crates/gateway_types/src/communication.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ use mockall::predicate::*;
use mockall::*;
use serde::{Deserialize, Serialize};
use starknet_api::transaction::TransactionHash;
use starknet_mempool_infra::component_client::{
use starknet_sequencer_infra::component_client::{
ClientError,
LocalComponentClient,
RemoteComponentClient,
};
use starknet_mempool_infra::component_definitions::ComponentRequestAndResponseSender;
use starknet_sequencer_infra::component_definitions::ComponentRequestAndResponseSender;
use thiserror::Error;

use crate::errors::GatewayError;
Expand Down
2 changes: 1 addition & 1 deletion crates/http_server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ papyrus_config.workspace = true
serde.workspace = true
starknet_api.workspace = true
starknet_gateway_types.workspace = true
starknet_mempool_infra.workspace = true
starknet_sequencer_infra.workspace = true
thiserror.workspace = true
tracing.workspace = true
validator.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/http_server/src/communication.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use starknet_mempool_infra::component_server::{create_empty_server, WrapperServer};
use starknet_sequencer_infra::component_server::{create_empty_server, WrapperServer};

use crate::http_server::HttpServer as HttpServerComponent;

Expand Down
4 changes: 2 additions & 2 deletions crates/http_server/src/http_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ use starknet_api::transaction::TransactionHash;
use starknet_gateway_types::communication::SharedGatewayClient;
use starknet_gateway_types::errors::GatewaySpecError;
use starknet_gateway_types::gateway_types::GatewayInput;
use starknet_mempool_infra::component_definitions::ComponentStarter;
use starknet_mempool_infra::errors::ComponentError;
use starknet_sequencer_infra::component_definitions::ComponentStarter;
use starknet_sequencer_infra::errors::ComponentError;
use tracing::{error, info, instrument};

use crate::config::HttpServerConfig;
Expand Down
2 changes: 1 addition & 1 deletion crates/mempool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ papyrus_network_types.workspace = true
pretty_assertions = { workspace = true, optional = true }
starknet-types-core = { workspace = true, optional = true }
starknet_api.workspace = true
starknet_mempool_infra.workspace = true
starknet_sequencer_infra.workspace = true
starknet_mempool_p2p_types.workspace = true
starknet_mempool_types.workspace = true
tokio.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions crates/mempool/src/communication.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use async_trait::async_trait;
use papyrus_network_types::network_types::BroadcastedMessageMetadata;
use starknet_api::executable_transaction::Transaction;
use starknet_mempool_infra::component_definitions::{ComponentRequestHandler, ComponentStarter};
use starknet_mempool_infra::component_server::LocalComponentServer;
use starknet_mempool_p2p_types::communication::SharedMempoolP2pPropagatorClient;
use starknet_mempool_types::communication::{
AddTransactionArgsWrapper,
Expand All @@ -12,6 +10,8 @@ use starknet_mempool_types::communication::{
};
use starknet_mempool_types::errors::MempoolError;
use starknet_mempool_types::mempool_types::{CommitBlockArgs, MempoolResult};
use starknet_sequencer_infra::component_definitions::{ComponentRequestHandler, ComponentStarter};
use starknet_sequencer_infra::component_server::LocalComponentServer;
use tokio::sync::mpsc::Receiver;

use crate::mempool::Mempool;
Expand Down
Loading

0 comments on commit 3b5e793

Please sign in to comment.