package tezos-protocol-alpha
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b
doc/tezos-protocol-alpha.raw/Tezos_raw_protocol_alpha/Sc_rollup_outbox_message_repr/index.html
Module Tezos_raw_protocol_alpha.Sc_rollup_outbox_message_repr
Source
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 = {
unparsed_parameters : Script_repr.expr;
(*The payload.
*)destination : Contract_hash.t;
(*The recipient contract.
*)entrypoint : Entrypoint_repr.t;
(*Entrypoint of the destination.
*)
}
A transaction from L2 to L1.
A type representing messages from Layer 2 to Layer 1.
deserialize ctxt bs
decodes an outbox message value from the given data bs
. The function involves parsing Micheline expressions to typed values.
serialize msg
serializes the given outbox message msg
.
unsafe_of_string s
builds a serialized value out of a string. You must understand the invariants of serialized
to do so.
unsafe_to_string s
builds a string out of a serialized value. You must understand the invariants of serialized
to manipulate the resulting string.