Tezos_raw_protocol_alpha.Level_storageSourceval from_raw_with_offset :
Raw_context.t ->
offset:int32 ->
Raw_level_repr.t ->
Level_repr.t Tezos_protocol_environment_alpha.Error_monad.tzresultFails with Negative_level_and_offset_sum if the sum of the raw_level and the offset is negative.
When the given level is two or above, return its predecessor. When the given level is one or less, return None (because we cannot build the Level_repr.t for level zero).
i must be positive
sub c level i returns None if the level is before the first level of the Alpha family of protocol, otherwise it returns the expected level. i must be positive.
Returns Some cycle if the current level represents the last level of cycle and None if the level is not the last level of a cycle.
Returns true if the stake distribution should be snapshot at the current level.
Returns true if RANDAO should be computed at the current level, that is if the current level, relative to the cycle's start, equals the nonce revelation period cut-off.