ligo/src/proto/alpha/level_repr.mli
2017-02-25 18:14:05 +01:00

30 lines
1.0 KiB
OCaml

(**************************************************************************)
(* *)
(* Copyright (c) 2014 - 2016. *)
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* *)
(* All rights reserved. No warranty, explicit or implicit, provided. *)
(* *)
(**************************************************************************)
type t = private {
level: Raw_level_repr.t ;
cycle: Cycle_repr.t ;
cycle_position: int32 ;
voting_period: Voting_period_repr.t ;
voting_period_position: int32 ;
}
type level = t
val encoding: level Data_encoding.t
val pp: Format.formatter -> level -> unit
include Compare.S with type t := level
val root: level
val from_raw:
cycle_length:int32 -> voting_period_length:int32 ->
Raw_level_repr.t -> level
val diff: level -> level -> int32