Skip to main content

Module constants

Module constants 

Source
Expand description

Well-known protocol contract addresses and domain separators.

These addresses and constants are deterministic and identical across all Aztec networks.

Modules§

domain_separator
Domain separators used in Poseidon2 hashing throughout the protocol.
protocol_contract_address
Well-known protocol contract addresses.

Constants§

ARCHIVE_HEIGHT
Archive tree height.
ARTIFACT_FUNCTION_TREE_MAX_HEIGHT
Maximum height of the artifact function tree.
CHONK_PROOF_LENGTH
ChonkProof field count.
CONTRACT_CLASS_LOG_SIZE_IN_FIELDS
Size of a contract class log in field elements.
DA_BYTES_PER_FIELD
Bytes per field element for DA cost.
DA_GAS_PER_BYTE
DA gas per byte.
DA_GAS_PER_FIELD
DA gas per field element.
DEFAULT_DA_GAS_LIMIT
Default DA gas limit.
DEFAULT_L2_GAS_LIMIT
Default L2 gas limit.
DEFAULT_TEARDOWN_DA_GAS_LIMIT
Default teardown DA gas limit.
DEFAULT_TEARDOWN_L2_GAS_LIMIT
Default teardown L2 gas limit.
FIXED_AVM_STARTUP_L2_GAS
Fixed AVM startup L2 gas.
FUNCTION_TREE_HEIGHT
Height of the private functions Merkle tree.
L1_TO_L2_MSG_SUBTREE_HEIGHT
L1-to-L2 message subtree height (for subtree insertion proofs).
L1_TO_L2_MSG_TREE_HEIGHT
L1-to-L2 message tree height.
L2_GAS_PER_CONTRACT_CLASS_LOG
L2 gas per contract class log.
L2_GAS_PER_L2_TO_L1_MSG
L2 gas per L2-to-L1 message.
L2_GAS_PER_NOTE_HASH
L2 gas per note hash.
L2_GAS_PER_NULLIFIER
L2 gas per nullifier.
L2_GAS_PER_PRIVATE_LOG
L2 gas per private log.
MAX_CONTRACT_CLASS_LOGS_PER_CALL
Maximum contract class logs per call.
MAX_CONTRACT_CLASS_LOGS_PER_TX
Maximum contract class logs per transaction.
MAX_ENQUEUED_CALLS_PER_CALL
Maximum enqueued calls per call.
MAX_ENQUEUED_CALLS_PER_TX
Maximum enqueued public calls per transaction.
MAX_FR_CALLDATA_TO_ALL_ENQUEUED_CALLS
Maximum calldata fields across all enqueued public calls.
MAX_KEY_VALIDATION_REQUESTS_PER_CALL
Maximum key validation requests per call.
MAX_KEY_VALIDATION_REQUESTS_PER_TX
Maximum key validation requests per transaction.
MAX_L2_TO_L1_MSGS_PER_CALL
Maximum L2-to-L1 messages per call.
MAX_L2_TO_L1_MSGS_PER_TX
Maximum L2-to-L1 messages per transaction.
MAX_NOTE_HASHES_PER_CALL
Maximum note hashes per call.
MAX_NOTE_HASHES_PER_TX
Maximum note hashes per transaction.
MAX_NOTE_HASH_READ_REQUESTS_PER_CALL
Maximum note hash read requests per call.
MAX_NOTE_HASH_READ_REQUESTS_PER_TX
Maximum note hash read requests per transaction.
MAX_NULLIFIERS_PER_CALL
Maximum nullifiers per call.
MAX_NULLIFIERS_PER_TX
Maximum nullifiers per transaction.
MAX_NULLIFIER_READ_REQUESTS_PER_CALL
Maximum nullifier read requests per call.
MAX_NULLIFIER_READ_REQUESTS_PER_TX
Maximum nullifier read requests per transaction.
MAX_PACKED_PUBLIC_BYTECODE_SIZE_IN_FIELDS
Maximum number of field elements in packed public bytecode.
MAX_PRIVATE_CALL_STACK_LENGTH_PER_CALL
Maximum private call stack length per call.
MAX_PRIVATE_LOGS_PER_CALL
Maximum private logs per call.
MAX_PRIVATE_LOGS_PER_TX
Maximum private logs per transaction.
MAX_PROCESSABLE_DA_GAS_PER_CHECKPOINT
Maximum processable DA gas per checkpoint.
MAX_PROCESSABLE_L2_GAS
Maximum processable L2 gas.
MAX_PROTOCOL_CONTRACTS
Canonical protocol contract tuple length.
MAX_TX_LIFETIME
Maximum transaction lifetime in seconds.
NOTE_HASH_TREE_HEIGHT
Note hash tree height.
NULLIFIER_TREE_HEIGHT
Nullifier tree height.
NUMBER_OF_L1_L2_MESSAGES_PER_ROLLUP
Maximum L1-to-L2 messages per rollup checkpoint.
PRIVATE_LOG_SIZE_IN_FIELDS
Size of a private log in field elements.
PRIVATE_TX_L2_GAS_OVERHEAD
L2 gas overhead for private-only transactions.
PUBLIC_DATA_TREE_HEIGHT
Public data tree height.
PUBLIC_TX_L2_GAS_OVERHEAD
L2 gas overhead for transactions with public calls.
RECURSIVE_PROOF_LENGTH
Recursive proof field count.
TX_DA_GAS_OVERHEAD
DA gas overhead per transaction.
VK_TREE_HEIGHT
VK tree height.

Functions§

contract_class_published_magic_value
Magic prefix for ContractClassRegistry emitted class-publication logs.
contract_class_registry_bytecode_capsule_slot
Bytecode capsule slot used by the Contract Class Registry.
contract_instance_published_magic_value
Magic prefix for ContractInstanceRegistry emitted instance-publication logs.
current_vk_tree_root
Canonical VK tree root for the pinned Aztec 4.1.3 protocol artifacts.