package octez-shell-libs
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65
doc/octez-shell-libs.proxy/Tezos_proxy/Proxy_getter/Internal/Tree/index.html
Module Internal.Tree
Source
The abstract type that implementors of this module type provide. Obtain an instance with empty
. Think of t
as a tree type.
An abstract type of key.
get t key
returns the tree of data mapped by key
, if any.
val add_leaf :
t ->
key ->
Tezos_context_sigs.Context.Proof_types.raw_context ->
t Proxy.update Lwt.t
add_leaf t key raw_ctxt
returns a variant of t
where key
is mapped to raw_ctxt
. When this function is called, it transforms raw_ctxt
, under the hood, into an instance of Proxy_context.M.tree
, as the latter is the type internally stored in t
(it needs to be, as it's the return type of get
).
This function is called add_leaf
, because the proxy mode iteratively builds its local copy of the endpoint's data. This function is only called when adding a new leaf in the tree of data, never to replace existing data. In other words, it's not a general purpose setter.