Client: describe unsigned data commands
This commit is contained in:
parent
0a88f1887c
commit
ec7eeaaa0e
@ -48,6 +48,10 @@ let alphanet =
|
||||
{ Clic.name = "alphanet" ;
|
||||
title = "Alphanet only commands" }
|
||||
|
||||
let binary_description =
|
||||
{ Clic.name = "description" ;
|
||||
title = "Binary Description" }
|
||||
|
||||
let commands () =
|
||||
let open Clic in
|
||||
[
|
||||
@ -369,4 +373,28 @@ let commands () =
|
||||
return ()
|
||||
end ;
|
||||
|
||||
command ~group:binary_description ~desc:"Describe unsigned block header"
|
||||
no_options
|
||||
(fixed [ "describe" ; "unsigned" ; "block" ; "header" ])
|
||||
begin fun () (cctxt : Proto_alpha.full) ->
|
||||
cctxt#message "%a"
|
||||
Data_encoding.Binary_schema.pp
|
||||
(Data_encoding.Binary.describe
|
||||
~toplevel_name:"Unsigned block header"
|
||||
(Alpha_context.Block_header.unsigned_encoding)) >>= fun () ->
|
||||
return ()
|
||||
end ;
|
||||
|
||||
command ~group:binary_description ~desc:"Describe unsigned block header"
|
||||
no_options
|
||||
(fixed [ "describe" ; "unsigned" ; "operation" ])
|
||||
begin fun () (cctxt : Proto_alpha.full) ->
|
||||
cctxt#message "%a"
|
||||
Data_encoding.Binary_schema.pp
|
||||
(Data_encoding.Binary.describe
|
||||
~toplevel_name:"Unsigned operation"
|
||||
Alpha_context.Operation.unsigned_encoding) >>= fun () ->
|
||||
return ()
|
||||
end
|
||||
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user