package tezos-protocol-013-PtJakart

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Like Make_data_set_storage, adding tracking of storage cost.

Parameters

module C : Raw_context.T
module I : INDEX

Signature

type t = C.t
type context = t
type elt = I.t

The type of elements.

Tells whether an elt is a member of the set. Consumes Gas_repr.read_bytes_cost Z.zero

Adds an elt as a member of the set. Consumes Gas_repr.write_bytes_cost <size of the new value>. Returns the the new size.

Adds an elt as a member of the set. Consumes Gas_repr.write_bytes_cost <size of the new value>. Returns the new size, and true if the value previously existed.

Removes an elt from the set ; does nothing if not a member. Consumes Gas_repr.write_bytes_cost Z.zero. Returns the freed size, and a boolean indicating if a value was already associated to this key.

val fold_keys_unaccounted : context -> order:[ `Sorted | `Undefined ] -> init:'acc -> f:(elt -> 'acc -> 'acc Tezos_protocol_environment_013_PtJakart.Lwt.t) -> 'acc Tezos_protocol_environment_013_PtJakart.Lwt.t
OCaml

Innovation. Community. Security.