Update to the latest ocplib-resto.

This commit is contained in:
Grégoire Henry 2016-10-16 21:57:29 +02:00
parent cbee2ecfe7
commit 6c9cfde9be
8 changed files with 9 additions and 4 deletions

View File

@ -22,7 +22,7 @@ module Arg : sig
name:string ->
destruct:(string -> ('a, string) result) ->
construct:('a -> string) ->
'a arg
unit -> 'a arg
type descr = {
name: string ;

View File

@ -90,7 +90,7 @@ module Blocks = struct
| `Test_prevalidation -> "test_prevalidation"
| `Hash h -> Block_hash.to_b48check h in
let destruct = parse_block in
RPC.Arg.make ~name ~descr ~construct ~destruct
RPC.Arg.make ~name ~descr ~construct ~destruct ()
type preapply_param = {
operations: Operation_hash.t list ;
@ -341,7 +341,7 @@ module Operations = struct
let destruct h =
try Ok (Operation_hash.of_b48check h)
with _ -> Error "Can't parse hash" in
RPC.Arg.make ~name ~descr ~construct ~destruct
RPC.Arg.make ~name ~descr ~construct ~destruct ()
let bytes =
RPC.service

View File

@ -125,6 +125,7 @@ let arg =
~name: "contract_id"
~construct
~destruct
()
let compare l1 l2 =
match l1, l2 with

View File

@ -22,6 +22,7 @@ let arg =
~name: "block_cycle"
~construct
~destruct
()
let pp ppf cycle = Format.fprintf ppf "%ld" cycle

View File

@ -23,6 +23,7 @@ let arg =
~name: "block_level"
~construct
~destruct
()
let root = 0l
let succ = Int32.succ

View File

@ -187,6 +187,7 @@ module Context = struct
~name: "public_key_hash"
~construct
~destruct
()
let pk_encoding =
(obj2

View File

@ -23,6 +23,7 @@ let arg =
~name: "voting_period"
~construct
~destruct
()
let root = 0l
let succ = Int32.succ

View File

@ -13,7 +13,7 @@ module Arg : sig
name:string ->
destruct:(string -> ('a, string) result) ->
construct:('a -> string) ->
'a arg
unit -> 'a arg
type descr = {
name: string ;