package tezos-protocol-007-PsDELPH1
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
    
    
  sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f
    
    
  doc/tezos-protocol-007-PsDELPH1.raw/Tezos_raw_protocol_007_PsDELPH1/Storage_description/index.html
Module Tezos_raw_protocol_007_PsDELPH1.Storage_descriptionSource
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.
Create a empty context description, keys will be registered by side effects.
val register_value : 
  'key t ->
  get:
    ('key ->
      'a option Tezos_protocol_environment_007_PsDELPH1.Error_monad.tzresult
        Tezos_protocol_environment_007_PsDELPH1.Lwt.t) ->
  'a Tezos_protocol_environment_007_PsDELPH1.Data_encoding.t ->
  unitRegister a single key accessor at a given path.
Return a description for a prefixed fragment of the given context. All keys registered in the subcontext will be shared by the external context
type (_, _, _) args = - | One : {- rpc_arg : 'a Tezos_protocol_environment_007_PsDELPH1.RPC_arg.t;
- encoding : 'a Tezos_protocol_environment_007_PsDELPH1.Data_encoding.t;
- compare : 'a -> 'a -> int;
 - } -> ('key, 'a, 'key * 'a) args
- | 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`.
val 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 tReturn 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.