Skip to content

Commit

Permalink
added documentation for consensus commands
Browse files Browse the repository at this point in the history
  • Loading branch information
pompon0 committed Oct 3, 2024
1 parent 60fd288 commit 121b015
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 32 deletions.
20 changes: 0 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 16 additions & 12 deletions zk_toolbox/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 56 additions & 0 deletions zk_toolbox/crates/zk_inception/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ This document contains the help content for the `zk_inception` command-line prog
- [`zk_inception chain initialize-bridges`](#zk_inception-chain-initialize-bridges)
- [`zk_inception chain deploy-l2-contracts`](#zk_inception-chain-deploy-l2-contracts)
- [`zk_inception chain upgrader`](#zk_inception-chain-upgrader)
- [`zk_inception chain deploy-consensus-registry`](#zk_inception-chain-deploy-consensus-registry)
- [`zk_inception chain deploy-multicall3`](#zk_inception-chain-deploy-multicall3)
- [`zk_inception chain deploy-paymaster`](#zk_inception-chain-deploy-paymaster)
- [`zk_inception chain update-token-multiplier-setter`](#zk_inception-chain-update-token-multiplier-setter)
- [`zk_inception consensus set-attester-committee`](#zk_inception-consensus-set-attester-committee)
- [`zk_inception consensus get-attester-committee`](#zk_inception-consensus-get-attester-committee)
- [`zk_inception prover`](#zk_inception-prover)
- [`zk_inception prover init`](#zk_inception-prover-init)
- [`zk_inception prover setup-keys`](#zk_inception-prover-setup-keys)
Expand Down Expand Up @@ -364,6 +368,18 @@ Deploy Default Upgrader

e.g.: `zk_inception init -a --private-key=<PRIVATE_KEY>`

## `zk_inception chain deploy-consensus-registry`

Deploy Consensus Registry smart contract

**Usage:** `zk_inception chain deploy-consensus-registry`

## `zk_inception chain deploy-multicall3`

Deploy Multicall3 smart contract

**Usage:** `zk_inception chain deploy-multicall3`

## `zk_inception chain deploy-paymaster`

Deploy paymaster smart contract
Expand Down Expand Up @@ -414,6 +430,46 @@ Update Token Multiplier Setter address on L1

e.g.: `zk_inception init -a --private-key=<PRIVATE_KEY>`

## `zk_inception consensus`

Consensus related commands

**Usage:** `zk_inception consensus <COMMAND>`

###### **Subcommands:**

- `set-attester-committee` — Set attester committee
- `get-attester-committee` — Get attester committee

## `zk_inception consensus set-attester-committee`

Set attester committee in the consensus registry smart contract. Requires `consensus_registry` and `multicall3`
contracts to be deployed.

**Usage:** `zk_inception consensus set-attester-committee [OPTIONS]`

###### **Options:**

- `--from-genesis` — Set attester committee to `consensus.genesis\_spec.attesters` in general.yaml Mutually exclusive
with `--from-file`.
- `--from-file <PATH>` — Set attester committee to committee specified in yaml file at `PATH`.
Mutually exclusive with `--from-genesis`. File format is specified in
`zk_inception/src/commands/consensus/proto/mod.proto`. Example:
```yaml
attesters:
- key: attester:public:secp256k1:0339d4b0cdd9896d3929631a4e5e9a5b4919f52592bec571d70bb0e50a3a824714
weight: 1
- key: attester:public:secp256k1:024897d8c10d7a57d108cfe2a724d7824c657f219ef5d9f7674810a6746c19fa7b
weight: 1
```
## `zk_inception consensus get-attester-committee`

Requires `consensus_registry` and `multicall3` contracts to be deployed. Fetches attester committee from the consensus
registry contract and prints it.

**Usage:** `zk_inception consensus get-attester-committee`

## `zk_inception prover`

Prover related commands
Expand Down

0 comments on commit 121b015

Please sign in to comment.