From e61c7ceea1b340009af3a93f9e022b92b8f89bca Mon Sep 17 00:00:00 2001 From: giladchase Date: Tue, 12 Nov 2024 14:37:33 +0200 Subject: [PATCH] chore: rename l1{-,_}provider for consistency (#1979) Co-Authored-By: Gilad Chase --- Cargo.toml | 4 ++-- commitlint.config.js | 2 +- crates/batcher/src/transaction_provider.rs | 2 +- crates/{l1-provider => l1_provider}/Cargo.toml | 0 crates/{l1-provider => l1_provider}/src/errors.rs | 0 crates/{l1-provider => l1_provider}/src/lib.rs | 0 6 files changed, 4 insertions(+), 4 deletions(-) rename crates/{l1-provider => l1_provider}/Cargo.toml (100%) rename crates/{l1-provider => l1_provider}/src/errors.rs (100%) rename crates/{l1-provider => l1_provider}/src/lib.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index ce8698223e..b1c94d5e85 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ members = [ "crates/gateway", "crates/gateway_types", "crates/http_server", - "crates/l1-provider", + "crates/l1_provider", "crates/mempool", "crates/mempool_p2p", "crates/mempool_p2p_types", @@ -215,7 +215,7 @@ starknet_consensus_manager = { path = "crates/consensus_manager", version = "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" } -starknet_l1_provider = { path = "crates/l1-provider", version = "0.0.0" } +starknet_l1_provider = { path = "crates/l1_provider", version = "0.0.0" } starknet_mempool = { path = "crates/mempool", 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" } diff --git a/commitlint.config.js b/commitlint.config.js index abf9f24b25..04aecd36ea 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -37,7 +37,7 @@ const Configuration = { 'helm', 'infra', 'JSON-RPC', - 'l1-provider', + 'l1_provider', 'load_test', 'mempool', 'mempool_p2p', diff --git a/crates/batcher/src/transaction_provider.rs b/crates/batcher/src/transaction_provider.rs index f0472301b3..36858427ac 100644 --- a/crates/batcher/src/transaction_provider.rs +++ b/crates/batcher/src/transaction_provider.rs @@ -66,7 +66,7 @@ impl TransactionProvider for ValidateTransactionProvider { } } -// TODO: Remove L1Provider code when the communication module of l1-provider is added. +// TODO: Remove L1Provider code when the communication module of l1_provider is added. #[cfg_attr(test, automock)] #[async_trait] pub trait L1ProviderClient: Send + Sync { diff --git a/crates/l1-provider/Cargo.toml b/crates/l1_provider/Cargo.toml similarity index 100% rename from crates/l1-provider/Cargo.toml rename to crates/l1_provider/Cargo.toml diff --git a/crates/l1-provider/src/errors.rs b/crates/l1_provider/src/errors.rs similarity index 100% rename from crates/l1-provider/src/errors.rs rename to crates/l1_provider/src/errors.rs diff --git a/crates/l1-provider/src/lib.rs b/crates/l1_provider/src/lib.rs similarity index 100% rename from crates/l1-provider/src/lib.rs rename to crates/l1_provider/src/lib.rs