Module zks_utils

Source

Constants§

BLAKE2F_PRECOMPILE_ADDRESS
CHAIN_STATE_KEEPER_BOOTLOADER_HASH
CHAIN_STATE_KEEPER_DEFAULT_AA_HASH
CONTRACTS_CREATE2_FACTORY_ADDR
CONTRACTS_DIAMOND_CUT_FACET_ADDR
CONTRACTS_DIAMOND_INIT_ADDR
CONTRACTS_DIAMOND_PROXY_ADDR
CONTRACTS_DIAMOND_UPGRADE_INIT_ADDR
CONTRACTS_EXECUTOR_FACET_ADDR
CONTRACTS_GETTERS_FACET_ADDR
CONTRACTS_GOVERNANCE_FACET_ADDR
CONTRACTS_L1_ALLOW_LIST_ADDR
CONTRACTS_L1_ERC20_BRIDGE_IMPL_ADDR
CONTRACTS_L1_ERC20_BRIDGE_PROXY_ADDR
CONTRACTS_L1_MESSENGER_ADDR
CONTRACTS_L1_WETH_BRIDGE_IMPL_ADDR
CONTRACTS_L1_WETH_BRIDGE_PROXY_ADDR
CONTRACTS_L1_WETH_TOKEN_ADDR
CONTRACTS_L2_ERC20_BRIDGE_ADDR
CONTRACTS_L2_ETH_TOKEN_ADDR
CONTRACTS_L2_TESTNET_PAYMASTER_ADDR
CONTRACTS_MAILBOX_FACET_ADDR
CONTRACTS_VALIDATOR_TIMELOCK_ADDR
CONTRACTS_VERIFIER_ADDR
CONTRACT_DEPLOYER_ADDR
DEFAULT_ERC20_DEPOSIT_GAS_LIMIT
DEFAULT_GAS
DEFAULT_GAS_PER_PUBDATA_LIMIT
DEPOSIT_GAS_PER_PUBDATA_LIMIT
ECADD_PRECOMPILE_ADDRESS
ECMUL_PRECOMPILE_ADDRESS
ECPAIRING_PRECOMPILE_ADDRESS
ECRECOVER_PRECOMPILE_ADDRESS
EIP712_TX_TYPE
ERA_CHAIN_ID
ERA_MAINNET_CHAIN_ID
ETHER_L1_ADDRESS
ETH_CHAIN_ID
GUARANTEED_PUBDATA_PER_L1_BATCH
This the number of pubdata such that it should be always possible to publish from a single transaction. Note, that these pubdata bytes include only bytes that are to be published inside the body of transaction (i.e. excluding of factory deps).
IDENTITY_PRECOMPILE_ADDRESS
MAX_FEE_PER_GAS
MAX_GAS_PER_PUBDATA_BYTE
MAX_L2_TX_GAS_LIMIT
MAX_PRIORITY_FEE_PER_GAS
MODEXP_PRECOMPILE_ADDRESS
RECOMMENDED_DEPOSIT_L1_GAS_LIMIT
RECOMMENDED_DEPOSIT_L2_GAS_LIMIT
RIPEMD_160_PRECOMPILE_ADDRESS
SHA256_PRECOMPILE_ADDRESS

Functions§

ec_add_function
ec_mul_function
encode_args
Given a function and a vector of string arguments, it proceeds to convert the args to ethabi Tokens and then ABI encode them.
encode_constructor_args
Given a constructor and a vector of string arguments, it proceeds to convert the args to ethabi Tokens and then ABI encode them.
is_precompile
mod_exp_function
parse_tokens
Parses string input as Token against the expected ParamType
sanitize_token
Cleans up potential shortcomings of the ethabi Tokenizer.