Module Evm_node_lib_prod.Events

General purposes events.

val section : string list

Default section for events.

val received_upgrade : string -> unit Lwt.t

received_upgrade payload advertises that the sequencer received an upgrade of payload payload.

val pending_upgrade : Evm_node_lib_prod_encoding.Ethereum_types.Upgrade.t -> unit Lwt.t

pending_upgrade upgrade advertises that the EVM node is aware that an upgrade is pending.

applied_upgrade root_hash level advertises that the kernel of the EVM node successfully upgraded to root_hash with the levelth blueprint.

failed_upgrade root_hash level advertises that the kernel of the EVM node failed to upgrade to root_hash with the levelth blueprint.

val ignored_kernel_arg : unit -> unit Lwt.t

ignored_kernel_arg () advertises that the EVM node has ignored the path to the initial kernel given as a command-line argument since its EVM state was already initialized.

val catching_up_evm_event : from:int32 -> to_:int32 -> unit Lwt.t

catching_up_evm_event ~from ~to_ advertises that the sequencer is catching up on event produced by the evm kernel in the rollup node from L1 level from to to_.

val is_ready : rpc_addr:string -> rpc_port:int -> unit Lwt.t

is_ready ~rpc_addr ~rpc_port advertises that the sequencer is ready and listens to rpc_addr:rpc_port.

val private_server_is_ready : rpc_addr:string -> rpc_port:int -> unit Lwt.t

private_server_is_ready ~rpc_addr ~rpc_port advertises that the private rpc server is ready and listens to rpc_addr:rpc_port.

val shutdown_rpc_server : private_:bool -> unit Lwt.t

shutdown_rpc_server ~private_ () advertises that the RPC server was shut down, private_ tells whether it is the private server or not.

val shutdown_node : exit_status:int -> unit Lwt.t

shutdown_node ~exit_status advertises that the sequencer was shutdown, and exits with exit_status.

val callback_log : uri:string -> meth:string -> body:string -> unit Lwt.t

callback_log ~uri ~meth ~body is used as the debug event used as callback for resto to logs the requests.

type kernel_log_kind =
  1. | Application
  2. | Simulation
type kernel_log_level =
  1. | Debug
  2. | Info
  3. | Error
  4. | Fatal
val event_kernel_log : level:kernel_log_level -> kind:kernel_log_kind -> msg:string -> unit Lwt.t

Logs kernel log Debug.

val retrying_connect : endpoint:Uri.t -> delay:float -> unit Lwt.t