package tezos-context

  1. Overview
  2. Docs
Tezos: on-disk context abstraction for `tezos-node`

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-v12.3.tar.bz2
sha256=296bb5674bc6050afe6330326fbdd0dfc2255d414bfd6b79cc7666ac6b39316d
sha512=c061cd300a9410300851158d77bf8e56ca3c568b0b1161b38305e5b2efdcd9c746d391f832fdb2826f9a1d6babce10a9b764a4b04f5df42699f7314b9863123a

doc/tezos-context.helpers/Tezos_context_helpers/Context/Make_tree/argument-1-DB/Private/Slice/index.html

Module Private.Slice

Private slices.

Slices

type t = slice

The type for slices.

type contents = Contents.key * Contents.value

The type for exported contents.

type node = Node.key * Node.value

The type for exported nodes.

type commit = Commit.key * Commit.value

The type for exported commits.

type value = [
  1. | `Contents of contents
  2. | `Node of node
  3. | `Commit of commit
]

The type for exported values.

val empty : unit -> t Lwt.t

Create a new empty slice.

val add : t -> value -> unit Lwt.t

add t v adds v to t.

val iter : t -> (value -> unit Lwt.t) -> unit Lwt.t

iter t f calls f on all values of t.

Value Types

val t : t Irmin.Type.t

t is the value type for t.

val contents_t : contents Irmin.Type.t

content_t is the value type for contents.

val node_t : node Irmin.Type.t

node_t is the value type for node.

val commit_t : commit Irmin.Type.t

commit_t is the value type for commit.

val value_t : value Irmin.Type.t

value_t is the value type for value.

OCaml

Innovation. Community. Security.