Skip to content

Commit

Permalink
rename to prover-version
Browse files Browse the repository at this point in the history
  • Loading branch information
Artemka374 committed Aug 22, 2024
1 parent ecedbe3 commit eae9818
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion prover/docs/05_proving_batch.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ After you have the data, you need to prepare the system to run the batch. So, da
the protocol version it should use. You can do that with running

```shell
zk_inception prover protocol-version
zk_supervisor prover-version
```

Example output:
Expand Down
6 changes: 3 additions & 3 deletions zk_toolbox/crates/zk_supervisor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This document contains the help content for the `zk_supervisor` command-line pro
**Command Overview:**

- [`zk_supervisor`](#zk_supervisor)
- [`zk_supervisor protocol-version`](#zk_supervisor-protocol-version)
- [`zk_supervisor prover-version`](#zk_supervisor-prover-version)
- [`zk_supervisor database`](#zk_supervisor-database)
- [`zk_supervisor database check-sqlx-data`](#zk_supervisor-database-check-sqlx-data)
- [`zk_supervisor database drop`](#zk_supervisor-database-drop)
Expand Down Expand Up @@ -45,11 +45,11 @@ ZK Toolbox is a set of tools for working with zk stack.
- `--chain <CHAIN>` — Chain to use
- `--ignore-prerequisites` — Ignores prerequisites checks

## `zk_supervisor protocol-version`
## `zk_supervisor prover-version`

Gets information about current protocol version of provers in `zksync-era` and snark wrapper hash.

**Usage:** `zk_supervisor protocol-version`
**Usage:** `zk_supervisor prover-version`

## `zk_supervisor database`

Expand Down
2 changes: 1 addition & 1 deletion zk_toolbox/crates/zk_supervisor/src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ pub mod database;
pub mod fmt;
pub mod lint;
pub(crate) mod lint_utils;
pub mod protocol_version;
pub mod prover_version;
pub mod snapshot;
pub mod test;
8 changes: 4 additions & 4 deletions zk_toolbox/crates/zk_supervisor/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use common::{
};
use config::EcosystemConfig;
use messages::{
msg_global_chain_does_not_exist, MSG_PROTOCOL_VERSION_ABOUT, MSG_SUBCOMMAND_CLEAN,
msg_global_chain_does_not_exist, MSG_PROVER_VERSION_ABOUT, MSG_SUBCOMMAND_CLEAN,
MSG_SUBCOMMAND_DATABASE_ABOUT, MSG_SUBCOMMAND_FMT_ABOUT, MSG_SUBCOMMAND_LINT_ABOUT,
MSG_SUBCOMMAND_SNAPSHOTS_CREATOR_ABOUT, MSG_SUBCOMMAND_TESTS_ABOUT,
};
Expand Down Expand Up @@ -47,8 +47,8 @@ enum SupervisorSubcommands {
Fmt(FmtArgs),
#[command(hide = true)]
Markdown,
#[command(about = MSG_PROTOCOL_VERSION_ABOUT)]
ProtocolVersion,
#[command(about = MSG_PROVER_VERSION_ABOUT)]
ProverVersion,
}

#[derive(Parser, Debug)]
Expand Down Expand Up @@ -105,7 +105,7 @@ async fn run_subcommand(args: Supervisor, shell: &Shell) -> anyhow::Result<()> {
}
SupervisorSubcommands::Lint(args) => commands::lint::run(shell, args)?,
SupervisorSubcommands::Fmt(args) => commands::fmt::run(shell.clone(), args).await?,
SupervisorSubcommands::ProtocolVersion => commands::protocol_version::run(shell).await?,
SupervisorSubcommands::ProverVersion => commands::prover_version::run(shell).await?,
}
Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion zk_toolbox/crates/zk_supervisor/src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub(super) fn msg_global_chain_does_not_exist(chain: &str, available_chains: &st
}

// Subcommands help
pub(super) const MSG_PROTOCOL_VERSION_ABOUT: &str = "Protocol version used by provers";
pub(super) const MSG_PROVER_VERSION_ABOUT: &str = "Protocol version used by provers";
pub(super) const MSG_SUBCOMMAND_DATABASE_ABOUT: &str = "Database related commands";
pub(super) const MSG_SUBCOMMAND_TESTS_ABOUT: &str = "Run tests";
pub(super) const MSG_SUBCOMMAND_CLEAN: &str = "Clean artifacts";
Expand Down

0 comments on commit eae9818

Please sign in to comment.