package tezos-protocol-007-PsDELPH1

  1. Overview
  2. Docs
Tezos/Protocol: economic-protocol definition

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-16.0.tar.gz
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b

doc/tezos-protocol-007-PsDELPH1.raw/Tezos_raw_protocol_007_PsDELPH1/Storage_description/index.html

Module Tezos_raw_protocol_007_PsDELPH1.Storage_descriptionSource

Sourcetype 'key t

Typed description of the key-value context.

Trivial display of the key-value context layout.

Export an RPC hierarchy for querying the context. There is one service by possible path in the context. Services for "directory" are able to aggregate in one JSON object the whole subtree.

Sourceval create : unit -> 'key t

Create a empty context description, keys will be registered by side effects.

Register a single key accessor at a given path.

Sourceval register_named_subcontext : 'key t -> string list -> 'key t

Return a description for a prefixed fragment of the given context. All keys registered in the subcontext will be shared by the external context

Sourcetype (_, _, _) args =
  1. | One : {
    1. rpc_arg : 'a Tezos_protocol_environment_007_PsDELPH1.RPC_arg.t;
    2. encoding : 'a Tezos_protocol_environment_007_PsDELPH1.Data_encoding.t;
    3. compare : 'a -> 'a -> int;
    } -> ('key, 'a, 'key * 'a) args
  2. | Pair : ('key, 'a, 'inter_key) args * ('inter_key, 'b, 'sub_key) args -> ('key, 'a * 'b, 'sub_key) args

Description of an index as a sequence of `RPC_arg.t`.

Sourceval register_indexed_subcontext : 'key t -> list: ('key -> 'arg list Tezos_protocol_environment_007_PsDELPH1.Error_monad.tzresult Tezos_protocol_environment_007_PsDELPH1.Lwt.t) -> ('key, 'arg, 'sub_key) args -> 'sub_key t

Return a description for a indexed sub-context. All keys registered in the subcontext will be shared by the external context. One should provide a function to list all the registered index in the context.

Helpers for manipulating and defining indexes.

Sourceval pack : ('key, 'a, 'sub_key) args -> 'key -> 'a -> 'sub_key
Sourceval unpack : ('key, 'a, 'sub_key) args -> 'sub_key -> 'key * 'a
Sourcemodule type INDEX = sig ... end
OCaml

Innovation. Community. Security.