package tezos-protocol-011-PtHangz2

  1. Overview
  2. Docs
Tezos/Protocol: economic-protocol definition

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-16.0.tar.gz
sha256=ad9e08819871c75ba6f4530b125f7d157799398e4d77a1e6bfea9d91ff37ff55
sha512=c5dc4d40cc09bc6980fbbdb5c2e105bf4252cf9cfcb2b49660b0ebe4dc789f6709ec3b3bf2f87d81580d3eed9521eeb1c960f24d9b14eb0285aaba1f84d10a9b

doc/tezos-protocol-011-PtHangz2.raw/Tezos_raw_protocol_011_PtHangz2/Script_repr/index.html

Module Tezos_raw_protocol_011_PtHangz2.Script_reprSource

Defines 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.

Represents a Michelson expression as canonical Micheline.

A 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.

Same as expr, but used in different contexts, as required by Micheline's abstract interface.

Sourceval lazy_expr : expr -> lazy_expr
Sourcetype t = {
  1. code : lazy_expr;
  2. storage : lazy_expr;
}

Type t joins the contract's code and storage in a single record.

Sourceval deserialization_cost_estimated_from_bytes : int -> Gas_limit_repr.cost
Sourceval deserialized_cost : expr -> Gas_limit_repr.cost
Sourceval serialized_cost : bytes -> Gas_limit_repr.cost
Sourceval bytes_node_cost : bytes -> Gas_limit_repr.cost
Sourceval force_decode_cost : lazy_expr -> Gas_limit_repr.cost
Sourceval force_bytes_cost : lazy_expr -> Gas_limit_repr.cost
Sourceval unit_parameter : lazy_expr
Sourceval is_unit_parameter : lazy_expr -> bool
Sourceval strip_annotations : node -> node
Sourceval strip_locations_cost : node -> Gas_limit_repr.cost
Sourcemodule Micheline_size : sig ... end
Sourceval micheline_nodes : node -> int

micheline_nodes root returns the number of internal nodes in the micheline expression held from root.

Sourceval fold : node -> 'c -> ('c -> node -> 'c) -> 'c

fold node i f traverses node applying f on an accumulator initialized by i.

OCaml

Innovation. Community. Security.