package tezos-protocol-016-PtMumbai

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type transaction_result =
  1. | Transaction_success
  2. | Transaction_failure of {
    1. index : int;
    2. reason : Tezos_protocol_environment_016_PtMumbai.Error_monad.error;
    }

A transaction inside a batch can either be a success or a failure.

In the case of a failure, we store the operation's index which failed with the reason it failed.

type deposit_result =
  1. | Deposit_success of indexes
  2. | Deposit_failure of Tezos_protocol_environment_016_PtMumbai.Error_monad.error

A deposit can either be a success or a failure. The created indexes must are kept only when the deposit is a success. In the other case, we return the reason why the deposit failed.

The operations are versioned (see Tx_rollup_l2_batch). Therefore, we introduce the operation results for each version.

module Batch_V1 : sig ... end
type message_result =
  1. | Deposit_result of deposit_result
  2. | Batch_V1_result of Batch_V1.t
OCaml

Innovation. Community. Security.