Module Mavryk_protocol_environment_001_PtAtLas.Data_encoding
type json = [
|
`A of json list
|
`Bool of bool
|
`Float of float
|
`Null
|
`O of (string * json) list
|
`String of string
]
type tag_size = [
|
`Uint16
|
`Uint8
]
type json_schema = Mavryk_base.TzPervasives.Data_encoding.json_schema
type !'a t = 'a Mavryk_base.TzPervasives.Data_encoding.t
type string_json_repr =
| Hex
| Plain
val classify : 'a encoding -> [ `Dynamic | `Fixed of int | `Variable ]
val ranged_int : int -> int -> int encoding
val uint_like_n : ?max_value:int -> unit -> int encoding
val int_like_z : ?min_value:int -> ?max_value:int -> unit -> int encoding
val list_with_length :
?max_length:int ->
[ `N | `Uint16 | `Uint30 | `Uint8 ] ->
'a encoding ->
'a list encoding
val req :
?title:string ->
?description:string ->
string ->
't encoding ->
't field
val opt :
?title:string ->
?description:string ->
string ->
't encoding ->
't option field
val varopt :
?title:string ->
?description:string ->
string ->
't encoding ->
't option field
val dft :
?title:string ->
?description:string ->
string ->
't encoding ->
't ->
't field
type case_tag =
| Tag of int
| Json_only
val case :
title:string ->
?description:string ->
case_tag ->
'a encoding ->
('t -> 'a option) ->
('a -> 't) ->
't case
val string_enum : (string * 'a) list -> 'a encoding
module Fixed : sig ... end
val dynamic_size :
?kind:[ `N | `Uint16 | `Uint30 | `Uint8 ] ->
'a encoding ->
'a encoding
val def :
string ->
?title:string ->
?description:string ->
't encoding ->
't encoding
type 'a lazy_t = 'a Mavryk_base.TzPervasives.Data_encoding.lazy_t
val force_decode : 'a lazy_t -> 'a option
val force_bytes : 'a lazy_t -> bytes
val apply_lazy :
fun_value:('a -> 'b) ->
fun_bytes:(bytes -> 'b) ->
fun_combine:('b -> 'b -> 'b) ->
'a lazy_t ->
'b
module Json : sig ... end