package octez-shell-libs

  1. Overview
  2. Docs
Octez shell libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.1.tar.gz
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a

doc/octez-shell-libs.shell-benchmarks/Tezos_shell_benchmarks/Io_helpers/index.html

Module Tezos_shell_benchmarks.Io_helpersSource

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

Sourceval assert_ok : msg:string -> ('a, Tezos_base.TzPervasives.tztrace) result -> 'a
Sourceval prepare_genesis : string -> (Tezos_context.Context.index * Tezos_protocol_environment.Context.t * Tezos_base.TzPervasives.Context_hash.t, Tezos_base.TzPervasives.tztrace) result Lwt.t
Sourceval commit : Tezos_protocol_environment.Context.t -> Tezos_base.TzPervasives.Context_hash.t Lwt.t
Sourceval load_context_from_disk_lwt : string -> Tezos_base.TzPervasives.Context_hash.t -> (Tezos_protocol_environment.Context.t * Tezos_context.Context.index) Lwt.t
Sourceval load_context_from_disk : string -> Tezos_base.TzPervasives.Context_hash.t -> Tezos_protocol_environment.Context.t * Tezos_context.Context.index
Sourceval with_context : base_dir:string -> context_hash:Tezos_base.TzPervasives.Context_hash.t -> (Tezos_protocol_environment.Context.t -> 'a Lwt.t) -> 'a
Sourceval prepare_base_dir : string -> unit
Sourceval initialize_key : Random.State.t -> Tezos_protocol_environment.Context.t -> Tezos_protocol_environment.Context.key -> int -> Tezos_protocol_environment.Context.t Lwt.t
Sourceval commit_and_reload : string -> Tezos_context.Context.index -> Tezos_protocol_environment.Context.t -> (Tezos_protocol_environment.Context.t * Tezos_context.Context.index) Lwt.t
Sourcemodule Key_map : sig ... end

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

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

Innovation. Community. Security.