package tezos-protocol-017-PtNairob

  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-017-PtNairob.raw/Tezos_raw_protocol_017_PtNairob/Sc_rollup_operations/index.html

Module Tezos_raw_protocol_017_PtNairob.Sc_rollup_operationsSource

High-level operations over smart contract rollups.

Sourcetype Tezos_protocol_environment_017_PtNairob.Error_monad.error +=
  1. | Sc_rollup_invalid_parameters_type
  2. | Sc_rollup_invalid_last_cemented_commitment
  3. | Sc_rollup_invalid_output_proof
  4. | Sc_rollup_invalid_outbox_level
Sourcetype execute_outbox_message_result = {
  1. paid_storage_size_diff : Tezos_protocol_environment_017_PtNairob.Z.t;
  2. ticket_receipt : Ticket_receipt.t;
  3. operations : Script_typed_ir.packed_internal_operation list;
}

Result of calling the execute_outbox_message function.

originate context ~kind ~boot_sector ~origination_proof ~parameters_ty adds a new rollup running in a given kind initialized with a boot_sector and to accept smart contract calls of type parameters_ty.

origination_proof, which covers the specialization of the PVM initial state with the boot_sector, is used by the protocol to compute the genesis commitment, after its correctness has been checked.

Note: The need to provide an origination_proof is motivated by technical limitations of Irmin (as of June, 2022), that requires a context to get an empty tree. As soon as this limitation is lifted, then we can drop the origination_proof argument.

Returns an error if origination_proof is invalid (e.g., it does not target the expected PVM).

execute_outbox_message ctxt rollup ~cemented_commitment ~output_proof validates the given outbox message and prepares a set of resulting operations.

Sourcemodule Internal_for_tests : sig ... end

A module used for testing purposes only.

OCaml

Innovation. Community. Security.