22 lines
1.1 KiB
OCaml
22 lines
1.1 KiB
OCaml
|
(**************************************************************************)
|
||
|
(* *)
|
||
|
(* Copyright (c) 2014 - 2016. *)
|
||
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
||
|
(* *)
|
||
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
||
|
(* *)
|
||
|
(**************************************************************************)
|
||
|
|
||
|
val init: Storage.t -> Storage.t tzresult Lwt.t
|
||
|
|
||
|
val increment_current: Storage.t -> Storage.t tzresult Lwt.t
|
||
|
val current: Storage.t -> Level_repr.t tzresult Lwt.t
|
||
|
val previous: Storage.t -> Level_repr.t tzresult Lwt.t
|
||
|
|
||
|
val from_raw: Storage.t -> ?offset:int32 -> Raw_level_repr.t -> Level_repr.t
|
||
|
val pred: Storage.t -> Level_repr.t -> Level_repr.t option
|
||
|
val succ: Storage.t -> Level_repr.t -> Level_repr.t
|
||
|
|
||
|
val last_level_in_cycle: Storage.t -> Cycle_repr.t -> Level_repr.t
|
||
|
val levels_in_cycle: Storage.t -> Cycle_repr.t -> Level_repr.t list
|