Crate zksync_contracts

Source
Expand description

Set of utility functions to read contracts both in Yul and Sol format.

Careful: some of the methods are reading the contracts based on the workspace environment variable.

Modules§

test_contracts

Structs§

BaseSystemContracts
BaseSystemContractsHashes
SystemContractCode
Hash of code and code which consists of 32 bytes words
SystemContractsRepo
Structure representing a system contract repository - that allows fetching contracts that are located there. As most of the static methods in this file, is loading data based on the Cargo workspace location.
TestContract

Enums§

ContractLanguage

Statics§

ADMIN_EXECUTE_UPGRADE_FUNCTION
ADMIN_UPGRADE_CHAIN_FROM_VERSION_FUNCTION
DIAMOND_CUT
PRE_BOOJUM_COMMIT_FUNCTION
SET_CHAIN_ID_EVENT

Functions§

bridgehub_contract
chain_admin_contract
deployer_contract
diamond_init_contract
eth_contract
get_loadnext_contract
Reads test contract bytecode and its ABI.
governance_contract
hyperchain_contract
known_codes_contract
l1_messenger_contract
load_contract
load_sys_contract
multicall_contract
read_bootloader_code
read_bytecode
Reads bytecode from the path RELATIVE to the Cargo workspace location.
read_contract_abi
read_sys_contract_bytecode
read_zbin_bytecode
Reads zbin bytecode from a given path, relative to workspace location.
state_transition_manager_contract
verifier_contract