Evm_node_lib_dev.Data_dirtype store_info = {rollup_address : Octez_smart_rollup.Address.t;current_number : Evm_node_lib_dev_encoding.Ethereum_types.quantity;history_mode : Evm_node_config.Configuration.history_mode;first_number : Evm_node_lib_dev_encoding.Ethereum_types.quantity;}val export_store :
data_dir:string ->
output_db_file:string ->
unit Tezos_base.TzPervasives.tzresult Lwt.texport_store ~data_dir ~output_db_file exports a compacted copy of the store database from data_dir into output_db_file using SQLite VACUUM INTO. This is intended for non-archive history modes where the database is small enough for the vacuum to complete in a reasonable time.
val store_info :
data_dir:string ->
store_info Tezos_base.TzPervasives.tzresult Lwt.tstore_info ~data_dir returns metadata about the store database in data_dir: the rollup address, the current and first block numbers, and the history mode.
val lock : data_dir:string -> unit Tezos_base.TzPervasives.tzresult Lwt.tlock ~data_dir takes an exclusive lock on data_dir for the duration of the process. It fails if there is already another evm node with a lock.
val use :
data_dir:string ->
(unit -> 'a Tezos_base.TzPervasives.tzresult Lwt.t) ->
'a Tezos_base.TzPervasives.tzresult Lwt.tuse ~data_dir k creates data_dir if necessary before executing k (), and deletes data_dir if it was created and k () fails.