package octez-proto-libs

  1. Overview
  2. Docs
Octez protocol libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-18.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a

doc/octez-proto-libs.protocol-environment/Tezos_protocol_environment/V1/Make/Context/index.html

Module Make.ContextSource

View over the context store, restricted to types, access and functional manipulation of an existing context.

Sourcetype t
Sourcetype key = string list

Keys in (kex x value) database implementations

Sourcetype value = bytes

Values in (kex x value) database implementations

Sourceval mem : t -> key -> bool Lwt.t
Sourceval dir_mem : t -> key -> bool Lwt.t
Sourceval get : t -> key -> value option Lwt.t
Sourceval set : t -> key -> value -> t Lwt.t
Sourceval copy : t -> from:key -> to_:key -> t option Lwt.t

copy returns None if the from key is not bound

Sourceval remove_rec : t -> key -> t Lwt.t
Sourcetype key_or_dir = [
  1. | `Key of key
  2. | `Dir of key
]
Sourceval fold : t -> key -> init:'a -> f:(key_or_dir -> 'a -> 'a Lwt.t) -> 'a Lwt.t
Sourceval keys : t -> key -> key list Lwt.t
Sourceval fold_keys : t -> key -> init:'a -> f:(key -> 'a -> 'a Lwt.t) -> 'a Lwt.t
Sourceval register_resolver : 'a Base58.encoding -> (t -> string -> 'a list Lwt.t) -> unit
Sourceval complete : t -> string -> string list Lwt.t
OCaml

Innovation. Community. Security.