24 lines
950 B
OCaml
24 lines
950 B
OCaml
(**************************************************************************)
|
|
(* *)
|
|
(* Copyright (c) 2014 - 2016. *)
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
(* *)
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
(* *)
|
|
(**************************************************************************)
|
|
|
|
type error +=
|
|
| Precomputed_seed
|
|
| Invalid_cycle
|
|
|
|
val init:
|
|
Storage.t -> Storage.t tzresult Lwt.t
|
|
|
|
val compute_for_cycle:
|
|
Storage.t -> Cycle_repr.t -> Storage.t tzresult Lwt.t
|
|
|
|
val for_cycle: Storage.t -> Cycle_repr.t -> Seed_repr.seed tzresult Lwt.t
|
|
|
|
val clear_cycle:
|
|
Storage.t -> Cycle_repr.t -> Storage.t tzresult Lwt.t
|