Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
matias-gonz committed Nov 15, 2024
1 parent afc6448 commit 554aeff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/guides/advanced/01_initialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use config::{
};
use xshell::Shell;

use super::args::containers::ContainersArgs;
use crate::{
commands::ecosystem::setup_observability,
messages::{
Expand All @@ -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)?;
Expand Down
3 changes: 1 addition & 2 deletions zkstack_cli/crates/zkstack/src/commands/ecosystem/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ use config::{
};
use xshell::Shell;

use super::containers::{initialize_docker, start_containers};
use crate::{
commands::{
chain::create_chain_inner,
Expand All @@ -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),
Expand Down

0 comments on commit 554aeff

Please sign in to comment.