package octez-smart-rollup-node-lib

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

Module Store_v2.MessagesSource

Storage for persisting messages downloaded from the L1 node.

Sourcetype +'a t

The type of indexed file store.

Returns true if the key has a value associated in the store.

Returns the header for a key if it exists in the store.

Read a full value and header from the indexed file store.

Sourceval append : ?flush:bool -> [> `Write ] t -> key:Octez_smart_rollup.Merkelized_payload_hashes_hash.t -> header:Tezos_base.TzPervasives.Block_hash.t -> value:string list -> unit Tezos_base.TzPervasives.tzresult Lwt.t

Append a new binding to the indexed file store.

Sourceval load : path:string -> cache_size:int -> 'a Tezos_layer2_store.Store_sigs.mode -> 'a t Tezos_base.TzPervasives.tzresult Lwt.t

Loads a new or existing indexed file store in the directory path.

Sourceval close : _ t -> unit Tezos_base.TzPervasives.tzresult Lwt.t

Close the index and the file. One must call load again to read or write data in the store.

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

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

OCaml

Innovation. Community. Security.