package octez-smart-rollup-node-lib

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

This module defines functions that emit the events used for the rollup node when it is storing and publishing commitments (see Commitment).

val starting : unit -> unit Lwt.t
val stopping : unit -> unit Lwt.t
val section : string list

Section for commitment events.

commitment_stored commitment_hash commitment emits the event that the commitment was stored.

val commitment_will_not_be_published : int32 -> Octez_smart_rollup.Commitment.t -> unit Lwt.t

commitment_will_not_be_published level commitment emits the event that commitment will not be published: its inbox level is less or equal than the last cemented commitment level.

val last_cemented_commitment_updated : Octez_smart_rollup.Commitment.Hash.t -> int32 -> unit Lwt.t

last_cemented_commitment_updated hash level emits the event that the last cemented commitment was updated to the given hash at the given inbox level.

val last_published_commitment_updated : Octez_smart_rollup.Commitment.Hash.t -> int32 -> unit Lwt.t

last_published_commitment_updated hash level emits the event that the last published commitment was updated to the given hash at the given inbox level.

val commitment_parent_is_not_lcc : int32 -> Octez_smart_rollup.Commitment.Hash.t -> Octez_smart_rollup.Commitment.Hash.t -> unit Lwt.t

commitment_parent_is_not_lcc predecessor_hash last_cemented_commitment_hash emits the event that a commitment at the given inbox level is being published, whose parent is the last cemented commitment, but the commitment's predecessor_hash differs from the last_cemented_commitment_hash. This is a critical error, the rollup node will be terminated.

val compute_commitment : int32 -> unit Lwt.t

compute_commitment level emits the event that a new commitment is being computed and stored for the block at the given level.

val publish_commitment : Octez_smart_rollup.Commitment.Hash.t -> int32 -> unit Lwt.t

publish_commitment hash level emits the event that a new commitment is being published.

module Publisher : sig ... end

Events emmitted by the Publisher worker

OCaml

Innovation. Community. Security.