Module Evm_node_lib_prod.Evm_store

type t
val init : data_dir:string -> t Mavryk_base.TzPervasives.tzresult Lwt.t

init ~data_dir returns a handler to the EVM node store located under data_dir. If no store is located in data_dir, an empty store is created. Also returns if the store was created (true) or was already existing (false).

val with_transaction : t -> (t -> 'a Mavryk_base.TzPervasives.tzresult Lwt.t) -> 'a Mavryk_base.TzPervasives.tzresult Lwt.t

with_transaction store k wraps the accesses to store made in the continuation k within a SQL transaction. If k fails, the transaction is rollbacked. Otherwise, the transaction is committed.

val assert_in_transaction : t -> unit

assert_in_transaction store raises an exception if a transaction has not been started with store.

  • raises Assert_failure
module Blueprints : sig ... end
module Context_hashes : sig ... end
module Kernel_upgrades : sig ... end
module Delayed_transactions : sig ... end
module L1_latest_known_level : sig ... end