Module Durable_storage.Make

Parameters

module Reader : READER

Signature

val inspect_durable_and_decode_opt : Durable_storage_path.path -> (bytes -> 'a) -> ('b option, Mavryk_base.TzPervasives.tztrace) Stdlib.result Lwt.t
val inspect_durable_and_decode : Durable_storage_path.path -> (bytes -> 'a) -> ('b, Mavryk_base.TzPervasives.tztrace) Stdlib.result Lwt.t
exception Invalid_block_structure of string
exception Invalid_block_index of Z.t
val current_block_number : unit -> (Evm_node_lib_prod_encoding.Ethereum_types.block_height, Mavryk_base.TzPervasives.tztrace) Stdlib.result Lwt.t
val populate_tx_objects : full_transaction_object:bool -> Evm_node_lib_prod_encoding.Ethereum_types.block -> (Evm_node_lib_prod_encoding.Ethereum_types.block, Mavryk_base.TzPervasives.tztrace) Stdlib.result Lwt.t
val blocks_by_number : full_transaction_object:bool -> number:Durable_storage_path.Block.number -> (Evm_node_lib_prod_encoding.Ethereum_types.block, Mavryk_base.TzPervasives.tztrace) Stdlib.result Lwt.t
val current_block : full_transaction_object:bool -> (Evm_node_lib_prod_encoding.Ethereum_types.block, Mavryk_base.TzPervasives.tztrace) Stdlib.result Lwt.t
val nth_block : full_transaction_object:bool -> Z.t -> (Evm_node_lib_prod_encoding.Ethereum_types.block, Mavryk_base.TzPervasives.tztrace) Stdlib.result Lwt.t
val nth_block_hash : Z.t -> (Evm_node_lib_prod_encoding.Ethereum_types.block_hash option, Mavryk_base.TzPervasives.tztrace) Stdlib.result Lwt.t
val base_fee_per_gas : unit -> (Evm_node_lib_prod_encoding.Ethereum_types.quantity, Mavryk_base.TzPervasives.tztrace) Stdlib.result Lwt.t
val kernel_version : unit -> (string, Mavryk_base.TzPervasives.tztrace) Stdlib.result Lwt.t
val kernel_root_hash : unit -> (string option, Mavryk_base.TzPervasives.tztrace) Stdlib.result Lwt.t