package octez-smart-rollup-node-lib

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

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.

type element = {
  1. first_published_at_level : int32;
    (*

    The level at which this commitment was first published.

    *)
  2. published_at_level : int32 option;
    (*

    The level at which we published this commitment. If first_published_at_level <> published_at_level it means that the commitment is republished.

    *)
}
include Tezos_layer2_store.Indexed_store.INDEXABLE_STORE with type key := Octez_smart_rollup.Commitment.Hash.t and type value := element
type +'a t
val load : path:string -> index_buffer_size:int -> 'a Tezos_layer2_store.Store_sigs.mode -> 'a t Tezos_base.TzPervasives.tzresult Lwt.t
val mem : [> `Read ] t -> Octez_smart_rollup.Commitment.Hash.t -> bool Tezos_base.TzPervasives.tzresult Lwt.t
val find : [> `Read ] t -> Octez_smart_rollup.Commitment.Hash.t -> element option Tezos_base.TzPervasives.tzresult Lwt.t
val add : ?flush:bool -> [> `Write ] t -> Octez_smart_rollup.Commitment.Hash.t -> element -> unit Tezos_base.TzPervasives.tzresult Lwt.t
val close : 'a t -> unit Tezos_base.TzPervasives.tzresult Lwt.t
val readonly : [> `Read ] t -> [ `Read ] t
val gc : ?async:bool -> Tezos_layer2_store.Store_sigs.rw t -> (Octez_smart_rollup.Commitment.Hash.t, element) Tezos_layer2_store__Indexed_store.gc_iterator -> unit Tezos_base.TzPervasives.tzresult Lwt.t
val wait_gc_completion : 'a t -> unit Lwt.t
val is_gc_finished : 'a t -> bool
OCaml

Innovation. Community. Security.