Module Mavryk_protocol_environment_genesis.Data_encoding
type json = [
|
`A of json list
|
`Bool of bool
|
`Float of float
|
`Null
|
`O of (string * json) list
|
`String of string
]
type json_schema = Mavryk_base.TzPervasives.Data_encoding.json_schema
type !'a t = 'a Mavryk_base.TzPervasives.Data_encoding.t
val classify : 'a encoding -> [ `Dynamic | `Fixed of int | `Variable ]
val string_enum : (string * 'a) list -> 'a encoding
module Fixed : sig ... end
val dynamic_size :
?kind:[ `Uint16 | `Uint30 | `Uint8 ] ->
'a encoding ->
'a 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 union : ?tag_size:[ `Uint16 | `Uint8 ] -> 't case list -> 't 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 apply_lazy :
fun_value:('a -> 'b) ->
fun_bytes:(MBytes.t -> 'b) ->
fun_combine:('b -> 'b -> 'b) ->
'a lazy_t ->
'b
module Json : sig ... end