package tezos-protocol-010-PtGRANAD

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type kind =
  1. | Proposal
  2. | Exploration
  3. | Cooldown
  4. | Promotion
  5. | Adoption
val kind_encoding : kind Data_encoding.t
val pp_kind : Stdlib.Format.formatter -> kind -> unit
type voting_period = private {
  1. index : int32;
  2. kind : kind;
  3. start_position : int32;
}
type t = voting_period
include BASIC_DATA 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
val pp : Stdlib.Format.formatter -> voting_period -> unit
val reset : context -> (context, Tezos_protocol_environment_010_PtGRANAD__Environment.Error_monad.error Tezos_protocol_environment_010_PtGRANAD__Environment.Error_monad.trace) Stdlib.result Lwt.t
val succ : context -> (context, Tezos_protocol_environment_010_PtGRANAD__Environment.Error_monad.error Tezos_protocol_environment_010_PtGRANAD__Environment.Error_monad.trace) Stdlib.result Lwt.t
val get_current : context -> (voting_period, Tezos_protocol_environment_010_PtGRANAD__Environment.Error_monad.error Tezos_protocol_environment_010_PtGRANAD__Environment.Error_monad.trace) Stdlib.result Lwt.t
val get_current_kind : context -> (kind, Tezos_protocol_environment_010_PtGRANAD__Environment.Error_monad.error Tezos_protocol_environment_010_PtGRANAD__Environment.Error_monad.trace) Stdlib.result Lwt.t
val is_last_block : context -> (bool, Tezos_protocol_environment_010_PtGRANAD__Environment.Error_monad.error Tezos_protocol_environment_010_PtGRANAD__Environment.Error_monad.trace) Stdlib.result Lwt.t
type info = {
  1. voting_period : t;
  2. position : int32;
  3. remaining : int32;
}
val info_encoding : info Data_encoding.t
val pp_info : Stdlib.Format.formatter -> info -> unit
val get_rpc_current_info : context -> (info, Tezos_protocol_environment_010_PtGRANAD__Environment.Error_monad.error Tezos_protocol_environment_010_PtGRANAD__Environment.Error_monad.trace) Stdlib.result Lwt.t
val get_rpc_succ_info : context -> (info, Tezos_protocol_environment_010_PtGRANAD__Environment.Error_monad.error Tezos_protocol_environment_010_PtGRANAD__Environment.Error_monad.trace) Stdlib.result Lwt.t
OCaml

Innovation. Community. Security.