package tezos-protocol-alpha
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc
doc/tezos-protocol-alpha.raw/Tezos_raw_protocol_alpha/Sc_rollup_tick_repr/index.html
Module Tezos_raw_protocol_alpha.Sc_rollup_tick_repr
Source
This module defines Tick.t
, an execution step counter for smart-contract rollups.
jump tick k
moves tick
by k
(possibly negative) steps. The move stops at initial
when going back in time.
distance t1 t2
is the absolute value of the difference between t1
and t2
.
of_int x
returns Some tick
for the rollup x
-th execution step if x
is non-negative. Returns None
otherwise.
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.
size_in_bytes tick
is the size in bytes of tick
's internal representation. This function is used by the gas model.