Module Evm_node_lib_dev.Events

General purposes events.

val section : string list

Default section for events.

Error encoding specific to the EVM node that wraps the default error encoding for event.

Use it to prevent the command `list events` to show all existing octez error.

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_dev_encoding.Evm_events.Upgrade.t -> unit Lwt.t

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

val pending_sequencer_upgrade : Evm_node_lib_dev_encoding.Evm_events.Sequencer_upgrade.t -> unit Lwt.t

pending_sequencer_upgrade upgrade advertises that the EVM node is aware that a sequencer upgrade is pending.

applied_sequencer_upgrade sequencer level advertises that the sequencer of the EVM node successfully upgraded to sequencer before the levelth blueprint.

applied_sequencer_upgrade sequencer level advertises that the sequencer of the EVM node failed to upgrade to sequencer before the levelth blueprint.

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 ignored_periodic_snapshot : unit -> unit Lwt.t

ignored_periodic_snapshot_arg () advertises that the EVM node has ignored the request to create periodic snapshots when garbage collecting since it was started in Archive mode.

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 -> websockets:bool -> backend:Evm_node_config.Configuration.rpc_server -> unit Lwt.t

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

val legacy_mode : unit -> unit Lwt.t

legacy_mode () advertises the EVM node is using the legacy block storage.

val spawn_rpc_is_ready : unit -> unit Lwt.t

spawn_rpc_is_ready () advertises that the RPC spawned with experimental feature spawn_rpc has made its public endpoint available.

val private_server_is_ready : rpc_addr:string -> rpc_port:int -> websockets:bool -> backend:Evm_node_config.Configuration.rpc_server -> unit Lwt.t

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

val rpc_server_error : exn -> unit
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 string_from_kernel_log_level : kernel_log_level -> string
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
val preload_kernel : string -> unit Lwt.t

preload_kernel version advertizes the EVM node has preloaded in the module cache the kernel version.

val patched_state : string -> Evm_node_lib_dev_encoding.Ethereum_types.quantity -> unit Lwt.t
val predownload_kernel : Tezos_base.TzPervasives.Hex.t -> unit Lwt.t

predownload_kernel root_hash advertizes the EVM node has downloaded all preimages under root_hash.

val predownload_kernel_failed : Tezos_base.TzPervasives.Hex.t -> Tezos_base.TzPervasives.tztrace -> unit Lwt.t

predownload_kernel_failed root_hash error advertizes the EVM node has failed to download preimages under root_hash with error.

val sandbox_started : Z.t -> unit Lwt.t

sandbox_started level advertizes that sandbox mode started on top of level level.

val cannot_fetch_time_between_blocks : Evm_node_config.Configuration.time_between_blocks -> Tezos_base.TzPervasives.tztrace -> unit Lwt.t
val invalid_node_da_fees : node_da_fees:Z.t -> kernel_da_fees:Z.t -> block_number:Evm_node_lib_dev_encoding.Ethereum_types.quantity option -> call:Tezos_base.TzPervasives.Data_encoding.json -> unit Lwt.t
val deprecation_note : string -> unit Lwt.t
val replay_csv_available : string -> unit Lwt.t

replay_csv_available filename advertises that filename is now available for analysis or debugging purposes.

val wasm_pvm_fallback : unit -> unit Lwt.t

wasm_pvm_fallback () advertises that the node has to fallback to the PVM to execute a block, which is slow.

val rpc_call_fallback : string -> Tezos_base.TzPervasives.tztrace -> unit Lwt.t

rpc_call_fallback service_name error advertises that the node has to fallback to an alternative RPC because one is unavailable.

val missing_chain_id : unit -> unit Lwt.t

missing_chain_id () advertises that the node could not check the consistency of the stored chain id with the selected network.

val missing_block : int32 -> unit Lwt.t

missing_block level advertises that the node could not find the block in level despite having received an event saying it would be available.

val multichain_node_singlechain_kernel : unit -> unit Lwt.t

multichain_node_singlechain_kernel () warns that the node was configured to be executed in a multichain environment, but was given a kernel for a single chain environment.

val importing_snapshot : string -> unit Lwt.t
val importing_legacy_snapshot : unit -> unit Lwt.t

Emit a warning that the imported snapshot uses the legacy block storage.

val exporting_snapshot : string -> unit Lwt.t
val still_exporting_snapshot : total:int -> progress:int -> string -> Ptime.Span.t -> unit Lwt.t
val finished_exporting_snapshot : string -> unit Lwt.t
val compressing_snapshot : string -> unit Lwt.t
val still_compressing_snapshot : total:int -> progress:int -> string -> Ptime.Span.t -> unit Lwt.t
val import_finished : unit -> unit Lwt.t
val import_snapshot_archive_in_progress : archive_name:string -> elapsed_time:Tezos_base.TzPervasives.Time.System.Span.t -> unit Lwt.t

import_snapshot_archive_in_progress ~archive_name ~elapsed_time advertises that the node is importing the snapshot archive named archive_name, and explicitly mentions the time elapsed since the extraction started.

val replicate_transaction_dropped : Evm_node_lib_dev_encoding.Ethereum_types.hash -> string -> unit Lwt.t

replicate_transaction_dropped hash reason advertises that the transaction hash was dropped because it is now invalid in the sandbox.