diff --git a/Cargo.lock b/Cargo.lock index 2e1a7412ad..4bc0e2e3f2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5558,15 +5558,6 @@ dependencies = [ "log", ] -[[package]] -name = "l1-provider" -version = "0.0.0" -dependencies = [ - "papyrus_base_layer", - "starknet_api", - "thiserror", -] - [[package]] name = "lalrpop" version = "0.20.2" @@ -10301,6 +10292,15 @@ dependencies = [ "tracing", ] +[[package]] +name = "starknet_l1_provider" +version = "0.0.0" +dependencies = [ + "papyrus_base_layer", + "starknet_api", + "thiserror", +] + [[package]] name = "starknet_mempool" version = "0.0.0" diff --git a/Cargo.toml b/Cargo.toml index b13e462cd5..0682711681 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -211,6 +211,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_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/crates/l1-provider/Cargo.toml b/crates/l1-provider/Cargo.toml index 36229135e2..f9ac23e999 100644 --- a/crates/l1-provider/Cargo.toml +++ b/crates/l1-provider/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "l1-provider" +name = "starknet_l1_provider" version.workspace = true edition.workspace = true repository.workspace = true diff --git a/crates/l1-provider/src/lib.rs b/crates/l1-provider/src/lib.rs index c3d15c1d5e..10fda6bf7c 100644 --- a/crates/l1-provider/src/lib.rs +++ b/crates/l1-provider/src/lib.rs @@ -1,6 +1,7 @@ pub mod errors; -use starknet_api::transaction::{L1HandlerTransaction, TransactionHash}; +use starknet_api::executable_transaction::L1HandlerTransaction; +use starknet_api::transaction::TransactionHash; use crate::errors::L1ProviderError;