Mavkit_smart_rollup.Commitmentmodule Hash = Mavryk_crypto.Hashed.Smart_rollup_commitment_hashmodule V1 : sig ... endinclude Versioned_data.S with type t = V1.tThe type of versioned values, including the one that is currently used and the previous ones.
val versioned_encoding : versioned Mavryk_base.TzPervasives.Data_encoding.tEncoding for versioned values, corresponds to the one defined by the protocol.
Conversion to the currently used representation. In practice this function must provide ways to translate values of older versions to the latest one.
include module type of V1 with type t = V1.ttype t = V1.t = {compressed_state : State_hash.t;inbox_level : int32;predecessor : Hash.t;number_of_ticks : int64;}Type of smart rollup commitments. See Protocol.Sc_rollup_commitment_repr.t.
val pp : Stdlib.Format.formatter -> t -> unitPretty printing protocol agnostic commitments.
val encoding : t Mavryk_base.TzPervasives.Data_encoding.tEncoding for commitments.
val genesis_commitment :
origination_level:int32 ->
genesis_state_hash:State_hash.t ->
tgenesis_commitment ~origination_level ~genesis_state_hash is the commitment that is published when originating a new rollup. See Protocol.Sc_rollup_commitment_repr.genesis_commitment.