package archetype

  1. Overview
  2. Docs
module M = Model
module T = Michelson
type lcc = {
  1. line : int;
  2. col : int;
  3. char : int;
}
val lcc_to_yojson : lcc -> Yojson.Safe.t
type range = {
  1. name : string;
  2. begin_ : lcc;
  3. end_ : lcc;
}
val range_to_yojson : range -> Yojson.Safe.t
type node_micheline =
  1. | Nprim of prim
  2. | Nstring of string
  3. | Nbytes of string
  4. | Nint of string
  5. | Narray of micheline list
and prim = {
  1. prim : string;
  2. args : micheline list;
  3. annots : string list;
}
and micheline = {
  1. node : node_micheline;
  2. debug : T.debug option;
}
val show_node_micheline : node_micheline -> Ppx_deriving_runtime.string
val show_micheline : micheline -> Ppx_deriving_runtime.string
type arg = {
  1. name : string;
  2. type_ : string;
}
val arg_to_yojson : arg -> Yojson.Safe.t
type entrypoint = {
  1. name : string;
  2. args : arg list;
  3. range : range;
}
val entrypoint_to_yojson : entrypoint -> Yojson.Safe.t
val show_entrypoint : entrypoint -> Ppx_deriving_runtime.string
type storage_item = {
  1. name : string;
  2. type_ : string;
  3. value : string option;
}
val storage_item_to_yojson : storage_item -> Yojson.Safe.t
val show_storage_item : storage_item -> Ppx_deriving_runtime.string
type interface = {
  1. entrypoints : entrypoint list;
  2. storage : storage_item list;
  3. const_params : storage_item list;
}
val interface_to_yojson : interface -> Yojson.Safe.t
val show_interface : interface -> Ppx_deriving_runtime.string
type debug_trace = {
  1. name : string;
  2. path : string;
  3. interface : interface;
  4. contract : micheline;
}
val show_debug_trace : debug_trace -> Ppx_deriving_runtime.string
val mk_micheline : ?debug:T.debug -> node_micheline -> micheline
val mk_mich_prim : ?debug:T.debug -> ?args:micheline list -> ?annots:string list -> string -> micheline
val mk_mich_string : ?debug:T.debug -> string -> micheline
val mk_mich_bytes : ?debug:T.debug -> string -> micheline
val mk_mich_int : ?debug:T.debug -> string -> micheline
val mk_mich_int_int : ?debug:T.debug -> int -> micheline
val mk_mich_array : ?debug:T.debug -> micheline list -> micheline
val type_to_micheline : T.type_ -> micheline
val data_to_micheline : T.data -> micheline
val obj_micheline_to_micheline : T.obj_micheline -> micheline
val code_to_micheline : T.code -> micheline
val for_interface : M.model -> interface
val generate_debug_trace_json : M.model -> T.michelson -> debug_trace
val pp_range : Format.formatter -> Location.t -> unit
val pp_decl_bound : Format.formatter -> T.decl_bound -> unit
val pp_debug_ : Format.formatter -> T.debug -> unit
val pp_micheline_ : Core.Format.formatter -> micheline -> unit
val pp_trace_json : Format.formatter -> debug_trace -> unit
OCaml

Innovation. Community. Security.