Module Make.Operation

Mavryk operations.

type shell_header = Mavryk_base.TzPervasives.Operation.shell_header = {
  1. branch : Block_hash.t;
    (*

    The operation is only valid in a branch containing the block branch.

    *)
}
val shell_header_encoding : shell_header Data_encoding.t
type t = Mavryk_base.TzPervasives.Operation.t = {
  1. shell : shell_header;
  2. proto : bytes;
}
include S.HASHABLE with type t := t and type hash := Operation_hash.t
include S.T with type t := t
include Compare.S with type t := t
val (=) : t -> t -> bool

x = y iff compare x y = 0

val (<>) : t -> t -> bool

x <> y iff compare x y <> 0

val (<) : t -> t -> bool

x < y iff compare x y < 0

val (<=) : t -> t -> bool

x <= y iff compare x y <= 0

val (>=) : t -> t -> bool

x >= y iff compare x y >= 0

val (>) : t -> t -> bool

x > y iff compare x y > 0

val compare : t -> t -> int

compare an alias for the functor parameter's compare function

val equal : t -> t -> bool

equal x y iff compare x y = 0

val max : t -> t -> t

max x y is x if x >= y otherwise it is y

val min : t -> t -> t

min x y is x if x <= y otherwise it is y

val pp : Format.formatter -> t -> unit
val encoding : t Data_encoding.t
val to_bytes : t -> bytes
val of_bytes : bytes -> t option
val hash : t -> Operation_hash.t
val hash_raw : bytes -> Operation_hash.t