package tezos-protocol-016-PtMumbai

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

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-17.3.tar.gz
sha256=7062cd57addd452852598a2214ade393130efa087b99068d53713bdf912b3680
sha512=08e4091144a03ce3c107fb91a66501bd8b65ca3278917c455a2eaac6df3e108ade63f6ab8340a4bb152d60f404326e464d0ec95d26cafe8e82f870465d24a5fc

doc/tezos-protocol-016-PtMumbai.raw/Tezos_raw_protocol_016_PtMumbai/Script_repr/index.html

Module Tezos_raw_protocol_016_PtMumbai.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 bytes_node_cost : bytes -> Gas_limit_repr.cost
Sourceval force_decode_cost : lazy_expr -> Gas_limit_repr.cost

Returns (a lower bound on) the cost to deserialize a lazy_expr. If the expression has already been deserialized (i.e. the lazy expression contains the deserialized value or both the bytes representation and the deserialized value) then the cost is free.

Sourceval stable_force_decode_cost : lazy_expr -> Gas_limit_repr.cost

Like force_decode_cost, excepted that the returned cost does not depend on the internal state of the lazy_expr. This means that the cost is never free (excepted for zero bytes expressions).

Sourceval force_bytes_cost : lazy_expr -> Gas_limit_repr.cost

Returns the cost to serialize a lazy_expr. If the expression has already been deserialized (i.e. le lazy expression contains the bytes representation or both the bytes representation and the deserialized value) then the cost is free.

Sourceval unit : expr
Sourceval unit_parameter : lazy_expr
Sourceval is_unit : expr -> bool
Sourceval is_unit_parameter : lazy_expr -> bool
Sourceval strip_annotations : node -> node
Sourceval strip_locations_cost : _ michelson_node -> Gas_limit_repr.cost
Sourceval strip_annotations_cost : node -> Gas_limit_repr.cost
Sourceval micheline_serialization_cost : expr -> Gas_limit_repr.cost

Computes the cost of serializing a given term.

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 : ('loc, 'prim) Tezos_protocol_environment_016_PtMumbai.Micheline.node -> 'acc -> ('acc -> ('loc, 'prim) Tezos_protocol_environment_016_PtMumbai.Micheline.node -> 'acc) -> 'acc

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

OCaml

Innovation. Community. Security.