Module Mavryk_raw_protocol_001_PtAtLas.Manager_counter_repr

Counters are used as anti-replay protection mechanism in manager operations: each manager account stores a counter and each manager operation declares a value for the counter. When a manager operation is applied, the value of the counter of its manager is checked and incremented.

include Mavryk_protocol_environment_001_PtAtLas.Compare.S
type 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 init : t

Initial value for a counter (zero).

val succ : t -> t

Successor of a counter.

Pretty-printer for counters.

Encoding for a counter to be used in Storage.

Encoding for a counter to be used in Operation_repr.

Encoding for a counter to be used in RPCs.

Encoding for a counter to be used in errors.

module Internal_for_injection : sig ... end

To be used in client injection only.

module Internal_for_tests : sig ... end