From d4bc1c940a87a814cb257252a8165c0aaf5c94f5 Mon Sep 17 00:00:00 2001 From: refcell Date: Thu, 15 Aug 2024 22:34:16 -0700 Subject: [PATCH] fix: opdn --- Cargo.lock | 2 +- Cargo.toml | 2 +- bin/{opd8n => opdn}/Cargo.toml | 2 +- bin/{opd8n => opdn}/README.md | 2 +- bin/{opd8n => opdn}/src/cmd/blobs.rs | 0 bin/{opd8n => opdn}/src/cmd/fixtures.rs | 0 bin/{opd8n => opdn}/src/cmd/from_l1.rs | 2 +- bin/{opd8n => opdn}/src/cmd/from_l2.rs | 2 +- bin/{opd8n => opdn}/src/cmd/info.rs | 2 +- bin/{opd8n => opdn}/src/cmd/mod.rs | 2 +- bin/{opd8n => opdn}/src/lib.rs | 0 bin/{opd8n => opdn}/src/main.rs | 2 +- 12 files changed, 9 insertions(+), 9 deletions(-) rename bin/{opd8n => opdn}/Cargo.toml (97%) rename bin/{opd8n => opdn}/README.md (83%) rename bin/{opd8n => opdn}/src/cmd/blobs.rs (100%) rename bin/{opd8n => opdn}/src/cmd/fixtures.rs (100%) rename bin/{opd8n => opdn}/src/cmd/from_l1.rs (99%) rename bin/{opd8n => opdn}/src/cmd/from_l2.rs (99%) rename bin/{opd8n => opdn}/src/cmd/info.rs (96%) rename bin/{opd8n => opdn}/src/cmd/mod.rs (99%) rename bin/{opd8n => opdn}/src/lib.rs (100%) rename bin/{opd8n => opdn}/src/main.rs (59%) diff --git a/Cargo.lock b/Cargo.lock index e5e13c0..aaba8f6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4597,7 +4597,7 @@ dependencies = [ ] [[package]] -name = "opd8n" +name = "opdn" version = "0.2.0" dependencies = [ "alloy-consensus", diff --git a/Cargo.toml b/Cargo.toml index c428455..ca3e256 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [workspace] members = ["crates/*", "bin/*"] -default-members = ["bin/opt8n", "bin/opd8n", "bin/range-finder"] +default-members = ["bin/opt8n", "bin/opdn", "bin/range-finder"] resolver = "2" [workspace.package] diff --git a/bin/opd8n/Cargo.toml b/bin/opdn/Cargo.toml similarity index 97% rename from bin/opd8n/Cargo.toml rename to bin/opdn/Cargo.toml index 094d6df..3614ebc 100644 --- a/bin/opd8n/Cargo.toml +++ b/bin/opdn/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "opd8n" +name = "opdn" version = "0.2.0" edition.workspace = true authors.workspace = true diff --git a/bin/opd8n/README.md b/bin/opdn/README.md similarity index 83% rename from bin/opd8n/README.md rename to bin/opdn/README.md index 25eb63a..5a15865 100644 --- a/bin/opd8n/README.md +++ b/bin/opdn/README.md @@ -1,3 +1,3 @@ -# `opd8n` +# `opdn` A CLI-tool for creating derivation test fixtures. diff --git a/bin/opd8n/src/cmd/blobs.rs b/bin/opdn/src/cmd/blobs.rs similarity index 100% rename from bin/opd8n/src/cmd/blobs.rs rename to bin/opdn/src/cmd/blobs.rs diff --git a/bin/opd8n/src/cmd/fixtures.rs b/bin/opdn/src/cmd/fixtures.rs similarity index 100% rename from bin/opd8n/src/cmd/fixtures.rs rename to bin/opdn/src/cmd/fixtures.rs diff --git a/bin/opd8n/src/cmd/from_l1.rs b/bin/opdn/src/cmd/from_l1.rs similarity index 99% rename from bin/opd8n/src/cmd/from_l1.rs rename to bin/opdn/src/cmd/from_l1.rs index f83bcd6..fca84fd 100644 --- a/bin/opd8n/src/cmd/from_l1.rs +++ b/bin/opdn/src/cmd/from_l1.rs @@ -20,7 +20,7 @@ use tracing::{debug, error, info, trace, warn}; /// The logging target to use for [tracing]. const TARGET: &str = "from-l1"; -/// CLI arguments for the `from-l1` subcommand of `opd8n`. +/// CLI arguments for the `from-l1` subcommand of `opdn`. #[derive(Parser, Clone, Debug)] pub struct FromL1 { /// The L1 block number to start from diff --git a/bin/opd8n/src/cmd/from_l2.rs b/bin/opdn/src/cmd/from_l2.rs similarity index 99% rename from bin/opd8n/src/cmd/from_l2.rs rename to bin/opdn/src/cmd/from_l2.rs index d978541..60e0d8a 100644 --- a/bin/opd8n/src/cmd/from_l2.rs +++ b/bin/opdn/src/cmd/from_l2.rs @@ -20,7 +20,7 @@ use tracing::{debug, error, info, trace, warn}; /// The logging target to use for [tracing]. const TARGET: &str = "from-l2"; -/// CLI arguments for the `from-l2` subcommand of `opd8n`. +/// CLI arguments for the `from-l2` subcommand of `opdn`. #[derive(Parser, Clone, Debug)] pub struct FromL2 { /// The L2 block number to start from diff --git a/bin/opd8n/src/cmd/info.rs b/bin/opdn/src/cmd/info.rs similarity index 96% rename from bin/opd8n/src/cmd/info.rs rename to bin/opdn/src/cmd/info.rs index 408c571..49fe8f2 100644 --- a/bin/opd8n/src/cmd/info.rs +++ b/bin/opdn/src/cmd/info.rs @@ -8,7 +8,7 @@ use reqwest::Url; use std::sync::Arc; use superchain_registry::ROLLUP_CONFIGS; -/// CLI arguments for the `info` subcommand of `opd8n`. +/// CLI arguments for the `info` subcommand of `opdn`. #[derive(Parser, Clone, Debug)] pub struct Info { /// The L2 Chain ID diff --git a/bin/opd8n/src/cmd/mod.rs b/bin/opdn/src/cmd/mod.rs similarity index 99% rename from bin/opd8n/src/cmd/mod.rs rename to bin/opdn/src/cmd/mod.rs index 462f886..eca46db 100644 --- a/bin/opd8n/src/cmd/mod.rs +++ b/bin/opdn/src/cmd/mod.rs @@ -11,7 +11,7 @@ pub mod from_l2; pub mod info; pub use fixtures::build_fixture_blocks; -/// Main opd8n CLI +/// Main CLI #[derive(Parser, Clone, Debug)] #[command(author, version, about, long_about = None)] pub struct Cli { diff --git a/bin/opd8n/src/lib.rs b/bin/opdn/src/lib.rs similarity index 100% rename from bin/opd8n/src/lib.rs rename to bin/opdn/src/lib.rs diff --git a/bin/opd8n/src/main.rs b/bin/opdn/src/main.rs similarity index 59% rename from bin/opd8n/src/main.rs rename to bin/opdn/src/main.rs index 54cbf45..1b5924f 100644 --- a/bin/opd8n/src/main.rs +++ b/bin/opdn/src/main.rs @@ -2,5 +2,5 @@ use clap::Parser; #[tokio::main] async fn main() -> color_eyre::Result<()> { - opd8n::Cli::parse().init_telemetry()?.run().await + opdn::Cli::parse().init_telemetry()?.run().await }