package tezos-protocol-alpha

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

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-16.1.tar.gz
sha256=43723d096307603703a1a89ed1b2eb202b365f5e7824b96b0cbf813b343a6cf7
sha512=b2a637f2e965000d3d49ad85277ca24d6cb07a1a7cf2bc69d296d8b03ad78c3eaa8e21e94b9162e62c2e11649cd03bc845b2a3dafe623b91065df69d47dc8e4f

doc/tezos-protocol-alpha.raw/Tezos_raw_protocol_alpha/Carbonated_map/index.html

Module Tezos_raw_protocol_alpha.Carbonated_mapSource

An in-memory data-structure for a key-value map where all operations account for gas costs.

Sourcemodule type S = sig ... end
Sourcemodule type GAS = sig ... end

This module is used to provide the function for consuming gas when constructing carbonated maps.

Sourcemodule type COMPARABLE = sig ... end

Standard Compare.COMPARE extended with a compare_cost function specifying the cost for comparing values.

Sourcemodule Make_builder (C : COMPARABLE) : sig ... end

A functor for exposing the type of a carbonated map before the carbonated make is created. This is useful in scenarios where the map that will need to be carbonated is defined before the gas consuming functions for the carbonation are available. See for example Raw_context.

Sourcemodule Make (G : GAS) (C : COMPARABLE) : S with type key = C.t and type context = G.context

A functor for building gas metered maps. When building a gas metered map via Make(G)(C), C is a COMPARABLE required to construct a the map while G is a module providing the gas consuming functions. The type of the context on which the gas consuming function operates is determined by G.context.

OCaml

Innovation. Community. Security.