Shell: fill some placeholder docs
This commit is contained in:
parent
ee735c33cf
commit
b2b1c8e30b
@ -53,8 +53,13 @@ let rec pp fmt = function
|
|||||||
let encoding =
|
let encoding =
|
||||||
let open Data_encoding in
|
let open Data_encoding in
|
||||||
def "fitness"
|
def "fitness"
|
||||||
~title: "Fitness"
|
~title: "Block fitness"
|
||||||
~description: "... FIXME ..." @@
|
~description:
|
||||||
|
"The fitness, or score, of a block, that allow the Tezos to \
|
||||||
|
decide which chain is the best. A fitness value is a list of \
|
||||||
|
byte sequences. They are compared as follows: shortest lists \
|
||||||
|
are smaller; lists of the same length are compared according to \
|
||||||
|
the lexicographical order." @@
|
||||||
splitted
|
splitted
|
||||||
~json: (list bytes)
|
~json: (list bytes)
|
||||||
~binary:
|
~binary:
|
||||||
|
@ -392,7 +392,7 @@ module Make(Proto : PROTO)(Next_proto : PROTO) = struct
|
|||||||
let list_arg =
|
let list_arg =
|
||||||
let name = "list_offset" in
|
let name = "list_offset" in
|
||||||
let descr =
|
let descr =
|
||||||
"..." in
|
"Index `n` of the requested validation pass." in
|
||||||
let construct = string_of_int in
|
let construct = string_of_int in
|
||||||
let destruct s =
|
let destruct s =
|
||||||
try Ok (int_of_string s)
|
try Ok (int_of_string s)
|
||||||
@ -402,7 +402,7 @@ module Make(Proto : PROTO)(Next_proto : PROTO) = struct
|
|||||||
let offset_arg =
|
let offset_arg =
|
||||||
let name = "operation_offset" in
|
let name = "operation_offset" in
|
||||||
let descr =
|
let descr =
|
||||||
"..." in
|
"Index `m` of the requested operation in its validation pass." in
|
||||||
let construct = string_of_int in
|
let construct = string_of_int in
|
||||||
let destruct s =
|
let destruct s =
|
||||||
try Ok (int_of_string s)
|
try Ok (int_of_string s)
|
||||||
|
@ -15,7 +15,12 @@ module S = struct
|
|||||||
|
|
||||||
let bootstrapped =
|
let bootstrapped =
|
||||||
RPC_service.get_service
|
RPC_service.get_service
|
||||||
~description:""
|
~description:
|
||||||
|
"Wait for the node to have synchronized its chain with a few \
|
||||||
|
peers (configured by the node's administrator), streaming \
|
||||||
|
head updates that happen during the bootstrapping process, \
|
||||||
|
and closing the stream at the end. If the node was already \
|
||||||
|
bootstrapped, returns the current head immediately."
|
||||||
~query: RPC_query.empty
|
~query: RPC_query.empty
|
||||||
~output: (obj2
|
~output: (obj2
|
||||||
(req "block" Block_hash.encoding)
|
(req "block" Block_hash.encoding)
|
||||||
@ -39,7 +44,9 @@ module S = struct
|
|||||||
|
|
||||||
let valid_blocks =
|
let valid_blocks =
|
||||||
RPC_service.get_service
|
RPC_service.get_service
|
||||||
~description:""
|
~description:"Monitor all blocks that are succesfully validated \
|
||||||
|
by the node, disregarding whether they were \
|
||||||
|
selected as the new head or not."
|
||||||
~query: valid_blocks_query
|
~query: valid_blocks_query
|
||||||
~output: (obj2
|
~output: (obj2
|
||||||
(req "chain_id" Chain_id.encoding)
|
(req "chain_id" Chain_id.encoding)
|
||||||
@ -57,14 +64,17 @@ module S = struct
|
|||||||
|
|
||||||
let heads =
|
let heads =
|
||||||
RPC_service.get_service
|
RPC_service.get_service
|
||||||
~description:""
|
~description:"Monitor all blocks that are succesfully validated \
|
||||||
|
by the node and selected as the new head of the \
|
||||||
|
given chain."
|
||||||
~query: heads_query
|
~query: heads_query
|
||||||
~output: Block_hash.encoding
|
~output: Block_hash.encoding
|
||||||
RPC_path.(path / "heads" /: Chain_services.chain_arg)
|
RPC_path.(path / "heads" /: Chain_services.chain_arg)
|
||||||
|
|
||||||
let protocols =
|
let protocols =
|
||||||
RPC_service.get_service
|
RPC_service.get_service
|
||||||
~description:"...FIXME..."
|
~description:"Monitor all economic protocols that are retrieved \
|
||||||
|
and succesfully loaded and compiled by the node."
|
||||||
~query: RPC_query.empty
|
~query: RPC_query.empty
|
||||||
~output: Protocol_hash.encoding
|
~output: Protocol_hash.encoding
|
||||||
RPC_path.(path / "protocols")
|
RPC_path.(path / "protocols")
|
||||||
|
Loading…
Reference in New Issue
Block a user