Store_v2.Lpc
Storage containing a single commitment for the last published commitment.
val load :
path:string ->
'a Mavryk_layer2_store.Store_sigs.mode ->
'a t Mavryk_base.TzPervasives.tzresult Lwt.t
Load (or initializes) a singleton store in the file path
.
val read :
[> `Read ] t ->
Mavkit_smart_rollup.Commitment.t option Mavryk_base.TzPervasives.tzresult
Lwt.t
Reads the current value from the disk. Returns None
if the file does not exist.
val write :
[> `Write ] t ->
Mavkit_smart_rollup.Commitment.t ->
unit Mavryk_base.TzPervasives.tzresult Lwt.t
Write the value to disk.
val delete : [> `Write ] t -> unit Mavryk_base.TzPervasives.tzresult Lwt.t
Deletes the value from the disk.