Internal.Treetype t = Local.treeThe abstract type that implementors of this module type provide. Obtain an instance with empty. Think of t as a tree type.
type key = Local.keyAn abstract type of key.
val empty : tempty returns a pristine value
val get :
t ->
key ->
Tezos_protocol_environment.Proxy_context.M.tree option Lwt.tget 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.tadd_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.