Module Store_v2.Lpc

Storage containing a single commitment for the last published commitment.

type +'a t

The type of the singleton store.

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

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

Write the value to disk.

val delete : [> `Write ] t -> unit Mavryk_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.