From eedeb1376cfb358a2f7b9b632540e6bce03b3a2f Mon Sep 17 00:00:00 2001 From: Ayelet Zilber Date: Thu, 26 Dec 2024 11:21:14 +0200 Subject: [PATCH] refactor(consensus): move fee_market to concensus --- .../src/fee_market_logic}/fee_market.rs | 0 .../src/fee_market_logic}/fee_market_test.rs | 2 +- .../src/fee_market_logic/mod.rs | 1 + crates/sequencing/papyrus_consensus_orchestrator/src/lib.rs | 4 ++++ crates/starknet_batcher/src/lib.rs | 1 - 5 files changed, 6 insertions(+), 2 deletions(-) rename crates/{starknet_batcher/src => sequencing/papyrus_consensus_orchestrator/src/fee_market_logic}/fee_market.rs (100%) rename crates/{starknet_batcher/src => sequencing/papyrus_consensus_orchestrator/src/fee_market_logic}/fee_market_test.rs (98%) create mode 100644 crates/sequencing/papyrus_consensus_orchestrator/src/fee_market_logic/mod.rs diff --git a/crates/starknet_batcher/src/fee_market.rs b/crates/sequencing/papyrus_consensus_orchestrator/src/fee_market_logic/fee_market.rs similarity index 100% rename from crates/starknet_batcher/src/fee_market.rs rename to crates/sequencing/papyrus_consensus_orchestrator/src/fee_market_logic/fee_market.rs diff --git a/crates/starknet_batcher/src/fee_market_test.rs b/crates/sequencing/papyrus_consensus_orchestrator/src/fee_market_logic/fee_market_test.rs similarity index 98% rename from crates/starknet_batcher/src/fee_market_test.rs rename to crates/sequencing/papyrus_consensus_orchestrator/src/fee_market_logic/fee_market_test.rs index 88e4ecebe9..54c98de888 100644 --- a/crates/starknet_batcher/src/fee_market_test.rs +++ b/crates/sequencing/papyrus_consensus_orchestrator/src/fee_market_logic/fee_market_test.rs @@ -1,4 +1,4 @@ -use crate::fee_market::{ +use crate::fee_market_logic::fee_market::{ calculate_next_base_gas_price, GAS_PRICE_MAX_CHANGE_DENOMINATOR, MAX_BLOCK_SIZE, diff --git a/crates/sequencing/papyrus_consensus_orchestrator/src/fee_market_logic/mod.rs b/crates/sequencing/papyrus_consensus_orchestrator/src/fee_market_logic/mod.rs new file mode 100644 index 0000000000..a058c62d15 --- /dev/null +++ b/crates/sequencing/papyrus_consensus_orchestrator/src/fee_market_logic/mod.rs @@ -0,0 +1 @@ +pub mod fee_market; diff --git a/crates/sequencing/papyrus_consensus_orchestrator/src/lib.rs b/crates/sequencing/papyrus_consensus_orchestrator/src/lib.rs index 8f7eb6e36d..5e1bef4473 100644 --- a/crates/sequencing/papyrus_consensus_orchestrator/src/lib.rs +++ b/crates/sequencing/papyrus_consensus_orchestrator/src/lib.rs @@ -11,3 +11,7 @@ pub mod sequencer_consensus_context; /// Centralized and decentralized communication types and functionallity. #[allow(missing_docs)] pub mod cende; + +/// Fee market logic. +#[allow(missing_docs)] +pub mod fee_market_logic; diff --git a/crates/starknet_batcher/src/lib.rs b/crates/starknet_batcher/src/lib.rs index a17a44409c..ab7472c08c 100644 --- a/crates/starknet_batcher/src/lib.rs +++ b/crates/starknet_batcher/src/lib.rs @@ -6,7 +6,6 @@ pub mod block_builder; mod block_builder_test; pub mod communication; pub mod config; -pub mod fee_market; #[cfg(test)] mod test_utils; mod transaction_executor;