package tezos-protocol-alpha
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a
doc/tezos_raw_protocol_alpha/Tezos_raw_protocol_alpha/Carbonated_map/index.html
Module Tezos_raw_protocol_alpha.Carbonated_map
Source
An in-memory data-structure for a key-value map where all operations account for gas costs.
This module is used to provide the function for consuming gas when constructing carbonated maps.
Standard Compare.COMPARE
extended with a compare_cost
function specifying the cost for comparing values.
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
.
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
.