Storage mapping commitment hashes to the level when they were published by the rollup node. It only contains hashes of commitments published by this rollup node.
Published slot headers per block hash, stored as a list of bindings from Dal_slot_index.t to Dal.Slot.t. The encoding function converts this list into a Dal.Slot_index.t-indexed map.
Dal_slot_pages is a Store_utils.Nested_map used to store the contents of dal slots fetched by the rollup node, as a list of pages. The values of this storage module have type `string list`. A value of the form page_contents refers to a page of a slot that has been confirmed, and whose contents are page_contents.
Dal_processed_slots is a Store_utils.Nested_map used to store the processing status of dal slots content fetched by the rollup node. The values of this storage module have type ``Confirmed | `Unconfirmed`, depending on whether the content of the slot has been confirmed or not. If an entry is not present for a (block_hash, slot_index), this either means that it's not processed yet.
val close : _t->unit Tezos_base.TzPervasives.tzresultLwt.t
close store closes the store.
val load :
'aTezos_layer2_store.Store_sigs.mode->index_buffer_size:int ->l2_blocks_cache_size:int ->string ->'astoreTezos_base.TzPervasives.tzresultLwt.t
load mode ~index_buffer_size ~l2_blocks_cache_size directory loads a store from the data persisted in directory. If mode is Store_sigs.Read_only, then the indexes and irmin store will be opened in readonly mode and only read operations will be permitted. This allows to open a store for read access that is already opened in Store_sigs.Read_write mode in another process. index_buffer_size is the maximum cache size in memory before it is flushed to disk. l2_blocks_cache_size is the number of L2 blocks the rollup node will keep in memory.
readonly store returns a read-only version of store.
val iter_l2_blocks :
?progress:string ->Metadata.t->_t->(Octez_smart_rollup.Sc_rollup_block.t ->unit Tezos_base.TzPervasives.tzresultLwt.t)->unit Tezos_base.TzPervasives.tzresultLwt.t
iter_l2_blocks ?progress metadata store f iterates f on all L2 blocks reachable from the head, from newest to oldest. If progress is provided, a progress bar is displayed with the progress messages during the iteration.
val gc : rw->level:int32 ->unit Tezos_base.TzPervasives.tzresultLwt.t
gc store ~level asynchronously garbage collects everything from the store that concerns blocks for levels below level.