zksync_system_constants 0.1.0

ZKsync system constants
Documentation
//! THIS FILE IS AUTOGENERATED: DO NOT EDIT MANUALLY!
//! The file with constants related to fees most of which need to be computed
use super::IntrinsicSystemGasConstants;

// TODO (SMA-1699): Use this method to ensure that the transactions provide enough
// intrinsic gas on the API level.

pub const fn get_intrinsic_constants() -> IntrinsicSystemGasConstants {
    IntrinsicSystemGasConstants {
        l2_tx_intrinsic_gas: 14070,
        l2_tx_intrinsic_pubdata: 0,
        l2_tx_gas_for_refund_transfer: 7343,
        l1_tx_intrinsic_gas: 167157,
        l1_tx_intrinsic_pubdata: 88,
        l1_tx_min_gas_base: 173484,
        l1_tx_delta_544_encoding_bytes: 1656,
        l1_tx_delta_factory_dep_gas: 2473,
        l1_tx_delta_factory_dep_pubdata: 64,
        bootloader_intrinsic_gas: 182918,
        bootloader_intrinsic_pubdata: 472,
        bootloader_tx_memory_size_slots: 519017,
    }
}