Tezos_raw_protocol_011_PtHangz2.Script_reprDefines a Michelson expression representation as a Micheline node with canonical (int) location and Michelson_v1_primitives.prim as content.
Types expr and node both define representation of Michelson expressions and are indeed the same type internally, although this is not visible outside Micheline due to interface abstraction.
Locations are used by Micheline mostly for error-reporting and pretty- printing expressions. canonical_location is simply an int.
Annotations attached to Michelson expressions.
type expr =
Michelson_v1_primitives.prim
Tezos_protocol_environment_011_PtHangz2.Micheline.canonicalRepresents a Michelson expression as canonical Micheline.
type lazy_expr =
expr Tezos_protocol_environment_011_PtHangz2.Data_encoding.lazy_tA record containing either an underlying serialized representation of an expression or a deserialized one, or both. If either is absent, it will be computed on-demand.
type node =
(location, Michelson_v1_primitives.prim)
Tezos_protocol_environment_011_PtHangz2.Micheline.nodeSame as expr, but used in different contexts, as required by Micheline's abstract interface.
val location_encoding :
location Tezos_protocol_environment_011_PtHangz2.Data_encoding.tval expr_encoding :
expr Tezos_protocol_environment_011_PtHangz2.Data_encoding.tval lazy_expr_encoding :
lazy_expr Tezos_protocol_environment_011_PtHangz2.Data_encoding.tType t joins the contract's code and storage in a single record.
val encoding : t Tezos_protocol_environment_011_PtHangz2.Data_encoding.encodingval deserialization_cost_estimated_from_bytes : int -> Gas_limit_repr.costval deserialized_cost : expr -> Gas_limit_repr.costval serialized_cost : bytes -> Gas_limit_repr.costval bytes_node_cost : bytes -> Gas_limit_repr.costval force_decode_cost : lazy_expr -> Gas_limit_repr.costval force_decode :
lazy_expr ->
expr Tezos_protocol_environment_011_PtHangz2.Error_monad.tzresultval force_bytes_cost : lazy_expr -> Gas_limit_repr.costval force_bytes :
lazy_expr ->
bytes Tezos_protocol_environment_011_PtHangz2.Error_monad.tzresultval unit_parameter : lazy_exprval is_unit_parameter : lazy_expr -> boolval strip_locations_cost : node -> Gas_limit_repr.costmodule Micheline_size : sig ... endval micheline_nodes : node -> intmicheline_nodes root returns the number of internal nodes in the micheline expression held from root.