Mavryk_base.Protocol
val component_encoding : component Data_encoding.t
val compare_version : env_version -> env_version -> int
compare_version va vb
is negative if va
is a less recent version than vb
, positive if va
is a more recent version than vb
, zero if they are the same version.
In less precise but more intuitive terms, compare_version va vb <op> 0
is the same truthness as va <op> vb
where <op>
is any comparison operator.
E.g., compare_version V0 V1 < 0
is true
.
val env_version_encoding : env_version Data_encoding.t
val pp_ocaml : Stdlib.Format.formatter -> t -> unit
include S.HASHABLE
with type t := t
and type hash := Mavryk_crypto.Hashed.Protocol_hash.t
val hash : t -> Mavryk_crypto.Hashed.Protocol_hash.t
val hash_raw : Stdlib.Bytes.t -> Mavryk_crypto.Hashed.Protocol_hash.t
val of_bytes_exn : Stdlib.Bytes.t -> t
val of_string_exn : Stdlib.String.t -> t
val of_string : Stdlib.String.t -> t option
val bounded_encoding : ?max_size:int -> unit -> t Data_encoding.t
val module_name_of_env_version : env_version -> string
module Meta : sig ... end