Mavryk_raw_protocol_alpha.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.
val init : t
Initial value for a counter (zero).
val pp : Mavryk_protocol_environment_alpha.Format.formatter -> t -> unit
Pretty-printer for counters.
val encoding_for_storage : t Mavryk_protocol_environment_alpha.Data_encoding.t
Encoding for a counter to be used in Storage
.
val encoding_for_operation :
t Mavryk_protocol_environment_alpha.Data_encoding.t
Encoding for a counter to be used in Operation_repr
.
val encoding_for_RPCs : t Mavryk_protocol_environment_alpha.Data_encoding.t
Encoding for a counter to be used in RPCs.
val encoding_for_errors : t Mavryk_protocol_environment_alpha.Data_encoding.t
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