package octez-proto-libs

  1. Overview
  2. Docs
Octez protocol libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65

doc/octez-proto-libs.protocol-environment/Tezos_protocol_environment/V0/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 = MBytes.t

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 del : t -> key -> t Lwt.t
Sourceval remove_rec : t -> key -> t Lwt.t
Sourceval fold : t -> key -> init:'a -> f:([ `Key of key | `Dir of key ] -> '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.