package tezos-protocol-005-PsBabyM1
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc
doc/tezos-protocol-005-PsBabyM1.raw/Tezos_raw_protocol_005_PsBabyM1/Storage_description/index.html
Module Tezos_raw_protocol_005_PsBabyM1.Storage_description
Source
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_005_PsBabyM1.Error_monad.tzresult
Tezos_protocol_environment_005_PsBabyM1.Lwt.t) ->
'a Tezos_protocol_environment_005_PsBabyM1.Data_encoding.t ->
unit
Register 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_005_PsBabyM1.RPC_arg.t;
encoding : 'a Tezos_protocol_environment_005_PsBabyM1.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_005_PsBabyM1.Error_monad.tzresult
Tezos_protocol_environment_005_PsBabyM1.Lwt.t) ->
('key, 'arg, 'sub_key) args ->
'sub_key t
Return 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.