package tezos-protocol-alpha

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

This module defines a data type t that represents messages from Layer 2 to Layer 1.

They are part of the Rollup Management Protocol that defines the communication protocol for exchanging messages between Layer 1 and Layer 2 for smart-contract rollups.

An outbox-message consists of a sequence of transactions to L1 smart-contract accounts. All transactions contained in a message are intended to be executed as a batch.

type transaction = {
  1. unparsed_parameters : Script_repr.expr;
    (*

    The payload.

    *)
  2. destination : Contract_hash.t;
    (*

    The recipient contract.

    *)
  3. entrypoint : Entrypoint_repr.t;
    (*

    Entrypoint of the destination.

    *)
}

A transaction from L2 to L1.

type t =
  1. | Atomic_transaction_batch of {
    1. transactions : transaction list;
    }

A type representing messages from Layer 2 to Layer 1.

type serialized = private string

deserialize ctxt bs decodes an outbox message value from the given data bs. The function involves parsing Micheline expressions to typed values.

module Internal_for_tests : sig ... end

Module containing functions exposed so they can be used in tests.