package tezos-protocol-016-PtMumbai

  1. Overview
  2. Docs
Tezos/Protocol: economic-protocol definition

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-17.3.tar.gz
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc

doc/tezos-protocol-016-PtMumbai.raw/Tezos_raw_protocol_016_PtMumbai/Tx_rollup_l2_apply/index.html

Module Tezos_raw_protocol_016_PtMumbai.Tx_rollup_l2_applySource

This module introduces the interpretation (off-chain) of layer2 operations read from its inboxes.

The main concern is now to interpret operations in the layer2 context with a high-throughput and process a significant number of operations “per second.”

The operations can be crafted with indexes (see Indexable). It is meant to reduce the size of operations, and therefore, increase the number of those in a message to the layer2. You will see in this file indexables which are yet unknowns (see Indexable.unknown). They can be later on modified to indexes only (see Indexable.index_only) when the potential values have been replaced by their indexes.

Therefore, we need to have the minimal number of accesses to the context. Thus, when a value is read from its index in the context, it *must* be done once.

Sourcetype Tezos_protocol_environment_016_PtMumbai.Error_monad.error +=
  1. | Counter_mismatch of {
    1. account : Tx_rollup_l2_address.t;
    2. expected : int64;
    3. provided : int64;
    }
  2. | Incorrect_aggregated_signature
  3. | Unallocated_metadata of int32
  4. | Multiple_operations_for_signer of Tezos_protocol_environment_016_PtMumbai.Bls.Public_key.t
  5. | Invalid_transaction_encoding
  6. | Invalid_batch_encoding
  7. | Unexpectedly_indexed_ticket
  8. | Missing_ticket of Alpha_context.Ticket_hash.t
  9. | Unknown_address of Tx_rollup_l2_address.t
  10. | Invalid_self_transfer
  11. | Invalid_zero_transfer
  12. | Maximum_withdraws_per_message_exceeded of {
    1. current : int;
    2. maximum : int;
    }

Applying operations in the layer2 can result in creating indexes associated to both the addresses and the ticket hashes. We keep track of these creations in order to replace the values by their indexes in future operations.

Sourcemodule Message_result : sig ... end
Sourcetype parameters = {
  1. tx_rollup_max_withdrawals_per_batch : int;
}

The record of parameters used during the application of messages.

OCaml

Innovation. Community. Security.