Crate zkstack_cli_config

Source

Modules§

consensus_config
consensus_secrets
docker_compose
explorer
explorer_compose
external_node
forge_interface
portal
traits

Structs§

AppEcosystemConfig
AppsEcosystemConfig
Ecosystem level configuration for the apps (portal and explorer).
BridgeContractsDefinition
BridgesContracts
ChainConfig
Chain configuration file. This file is created in the chain directory before network initialization.
ChainConfigInternal
Chain configuration file. This file is created in the chain directory before network initialization.
ContractsConfig
EcosystemConfig
Ecosystem configuration file. This file is created in the chain directory before network initialization.
EcosystemContracts
FileArtifacts
GeneralConfig
GenesisConfig
This config represents the genesis state of the chain. Each chain has this config immutable and we update it only during the protocol upgrade
L1Contracts
L2Contracts
RocksDbs
SecretsConfig
WalletsConfig

Enums§

DAValidatorType
EcosystemConfigFromFileError
Result of checking if the ecosystem exists.

Constants§

APPS_CONFIG_FILE
Name of apps config file
CONFIGS_PATH
Path to the config file with mnemonic for localhost wallets
CONSENSUS_CONFIG_FILE
CONTRACTS_FILE
Name of the contracts file
DEFAULT_EXPLORER_API_PORT
Default port for the explorer API service
DEFAULT_EXPLORER_DATA_FETCHER_PORT
Default port for the explorer data fetcher service
DEFAULT_EXPLORER_PORT
Default port for the explorer app
DEFAULT_EXPLORER_WORKER_PORT
Default port for the explorer worker service
DEFAULT_PORTAL_PORT
Default port for the portal app
DOCKER_COMPOSE_FILE
Name of the docker-compose file inside zksync repository
EN_CONFIG_FILE
ERA_OBSERBAVILITY_DIR
Path to era observability repository
ERA_OBSERBAVILITY_GIT_REPO
Era observability repo link
ERA_OBSERVABILITY_COMPOSE_FILE
Path to the docker-compose file for grafana
EXPLORER_API_DOCKER_IMAGE
EXPLORER_BATCHES_PROCESSING_POLLING_INTERVAL
Interval (in milliseconds) for polling new batches to process in explorer app
EXPLORER_CONFIG_FILE
Name of explorer config JSON file
EXPLORER_DATA_FETCHER_DOCKER_IMAGE
EXPLORER_DOCKER_COMPOSE_FILE
Name of explorer docker compose file
EXPLORER_JS_CONFIG_FILE
Name of explorer runtime config file (auto-generated)
EXPLORER_WORKER_DOCKER_IMAGE
GATEWAY_CHAIN_FILE
Name of the gateway contracts file
GATEWAY_FILE
Name of the gateway contracts file
GENERAL_FILE
Name of the general config file
GENESIS_FILE
Name of the genesis config file
PORTAL_CONFIG_FILE
Name of portal config JSON file
PORTAL_JS_CONFIG_FILE
Name of portal runtime config file (auto-generated)
SECRETS_FILE
Name of the secrets config file
WALLETS_FILE
Name of the wallets file
ZKSYNC_ERA_GIT_REPO
Main repository for the ZKsync project

Functions§

copy_configs
create_local_configs_dir
create_localhost_wallets
create_wallets
encode_yaml_repr
get_default_era_chain_id
get_link_to_prover
override_config
read_yaml_repr
Reads a yaml file.
set_file_artifacts
set_l1_rpc_url
set_prover_database
set_rocks_db_config
set_server_database
update_from_chain_config