Update to the latest ocplib-resto.
This commit is contained in:
parent
cbee2ecfe7
commit
6c9cfde9be
@ -22,7 +22,7 @@ module Arg : sig
|
|||||||
name:string ->
|
name:string ->
|
||||||
destruct:(string -> ('a, string) result) ->
|
destruct:(string -> ('a, string) result) ->
|
||||||
construct:('a -> string) ->
|
construct:('a -> string) ->
|
||||||
'a arg
|
unit -> 'a arg
|
||||||
|
|
||||||
type descr = {
|
type descr = {
|
||||||
name: string ;
|
name: string ;
|
||||||
|
@ -90,7 +90,7 @@ module Blocks = struct
|
|||||||
| `Test_prevalidation -> "test_prevalidation"
|
| `Test_prevalidation -> "test_prevalidation"
|
||||||
| `Hash h -> Block_hash.to_b48check h in
|
| `Hash h -> Block_hash.to_b48check h in
|
||||||
let destruct = parse_block in
|
let destruct = parse_block in
|
||||||
RPC.Arg.make ~name ~descr ~construct ~destruct
|
RPC.Arg.make ~name ~descr ~construct ~destruct ()
|
||||||
|
|
||||||
type preapply_param = {
|
type preapply_param = {
|
||||||
operations: Operation_hash.t list ;
|
operations: Operation_hash.t list ;
|
||||||
@ -341,7 +341,7 @@ module Operations = struct
|
|||||||
let destruct h =
|
let destruct h =
|
||||||
try Ok (Operation_hash.of_b48check h)
|
try Ok (Operation_hash.of_b48check h)
|
||||||
with _ -> Error "Can't parse hash" in
|
with _ -> Error "Can't parse hash" in
|
||||||
RPC.Arg.make ~name ~descr ~construct ~destruct
|
RPC.Arg.make ~name ~descr ~construct ~destruct ()
|
||||||
|
|
||||||
let bytes =
|
let bytes =
|
||||||
RPC.service
|
RPC.service
|
||||||
|
@ -125,6 +125,7 @@ let arg =
|
|||||||
~name: "contract_id"
|
~name: "contract_id"
|
||||||
~construct
|
~construct
|
||||||
~destruct
|
~destruct
|
||||||
|
()
|
||||||
|
|
||||||
let compare l1 l2 =
|
let compare l1 l2 =
|
||||||
match l1, l2 with
|
match l1, l2 with
|
||||||
|
@ -22,6 +22,7 @@ let arg =
|
|||||||
~name: "block_cycle"
|
~name: "block_cycle"
|
||||||
~construct
|
~construct
|
||||||
~destruct
|
~destruct
|
||||||
|
()
|
||||||
|
|
||||||
let pp ppf cycle = Format.fprintf ppf "%ld" cycle
|
let pp ppf cycle = Format.fprintf ppf "%ld" cycle
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ let arg =
|
|||||||
~name: "block_level"
|
~name: "block_level"
|
||||||
~construct
|
~construct
|
||||||
~destruct
|
~destruct
|
||||||
|
()
|
||||||
|
|
||||||
let root = 0l
|
let root = 0l
|
||||||
let succ = Int32.succ
|
let succ = Int32.succ
|
||||||
|
@ -187,6 +187,7 @@ module Context = struct
|
|||||||
~name: "public_key_hash"
|
~name: "public_key_hash"
|
||||||
~construct
|
~construct
|
||||||
~destruct
|
~destruct
|
||||||
|
()
|
||||||
|
|
||||||
let pk_encoding =
|
let pk_encoding =
|
||||||
(obj2
|
(obj2
|
||||||
|
@ -23,6 +23,7 @@ let arg =
|
|||||||
~name: "voting_period"
|
~name: "voting_period"
|
||||||
~construct
|
~construct
|
||||||
~destruct
|
~destruct
|
||||||
|
()
|
||||||
|
|
||||||
let root = 0l
|
let root = 0l
|
||||||
let succ = Int32.succ
|
let succ = Int32.succ
|
||||||
|
@ -13,7 +13,7 @@ module Arg : sig
|
|||||||
name:string ->
|
name:string ->
|
||||||
destruct:(string -> ('a, string) result) ->
|
destruct:(string -> ('a, string) result) ->
|
||||||
construct:('a -> string) ->
|
construct:('a -> string) ->
|
||||||
'a arg
|
unit -> 'a arg
|
||||||
|
|
||||||
type descr = {
|
type descr = {
|
||||||
name: string ;
|
name: string ;
|
||||||
|
Loading…
Reference in New Issue
Block a user