package tezos-protocol-015-PtLimaPt

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

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-16.0.tar.gz
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b

doc/tezos-protocol-015-PtLimaPt.raw/Tezos_raw_protocol_015_PtLimaPt/Zk_rollup_storage/index.html

Module Tezos_raw_protocol_015_PtLimaPt.Zk_rollup_storageSource

Sourcetype Tezos_protocol_environment_015_PtLimaPt.Error_monad.error +=
  1. | Zk_rollup_does_not_exist of Zk_rollup_repr.t
    (*

    Emitted when trying to perform an operation over a ZK rollup that hasn't been initialised.

    *)
  2. | Zk_rollup_invalid_op_code of int
    (*

    Emitted when trying to add to the pending list and operation with an invalid op code.

    *)

These errors are only to be matched in tests.

originate context static ~init_state produces an address a for a ZK rollup storage using the origination_nonce from the context. This function also initializes the storage, indexing the initial ZKRU account by a.

Returns the new context and ZKRU address, alongside the size of the new account.

add_to_pending context rollup operations appends to the ZK rollup's pending list a list of L2 operations. Returns the new context alongside the size of the new operations.

May fail with:

  • Zk_rollup_invalid_op_code op_code if the op_code of one of the operations is greater or equal to the number of declared operations for this rollup.

assert_exist context rollup asserts that rollup has been initialized. Returns the new context.

May fail with:

  • Zk_rollup_does_not_exist if rollup is not found.

exists context rollup returns a boolean representing whether rollup has been initialized.

OCaml

Innovation. Community. Security.