package tezos-protocol-008-PtEdo2Zk

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type kind =
  1. | Proposal
  2. | Testing_vote
  3. | Testing
  4. | Promotion_vote
  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_008_PtEdo2Zk__Environment.Error_monad.error list) Stdlib.result Lwt.t
val succ : context -> (context, Tezos_protocol_environment_008_PtEdo2Zk__Environment.Error_monad.error list) Stdlib.result Lwt.t
val get_current : context -> (voting_period, Tezos_protocol_environment_008_PtEdo2Zk__Environment.Error_monad.error list) Stdlib.result Lwt.t
val get_current_kind : context -> (kind, Tezos_protocol_environment_008_PtEdo2Zk__Environment.Error_monad.error list) Stdlib.result Lwt.t
val is_last_block : context -> (bool, Tezos_protocol_environment_008_PtEdo2Zk__Environment.Error_monad.error list) 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_current_info : context -> (info, Tezos_protocol_environment_008_PtEdo2Zk__Environment.Error_monad.error list) Stdlib.result Lwt.t
val get_rpc_fixed_current_info : context -> (info, Tezos_protocol_environment_008_PtEdo2Zk__Environment.Error_monad.error list) Stdlib.result Lwt.t
val get_rpc_fixed_succ_info : context -> (info, Tezos_protocol_environment_008_PtEdo2Zk__Environment.Error_monad.error list) Stdlib.result Lwt.t
OCaml

Innovation. Community. Security.