Module Evm_node_lib_dev.Evm_events_follower

type parameters = {
  1. rollup_node_endpoint : Uri.t;
    (*

    Rollup node endpoint used to monitor kernel events.

    *)
  2. filter_event : Evm_node_lib_dev_encoding.Evm_events.t -> bool;
    (*

    Filter event the follower applies.

    *)
  3. keep_alive : bool;
}

start parameters starts the events follower.

val shutdown : unit -> unit Tezos_base.TzPervasives.tzresult Lwt.t

shutdown () stops the events follower.

val new_rollup_block : Stdlib.Int32.t -> unit Tezos_base.TzPervasives.tzresult Lwt.t

new_rollup_block rollup_level tells the worker that a new L2 head has been published and that the rollup head is now rollup_level.

Returns the status of the worker or an error if it was never started.

val available : unit -> bool

Returns true is the rollup node EVM events follower is starting or started.