Evm_node_lib_dev.Snapshotstype Tezos_base.TzPervasives.error += | Invalid_snapshot_file of string| Invalid_snapshot_provider of string| Data_dir_populated of string| History_mode_mismatch of Evm_node_config.Configuration.history_mode
* Evm_node_config.Configuration.history_mode| Incorrect_rollup of Octez_smart_rollup.Address.t * Octez_smart_rollup.Address.t| Outdated_snapshot of Z.t * Z.ttype metadata = | V1 of {rollup_address : Octez_smart_rollup.Address.t;current_level : Evm_node_lib_dev_encoding.Ethereum_types.quantity;history_mode : Evm_node_config.Configuration.history_mode;first_level : Evm_node_lib_dev_encoding.Ethereum_types.quantity;}val interpolate_snapshot_file :
Evm_node_lib_dev_encoding.Ethereum_types.quantity ->
Octez_smart_rollup.Address.t ->
Evm_node_config.Configuration.history_mode ->
string ->
string Tezos_base.TzPervasives.tzresultinterpolate_snapshot_file block_number rollup_address history_mode path replaces placeholders in the given snapshot path with the provided values. The supported placeholders are:
%l for the block number%r for the rollup address (short form)%R for the rollup address (long form)%h for the history modeval interpolate_snapshot_provider :
?rollup_address:Octez_smart_rollup.Address.t ->
?network:Evm_node_config.Configuration.supported_network ->
Evm_node_config.Configuration.history_mode ->
string ->
string Tezos_base.TzPervasives.tzresultinterpolate_snapshot_provider ?rollup_address ?network history_mode provider replaces placeholders in the given snapshot provider with the provided values. The supported placeholders are:
%n for the network name%r for the rollup address (short form)%R for the rollup address (long form)%h for the history modeval export :
?desync_path:string ->
?chunk_size:Tezos_layer2_store.Desync_snapshots.chunk_size ->
?progress:bool ->
target_store:string ->
?target_dir:string ->
?index_file:string ->
data_dir:string ->
unit ->
string Tezos_base.TzPervasives.tzresult Lwt.texport ?desync_path ?chunk_size ?progress ~target_store ?target_dir ?index_file ~data_dir () exports the data from an EVM node data directory to a snapshot index file and snapshot data in the target_store for deduplication.
val info :
?desync_path:string ->
source_store:string ->
?index_dir:string ->
index_file:string ->
unit ->
(metadata * int) Tezos_base.TzPervasives.tzresult Lwt.tinfo ?desync_path ~source_store ?index_dir ~index_file () returns the metadata and the size of a snapshot.
val import :
?desync_path:string ->
force:bool ->
?history_mode:Evm_node_config.Configuration.history_mode ->
source_store:string ->
?index_dir:string ->
index_file:string ->
data_dir:string ->
unit ->
Evm_node_config.Configuration.history_mode option
Tezos_base.TzPervasives.tzresult
Lwt.timport ?desync_path ~force ?history_mode ~source_store ?index_dir ~index_file ~data_dir () imports a snapshot into an EVM node data directory.