From 554aeffec33d20b331e89abce12594191d371c2e Mon Sep 17 00:00:00 2001 From: matias-gonz Date: Thu, 14 Nov 2024 21:18:29 -0300 Subject: [PATCH] fmt --- docs/guides/advanced/01_initialization.md | 8 ++++---- .../crates/zkstack/src/commands/ecosystem/containers.rs | 3 +-- .../crates/zkstack/src/commands/ecosystem/create.rs | 3 +-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/docs/guides/advanced/01_initialization.md b/docs/guides/advanced/01_initialization.md index f3ea2ff1997..0ab5f4e81cd 100644 --- a/docs/guides/advanced/01_initialization.md +++ b/docs/guides/advanced/01_initialization.md @@ -19,10 +19,10 @@ re-running any `zkstack` command. #### Containers -The first step to initialize a ZK Stack ecosystem is to run the command `zkstack ecosystem containers`. This command gets the -docker images for `postgres` and `reth`. If the `--observability` option is passed to the command, or the corresponding -option is selected in the interactive prompt, then Prometheus, Grafana and other observability-related images are -downloaded and run. +The first step to initialize a ZK Stack ecosystem is to run the command `zkstack ecosystem containers`. This command +gets the docker images for `postgres` and `reth`. If the `--observability` option is passed to the command, or the +corresponding option is selected in the interactive prompt, then Prometheus, Grafana and other observability-related +images are downloaded and run. Reth (one of the Ethereum clients) will be used to setup our own copy of L1 chain (that our local ZKsync would use). diff --git a/zkstack_cli/crates/zkstack/src/commands/ecosystem/containers.rs b/zkstack_cli/crates/zkstack/src/commands/ecosystem/containers.rs index 0c9478e34cd..91b10560d23 100644 --- a/zkstack_cli/crates/zkstack/src/commands/ecosystem/containers.rs +++ b/zkstack_cli/crates/zkstack/src/commands/ecosystem/containers.rs @@ -8,6 +8,7 @@ use config::{ }; use xshell::Shell; +use super::args::containers::ContainersArgs; use crate::{ commands::ecosystem::setup_observability, messages::{ @@ -17,8 +18,6 @@ use crate::{ }, }; -use super::args::containers::ContainersArgs; - pub async fn run(shell: &Shell, args: ContainersArgs) -> anyhow::Result<()> { let args = args.fill_values_with_prompt(); let ecosystem = ZkStackConfig::ecosystem(shell).context(MSG_FAILED_TO_FIND_ECOSYSTEM_ERR)?; diff --git a/zkstack_cli/crates/zkstack/src/commands/ecosystem/create.rs b/zkstack_cli/crates/zkstack/src/commands/ecosystem/create.rs index 2fb894859a0..2d358bea0a6 100644 --- a/zkstack_cli/crates/zkstack/src/commands/ecosystem/create.rs +++ b/zkstack_cli/crates/zkstack/src/commands/ecosystem/create.rs @@ -9,6 +9,7 @@ use config::{ }; use xshell::Shell; +use super::containers::{initialize_docker, start_containers}; use crate::{ commands::{ chain::create_chain_inner, @@ -28,8 +29,6 @@ use crate::{ }, }; -use super::containers::{initialize_docker, start_containers}; - pub fn run(args: EcosystemCreateArgs, shell: &Shell) -> anyhow::Result<()> { match ZkStackConfig::ecosystem(shell) { Ok(_) => bail!(MSG_ECOSYSTEM_ALREADY_EXISTS_ERR),