package octez-smart-rollup-node-lib

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type level =
  1. | First_known of int32
  2. | Activation_level of int32
type proto_info = {
  1. level : level;
    (*

    The level at which we have seen the protocol for the first time, either because we saw its activation or because the first block we saw (at the origination of the rollup) was from this protocol.

    *)
  2. proto_level : int;
    (*

    The protocol level, i.e. its number in the sequence of protocol activations on the chain.

    *)
  3. protocol : Tezos_base.TzPervasives.Protocol_hash.t;
    (*

    The protocol this information concerns.

    *)
}

Each element of this type represents information we have about a Tezos protocol regarding its activation.

include Tezos_layer2_store.Indexed_store.SINGLETON_STORE with type value = proto_info list
type +'a t
type value = proto_info list
val load : path:string -> 'a Tezos_layer2_store.Store_sigs.mode -> 'a t Tezos_base.TzPervasives.tzresult Lwt.t
val read : [> `Read ] t -> value option Tezos_base.TzPervasives.tzresult Lwt.t
val write : [> `Write ] t -> value -> unit Tezos_base.TzPervasives.tzresult Lwt.t
val delete : [> `Write ] t -> unit Tezos_base.TzPervasives.tzresult Lwt.t
val readonly : [> `Read ] t -> [ `Read ] t
OCaml

Innovation. Community. Security.