package tezos-protocol-014-PtKathma
This module defines Tick.t
, an execution step counter for smart-contract rollups.
val initial : t
The initial tick.
val distance : t -> t -> Tezos_protocol_environment_014_PtKathma.Z.t
distance t1 t2
is the absolute value of the difference between t1
and t2
.
val of_int : int -> t option
of_int x
returns Some tick
for the rollup x
-th execution step if x
is non-negative. Returns None
otherwise.
val to_int : t -> int option
to_int tick
converts the tick
into an integer.
val of_number_of_ticks : Sc_rollup_repr.Number_of_ticks.t -> t
of_number_of_ticks
converts from the bounded int type defined in the Sc_rollup_repr
module. Number_of_ticks
is used inside of commitments to limit the maximum possible storage requirement. It is bounded between one and max_int
meaning that this can never return a negative number so an option
isn't required.
val of_z : Tezos_protocol_environment_014_PtKathma.Z.t -> t
val encoding : t Tezos_protocol_environment_014_PtKathma.Data_encoding.t
val pp : Tezos_protocol_environment_014_PtKathma.Format.formatter -> t -> unit
include Tezos_protocol_environment_014_PtKathma.Compare.S with type t := t
module Map : Tezos_protocol_environment_014_PtKathma.Map.S with type key = t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>