(**************************************************************************) (* *) (* Copyright (c) 2014 - 2016. *) (* Dynamic Ledger Solutions, Inc. *) (* *) (* 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