package tezos-protocol-alpha
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b
doc/tezos-protocol-alpha.raw/Tezos_raw_protocol_alpha/Dal_slot_index_repr/index.html
Module Tezos_raw_protocol_alpha.Dal_slot_index_repr
Source
Slot index
A slot index is a possible value for a slot index with an upper bound. If a choice is ever made to increase the size of available slots in the protocol, we also need to change this module to accommodate for higher values.
of_int n
constructs a value of type t
from n
. Returns Invalid_slot_index
in case the given value is not in the interval zero, max_value
.
of_int_opt n
constructs a value of type t
from n
. Returns None
in case the given value is not in the interval zero, max_value
.
val slots_range :
lower:int ->
upper:int ->
t list Tezos_protocol_environment_alpha.Error_monad.tzresult
slots_range ~lower ~upper
returns the list of slots indexes between lower
and upper
.
If lower
is negative or upper
is bigger than max_value
, the function returns Invalid_slot_index
.
slots_range_opt ~lower ~upper
is similar to slots_range
, but return None
instead of an error.