package octez-smart-rollup-node-lib

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

Module Store_v2.LccSource

Storage containing the last cemented commitment.

Sourcetype lcc = {
  1. commitment : Octez_smart_rollup.Commitment.Hash.t;
  2. level : int32;
}
include Tezos_layer2_store.Indexed_store.SINGLETON_STORE with type value := lcc
Sourcetype +'a t

The type of the singleton store.

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

Sourceval read : [> `Read ] t -> lcc option Tezos_base.TzPervasives.tzresult Lwt.t

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

Sourceval write : [> `Write ] t -> lcc -> unit Tezos_base.TzPervasives.tzresult Lwt.t

Write the value to disk.

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

Deletes the value from the disk.

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

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

OCaml

Innovation. Community. Security.