Pvm.ContextThis module defines the signature of an abstract PVM durable storage backend * type which can be parameterised with a concrete implementation `S`
The type of trees stored in the context, i.e. the actual data.
type 'a index = private | Index : {index : ('a, 'repo) Tezos_layer2_store.Context_sigs.index;impl : ('repo, 'tree) impl;} -> 'a indexThe type of indexed repository for contexts. The parameter indicates if the index can be written or only read.
type 'a t = private | Context : {index : ('a, 'repo) Tezos_layer2_store.Context_sigs.index;tree : 'tree;impl : ('repo, 'tree) impl;} -> 'a tThe type of context with its content.
type hash = Tezos_layer2_store.Smart_rollup_context_hash.tA context hash is the hash produced when the data of the context is committed to disk, i.e. the commit hash.
val load :
('repo, 'tree) impl ->
cache_size:int ->
?async_domain:bool ->
([< `Read | `Write Read ] as 'a) Tezos_layer2_store.Access_mode.t ->
string ->
'a index Tezos_base.TzPervasives.tzresult Lwt.tload cache_size path initializes from disk a context from path. cache_size allows to change the LRU cache size of Irmin (100_000 by default at irmin-pack/config.ml
val reload : ro_index -> unitcommit ?message context commits content of the context context on disk, and return the commit hash.
empty ctxt is the context with an empty content for the repository ctxt.
val split : _ index -> unitsplit ctxt creates a new suffix file, also called "chunk", into the Irmin's file hierarchy. This split function is expected to be called after committing a commit that will be a future candidate for a GC target.
gc index ?callback hash removes all data older than hash from disk. If passed, callback will be executed when garbage collection finishes.
val wait_gc_completion : [> `Write ] index -> unit Lwt.twait_gc_completion index will return a blocking thread if a GC run is currently ongoing.