From 98101546938033019ad2270e8810655f6598129a Mon Sep 17 00:00:00 2001 From: James Date: Fri, 7 Nov 2025 14:45:51 -0500 Subject: [PATCH] v1.0.0-rc.0 --- Cargo.lock | 35 +++++++++++++++++------------------ Cargo.toml | 7 +++---- src/lib.rs | 18 ++++++++---------- 3 files changed, 28 insertions(+), 32 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 299f397..69f0df2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10618,14 +10618,13 @@ dependencies = [ [[package]] name = "signet" -version = "0.4.0" +version = "1.0.0-rc.0" dependencies = [ "eyre", "init4-bin-base", "openssl", "reqwest", "reth", - "reth-db", "reth-node-ethereum", "signet-node", "signet-node-config", @@ -10634,8 +10633,8 @@ dependencies = [ [[package]] name = "signet-blobber" -version = "0.14.1" -source = "git+https://github.com/init4tech/node-components?tag=v0.14.1#adf32747e02a693071d966215ba42aa23e4ed4b3" +version = "0.14.2" +source = "git+https://github.com/init4tech/node-components?tag=v0.14.2#cde20ff0e9bf0b58f7758319f8203c2a1c86fb7c" dependencies = [ "alloy", "foundry-blob-explorers", @@ -10656,8 +10655,8 @@ dependencies = [ [[package]] name = "signet-block-processor" -version = "0.14.1" -source = "git+https://github.com/init4tech/node-components?tag=v0.14.1#adf32747e02a693071d966215ba42aa23e4ed4b3" +version = "0.14.2" +source = "git+https://github.com/init4tech/node-components?tag=v0.14.2#cde20ff0e9bf0b58f7758319f8203c2a1c86fb7c" dependencies = [ "alloy", "eyre", @@ -10708,8 +10707,8 @@ dependencies = [ [[package]] name = "signet-db" -version = "0.14.1" -source = "git+https://github.com/init4tech/node-components?tag=v0.14.1#adf32747e02a693071d966215ba42aa23e4ed4b3" +version = "0.14.2" +source = "git+https://github.com/init4tech/node-components?tag=v0.14.2#cde20ff0e9bf0b58f7758319f8203c2a1c86fb7c" dependencies = [ "alloy", "auto_impl", @@ -10759,8 +10758,8 @@ dependencies = [ [[package]] name = "signet-genesis" -version = "0.14.1" -source = "git+https://github.com/init4tech/node-components?tag=v0.14.1#adf32747e02a693071d966215ba42aa23e4ed4b3" +version = "0.14.2" +source = "git+https://github.com/init4tech/node-components?tag=v0.14.2#cde20ff0e9bf0b58f7758319f8203c2a1c86fb7c" dependencies = [ "alloy", "init4-bin-base", @@ -10784,8 +10783,8 @@ dependencies = [ [[package]] name = "signet-node" -version = "0.14.1" -source = "git+https://github.com/init4tech/node-components?tag=v0.14.1#adf32747e02a693071d966215ba42aa23e4ed4b3" +version = "0.14.2" +source = "git+https://github.com/init4tech/node-components?tag=v0.14.2#cde20ff0e9bf0b58f7758319f8203c2a1c86fb7c" dependencies = [ "alloy", "eyre", @@ -10812,8 +10811,8 @@ dependencies = [ [[package]] name = "signet-node-config" -version = "0.14.1" -source = "git+https://github.com/init4tech/node-components?tag=v0.14.1#adf32747e02a693071d966215ba42aa23e4ed4b3" +version = "0.14.2" +source = "git+https://github.com/init4tech/node-components?tag=v0.14.2#cde20ff0e9bf0b58f7758319f8203c2a1c86fb7c" dependencies = [ "alloy", "eyre", @@ -10834,8 +10833,8 @@ dependencies = [ [[package]] name = "signet-node-types" -version = "0.14.1" -source = "git+https://github.com/init4tech/node-components?tag=v0.14.1#adf32747e02a693071d966215ba42aa23e4ed4b3" +version = "0.14.2" +source = "git+https://github.com/init4tech/node-components?tag=v0.14.2#cde20ff0e9bf0b58f7758319f8203c2a1c86fb7c" dependencies = [ "alloy", "reth", @@ -10850,8 +10849,8 @@ dependencies = [ [[package]] name = "signet-rpc" -version = "0.14.1" -source = "git+https://github.com/init4tech/node-components?tag=v0.14.1#adf32747e02a693071d966215ba42aa23e4ed4b3" +version = "0.14.2" +source = "git+https://github.com/init4tech/node-components?tag=v0.14.2#cde20ff0e9bf0b58f7758319f8203c2a1c86fb7c" dependencies = [ "ajj", "alloy", diff --git a/Cargo.toml b/Cargo.toml index f5d8ea2..6ea6c35 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "signet" -version = "0.4.0" +version = "1.0.0-rc.0" edition = "2024" rust-version = "1.88" authors = ["init4"] @@ -12,11 +12,10 @@ repository = "https://github.com/init4tech/signet-node" init4-bin-base = { version = "0.17.0", features = ["alloy"], default-features = false } # Node Components -signet-node = { git = "https://github.com/init4tech/node-components", tag = "v0.14.1" } -signet-node-config = { git = "https://github.com/init4tech/node-components", tag = "v0.14.1" } +signet-node = { git = "https://github.com/init4tech/node-components", tag = "v0.14.2" } +signet-node-config = { git = "https://github.com/init4tech/node-components", tag = "v0.14.2" } reth = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.1" } -reth-db = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.1" } reth-node-ethereum = { git = "https://github.com/paradigmxyz/reth", tag = "v1.9.1" } eyre = "0.6.12" diff --git a/src/lib.rs b/src/lib.rs index f53046d..3213cf7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,8 +10,8 @@ use openssl as _; // silences clippy warning use init4_bin_base::utils::from_env::FromEnv; -use reth::providers::{ProviderFactory, StateProviderFactory, providers::BlockchainProvider}; -use signet_node::SignetNode; +use reth::providers::ProviderFactory; +use signet_node::SignetNodeBuilder; use signet_node_config::SignetNodeConfig; use std::sync::{Arc, LazyLock}; @@ -27,8 +27,6 @@ pub fn node_from_env() -> eyre::Result<()> { /// State the Signet node, using the provided config. pub fn node(config: SignetNodeConfig) -> eyre::Result<()> { reth::cli::Cli::parse_args().run(|builder, _| async move { - let db_args = reth_db::mdbx::DatabaseArguments::default(); - let prune_config = builder.config().prune_config(); let handle = builder @@ -40,18 +38,18 @@ pub fn node(config: SignetNodeConfig) -> eyre::Result<()> { let mut factory = ProviderFactory::new_with_database_path( config.database_path(), chain_spec, - db_args, + Default::default(), config.static_file_rw()?, )?; if let Some(prune_config) = prune_config { factory = factory.with_prune_modes(prune_config.segments); } - // This allows the node to look up contract status. - let boxed_factory: Box = - Box::new(BlockchainProvider::new(factory.clone())?); - - Ok(SignetNode::new(ctx, config, factory.clone(), boxed_factory, CLIENT.clone())? + Ok(SignetNodeBuilder::new(config) + .with_factory(factory.clone()) + .with_ctx(ctx) + .with_client(CLIENT.clone()) + .build()? .0 .start()) })