package tezos-protocol-015-PtLimaPt

  1. Overview
  2. Docs
Tezos/Protocol: economic-protocol definition

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-17.3.tar.gz
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc

doc/tezos-protocol-015-PtLimaPt.raw/Tezos_raw_protocol_015_PtLimaPt/Alpha_context/Level/index.html

Module Alpha_context.LevelSource

This module re-exports definitions from Level_repr and Level_storage.

Sourcetype t = private {
  1. level : Raw_level.t;
  2. level_position : int32;
  3. cycle : Cycle.t;
  4. cycle_position : int32;
  5. expected_commitment : bool;
}
include BASIC_DATA with type t := t
include Tezos_protocol_environment_015_PtLimaPt.Compare.S with type t := t
val (=) : t -> t -> bool
val (<>) : t -> t -> bool
val (<) : t -> t -> bool
val (<=) : t -> t -> bool
val (>=) : t -> t -> bool
val (>) : t -> t -> bool
val compare : t -> t -> int
val equal : t -> t -> bool
val max : t -> t -> t
val min : t -> t -> t
Sourcetype level = t
Sourceval root : context -> level
Sourceval succ : context -> level -> level
Sourceval pred : context -> level -> level option
Sourceval from_raw : context -> Raw_level.t -> level

Fails with Negative_level_and_offset_sum if the sum of the raw_level and the offset is negative.

Sourceval add : context -> level -> int -> level

add c level i i must be positive

Sourceval sub : context -> level -> int -> level option

sub c level i i must be positive

Sourceval diff : level -> level -> int32
Sourceval current : context -> level
Sourceval last_level_in_cycle : context -> Cycle.t -> level
Sourceval levels_in_cycle : context -> Cycle.t -> level list
Sourceval levels_in_current_cycle : context -> ?offset:int32 -> unit -> level list
Sourceval last_allowed_fork_level : context -> Raw_level.t
Sourceval dawn_of_a_new_cycle : context -> Cycle.t option
Sourceval may_snapshot_stake_distribution : context -> bool
Sourceval may_compute_randao : context -> bool
OCaml

Innovation. Community. Security.