Skip to content

Commit

Permalink
chore: remove consensus manager types
Browse files Browse the repository at this point in the history
commit-id:1c594540
  • Loading branch information
Itay-Tsabary-Starkware committed Oct 15, 2024
1 parent cbb215d commit 9434fe2
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 64 deletions.
12 changes: 1 addition & 11 deletions 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ members = [
"crates/blockifier_reexecution",
"crates/committer_cli",
"crates/consensus_manager",
"crates/consensus_manager_types",
"crates/gateway",
"crates/gateway_types",
"crates/http_server",
Expand Down Expand Up @@ -210,7 +209,6 @@ starknet_batcher_types = { path = "crates/batcher_types", version = "0.0.0" }
starknet_client = { path = "crates/starknet_client", version = "0.0.0" }
starknet_committer = { path = "crates/starknet_committer", version = "0.0.0" }
starknet_consensus_manager = { path = "crates/consensus_manager", version = "0.0.0" }
starknet_consensus_manager_types = { path = "crates/consensus_manager_types", version = "0.0.0" }
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" }
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 @@ -13,10 +13,10 @@ workspace = true
async-trait.workspace = true
blockifier.workspace = true
chrono = { workspace = true, features = ["serde"] }
derive_more.workspace = true
mockall.workspace = true
papyrus_proc_macros.workspace = true
serde = { workspace = true, features = ["derive"] }
starknet_api.workspace = true
starknet_consensus_manager_types.workspace = true
starknet_mempool_infra.workspace = true
thiserror.workspace = true
21 changes: 20 additions & 1 deletion crates/batcher_types/src/batcher_types.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,32 @@
use std::fmt::Debug;

use blockifier::blockifier::block::BlockNumberHashPair;
use chrono::prelude::*;
use derive_more::Display;
use serde::{Deserialize, Serialize};
use starknet_api::block::BlockNumber;
use starknet_api::core::StateDiffCommitment;
use starknet_api::executable_transaction::Transaction;
pub use starknet_consensus_manager_types::consensus_manager_types::ProposalId;

use crate::errors::BatcherError;

// TODO (Matan) decide on the id structure
#[derive(
Copy,
Clone,
Debug,
Serialize,
Deserialize,
PartialEq,
Eq,
PartialOrd,
Ord,
Default,
Display,
Hash,
)]
pub struct ProposalId(pub u64);

#[derive(Clone, Debug, Copy, Default, Eq, PartialEq, Serialize, Deserialize)]
pub struct ProposalCommitment {
pub state_diff_commitment: StateDiffCommitment,
Expand Down
15 changes: 0 additions & 15 deletions crates/consensus_manager_types/Cargo.toml

This file was deleted.

21 changes: 0 additions & 21 deletions crates/consensus_manager_types/src/consensus_manager_types.rs

This file was deleted.

9 changes: 0 additions & 9 deletions crates/consensus_manager_types/src/errors.rs

This file was deleted.

2 changes: 0 additions & 2 deletions crates/consensus_manager_types/src/lib.rs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ papyrus_storage.workspace = true
starknet-types-core.workspace = true
starknet_api.workspace = true
starknet_batcher_types.workspace = true
starknet_consensus_manager_types.workspace = true
tokio = { workspace = true, features = ["full"] }
tracing.workspace = true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ use starknet_batcher_types::batcher_types::{
DecisionReachedInput,
GetProposalContent,
GetProposalContentInput,
ProposalId,
ProposalStatus,
SendProposalContent,
SendProposalContentInput,
StartHeightInput,
ValidateProposalInput,
};
use starknet_batcher_types::communication::BatcherClient;
use starknet_consensus_manager_types::consensus_manager_types::ProposalId;
use tracing::{debug, debug_span, error, info, warn, Instrument};

// {height: {proposal_id: (content, [proposal_ids])}}
Expand Down

0 comments on commit 9434fe2

Please sign in to comment.