package octez-shell-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Helpers for loading contexts, saving contexts, writing to contexts, etc. Also contains the Key_map module, heavily used for preparing benchmarks and computing statistics.

val assert_ok : msg:string -> ('a, Tezos_base.TzPervasives.tztrace) Stdlib.result -> 'a
val prepare_empty_context : string -> (Tezos_base.TzPervasives.Context_hash.t, Tezos_base.TzPervasives.tztrace) Stdlib.result Lwt.t
val with_context : base_dir:string -> context_hash:Tezos_base.TzPervasives.Context_hash.t -> (Tezos_protocol_environment.Context.t -> 'a Lwt.t) -> 'a
val prepare_base_dir : string -> unit
module Key_map : sig ... end

Maps from string lists to bytes. No balancing. A key cannot be a prefix or a suffix to another key.

val take_n : int -> 'a list -> 'a list -> 'a list * 'a list
val sample_without_replacement : int -> 'a list -> 'a list * 'a list
val buffer_size : int
val buffer : bytes
val file_copy : string -> string -> unit
val set_infos : string -> Unix.stats -> unit
val iter_dir : (string -> 'a) -> string -> unit
val copy_rec : string -> string -> unit
OCaml

Innovation. Community. Security.