package tezos-protocol-alpha

  1. Overview
  2. Docs
Tezos protocol alpha package

Install

Dune Dependency

Authors

Maintainers

Sources

octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13

doc/tezos_raw_protocol_alpha/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.