Library
Module
Module type
Parameter
Class
Class type
This module describes a fancy representation of a L2block.t
. We define a fancy block with an associated encoding. The encoded JSON will later on be used in RPCs to provide a cleaner and easier to use JSON object.
type l2_message =
| Ok_deposit of Tezos_protocol_013_PtJakart.Protocol.Alpha_context.Tx_rollup_message.t * Tezos_protocol_013_PtJakart.Protocol.Tx_rollup_l2_apply.indexes
(*The deposit was interpreted with no error, we display only the created indexes if any.
*)| Failing_deposit of {
message : Tezos_protocol_013_PtJakart.Protocol.Alpha_context.Tx_rollup_message.t;
reason : Tezos_protocol_013_PtJakart.Environment.Error_monad.error;
withdrawal : Tezos_protocol_013_PtJakart.Protocol.Alpha_context.Tx_rollup_withdraw.t;
}
(*The deposit failed with an error, it produced a withdraw.
*)| Ok_batch of {
transactions_and_results : ((Tezos_protocol_013_PtJakart.Protocol.Indexable.unknown, Tezos_protocol_013_PtJakart.Protocol.Indexable.unknown) Tezos_protocol_013_PtJakart.Protocol.Tx_rollup_l2_batch.V1.transaction * Tezos_protocol_013_PtJakart.Protocol.Tx_rollup_l2_apply.Message_result.transaction_result) list;
withdrawals : Tezos_protocol_013_PtJakart.Protocol.Alpha_context.Tx_rollup_withdraw.t list;
indexes : Tezos_protocol_013_PtJakart.Protocol.Tx_rollup_l2_apply.indexes;
aggregated_signature : Tezos_protocol_013_PtJakart.Protocol.Tx_rollup_l2_batch.V1.signature;
}
(*The batch was interpreted, we list all transaction alongside their results. The transactions are marked as
*)(unknown, unknown) transaction
but we try to replace as much as we can the indexes by their values.| Failing_batch of {
transactions : (Tezos_protocol_013_PtJakart.Protocol.Indexable.unknown, Tezos_protocol_013_PtJakart.Protocol.Indexable.unknown) Tezos_protocol_013_PtJakart.Protocol.Tx_rollup_l2_batch.V1.transaction list;
reasons : Tezos_base.TzPervasives.tztrace;
aggregated_signature : Tezos_protocol_013_PtJakart.Protocol.Tx_rollup_l2_batch.V1.signature;
}
(*The batch was discarded, it could not be interpreted with the l2-apply because of
*)tztrace
.| Unparsable_batch of string
(*The batch is unparsable.
*)
type inbox = fancy_message list
type t = inbox L2block.block
A fancy block is a classic block where the contents are reorganized.
val encoding : t Tezos_base.TzPervasives.Data_encoding.t
Encoding used for block RPCs.