package octez-smart-rollup-node-lib

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

Data related to the effects of garbage collection.

type levels = {
  1. last_gc_level : int32;
    (*

    Records the last level at which GC was called.

    *)
  2. first_available_level : int32;
    (*

    Records the first level for which data is guaranteed to be stored. Data for all previous levels might have been removed.

    *)
}
include Tezos_layer2_store.Indexed_store.SINGLETON_STORE with type value = levels
type +'a t

The type of the singleton store.

type value = levels

The type of values stored in this singleton store.

Load (or initializes) a singleton store in the file path.

val read : [> `Read ] t -> value option Tezos_base.TzPervasives.tzresult Lwt.t

Reads the current value from the disk. Returns None if the file does not exist.

val write : [> `Write ] t -> value -> unit Tezos_base.TzPervasives.tzresult Lwt.t

Write the value to disk.

val delete : [> `Write ] t -> unit Tezos_base.TzPervasives.tzresult Lwt.t

Deletes the value from the disk.

val readonly : [> `Read ] t -> [ `Read ] t

readonly t returns a read only version of the store t.

OCaml

Innovation. Community. Security.