Module V0.Protocol

type t = {
expected_env : env_version;
components : component list;
}
and component = {
name : string;
interface : string option;
implementation : string;
}
and env_version =
| V0
| V1
| V2
| V3
| V4
val component_encoding : component Data_encoding.t
val env_version_encoding : env_version Data_encoding.t
val (=) : t -> t -> bool
val (<>) : t -> t -> bool
val (<) : t -> t -> bool
val (<=) : t -> t -> bool
val (>=) : t -> t -> bool
val (>) : t -> t -> bool
val compare : t -> t -> int
val equal : t -> t -> bool
val max : t -> t -> t
val min : t -> t -> t
val pp : Format.formatter -> t -> unit
val encoding : t Data_encoding.t
val to_bytes : t -> MBytes.t
val of_bytes : MBytes.t -> t option
val hash : t -> Protocol_hash.t
val hash_raw : MBytes.t -> Protocol_hash.t