package scaml

  1. Overview
  2. Docs
exception Overflow
exception Rounded

Between OCaml and Micheline

val of_micheline : 'a Typerep_lib.Std.Typerep.t -> Michelson.Micheline.parsed -> 'a option
val to_micheline : 'a Typerep_lib.Std.Typerep.t -> 'a -> Michelson.Micheline.t
val to_michelson : 'a Typerep_lib.Std.Typerep.t -> 'a -> Michelson.Constant.t

Between OCaml and SCaml represetation of Michelson

val of_michelson : 'a Typerep_lib.Std.Typerep.t -> Michelson.Constant.t -> 'a option

Between Micheline and SCaml representation of Michelson

val micheline_of_michelson : Michelson.Constant.t -> Michelson.Micheline.t
val to_michelson_type : 'a Typerep_lib.Std.Typerep.t -> Michelson.Type.t

Conversion from OCaml/SCaml type to Michelson type