package tezos-protocol-003-PsddFKi3
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a
doc/tezos_raw_protocol_003_PsddFKi3/Tezos_raw_protocol_003_PsddFKi3/Storage_description/index.html
Module Tezos_raw_protocol_003_PsddFKi3.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 registred by side effects.
val register_value :
'key t ->
get:
('key ->
'a option Tezos_protocol_environment_003_PsddFKi3.Error_monad.tzresult
Tezos_protocol_environment_003_PsddFKi3.Lwt.t) ->
'a Tezos_protocol_environment_003_PsddFKi3.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 registred in the subcontext will be shared by the external context
type (_, _, _) args = | One : {rpc_arg : 'a Tezos_protocol_environment_003_PsddFKi3.RPC_arg.t;encoding : 'a Tezos_protocol_environment_003_PsddFKi3.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_003_PsddFKi3.Error_monad.tzresult
Tezos_protocol_environment_003_PsddFKi3.Lwt.t) ->
('key, 'arg, 'sub_key) args ->
'sub_key tReturn a description for a indexed sub-context. All keys registred in the subcontext will be shared by the external context. One should provide a function to list all the registred index in the context.
Helpers for manipulating and defining indexes.