package tezos-protocol-015-PtLimaPt

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

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-16.0.tar.gz
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b

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.