Mavryk_context_memory.ContextVariant of Mavryk_context.Context purely in-memory.
val equal_config :
Mavryk_context_sigs.Config.t ->
Mavryk_context_sigs.Config.t ->
boolval config : t -> Mavryk_context_sigs.Config.tmodule Proof : sig ... endtype node_key = Mavryk_base.TzPervasives.Context_hash.ttype value_key = Mavryk_base.TzPervasives.Context_hash.tmodule Tree : sig ... endval produce_tree_proof :
index ->
kinded_key ->
(tree -> (tree * 'a) Lwt.t) ->
(Proof.tree Proof.t * 'a) Lwt.tval verify_tree_proof :
Proof.tree Proof.t ->
(tree -> (tree * 'a) Lwt.t) ->
(tree * 'a,
[ `Proof_mismatch of string
| `Stream_too_long of string
| `Stream_too_short of string ])
Stdlib.result
Lwt.tval produce_stream_proof :
index ->
kinded_key ->
(tree -> (tree * 'a) Lwt.t) ->
(Proof.stream Proof.t * 'a) Lwt.tval verify_stream_proof :
Proof.stream Proof.t ->
(tree -> (tree * 'a) Lwt.t) ->
(tree * 'a,
[ `Proof_mismatch of string
| `Stream_too_long of string
| `Stream_too_short of string ])
Stdlib.result
Lwt.ttype context = tval init :
?patch_context:(context -> context Mavryk_base.TzPervasives.tzresult Lwt.t) ->
?readonly:bool ->
?index_log_size:int ->
string ->
index Lwt.tval close : index -> unit Lwt.tval compute_testchain_chain_id :
Mavryk_base.TzPervasives.Block_hash.t ->
Mavryk_base.TzPervasives.Chain_id.tval compute_testchain_genesis :
Mavryk_base.TzPervasives.Block_hash.t ->
Mavryk_base.TzPervasives.Block_hash.tval is_empty : t -> boolval commit_genesis :
index ->
chain_id:Mavryk_base.TzPervasives.Chain_id.t ->
time:Mavryk_base.TzPervasives.Time.Protocol.t ->
protocol:Mavryk_base.TzPervasives.Protocol_hash.t ->
Mavryk_base.TzPervasives.Context_hash.t Mavryk_base.TzPervasives.tzresult
Lwt.tval commit_test_chain_genesis :
context ->
Mavryk_base.TzPervasives.Block_header.t ->
Mavryk_base.TzPervasives.Block_header.t Lwt.tval merkle_tree :
t ->
Mavryk_context_sigs__Context.Proof_types.merkle_leaf_kind ->
key ->
Mavryk_context_sigs__Context.Proof_types.merkle_node
Mavryk_base.TzPervasives.String.Map.t
Lwt.tval merkle_tree_v2 :
t ->
Mavryk_context_sigs__Context.Proof_types.merkle_leaf_kind ->
key ->
Proof.tree Proof.t Lwt.tval exists : index -> Mavryk_base.TzPervasives.Context_hash.t -> bool Lwt.tval checkout :
index ->
Mavryk_base.TzPervasives.Context_hash.t ->
context option Lwt.tval checkout_exn :
index ->
Mavryk_base.TzPervasives.Context_hash.t ->
context Lwt.tval hash :
time:Mavryk_base.TzPervasives.Time.Protocol.t ->
?message:string ->
t ->
Mavryk_base.TzPervasives.Context_hash.tval commit :
time:Mavryk_base.TzPervasives.Time.Protocol.t ->
?message:string ->
context ->
Mavryk_base.TzPervasives.Context_hash.t Lwt.tval gc : index -> Mavryk_base.TzPervasives.Context_hash.t -> unit Lwt.tval wait_gc_completion : index -> unit Lwt.tval sync : index -> unit Lwt.tval is_gc_allowed : index -> boolval split : index -> unit Lwt.tval export_snapshot :
index ->
Mavryk_base.TzPervasives.Context_hash.t ->
path:string ->
unit Lwt.tval set_head :
index ->
Mavryk_crypto.Hashed.Chain_id.t ->
Mavryk_base.TzPervasives.Context_hash.t ->
unit Lwt.tval set_master : index -> Mavryk_base.TzPervasives.Context_hash.t -> unit Lwt.tval get_hash_version :
context ->
Mavryk_base.TzPervasives.Context_hash.Version.tval set_hash_version :
context ->
Mavryk_base.TzPervasives.Context_hash.Version.t ->
context Mavryk_base.TzPervasives.tzresult Lwt.tval get_protocol : context -> Mavryk_base.TzPervasives.Protocol_hash.t Lwt.tval add_protocol :
context ->
Mavryk_base.TzPervasives.Protocol_hash.t ->
context Lwt.tval get_test_chain :
context ->
Mavryk_base.TzPervasives.Test_chain_status.t Lwt.tval add_test_chain :
context ->
Mavryk_base.TzPervasives.Test_chain_status.t ->
context Lwt.tval fork_test_chain :
context ->
protocol:Mavryk_base.TzPervasives.Protocol_hash.t ->
expiration:Mavryk_base.TzPervasives.Time.Protocol.t ->
context Lwt.tval clear_test_chain :
index ->
Mavryk_base.TzPervasives.Chain_id.t ->
unit Lwt.tval find_predecessor_block_metadata_hash :
context ->
Mavryk_base.TzPervasives.Block_metadata_hash.t option Lwt.tval add_predecessor_block_metadata_hash :
context ->
Mavryk_base.TzPervasives.Block_metadata_hash.t ->
context Lwt.tval find_predecessor_ops_metadata_hash :
context ->
Mavryk_base.TzPervasives.Operation_metadata_list_list_hash.t option Lwt.tval add_predecessor_ops_metadata_hash :
context ->
Mavryk_base.TzPervasives.Operation_metadata_list_list_hash.t ->
context Lwt.tval encoding : t Mavryk_base.TzPervasives.Data_encoding.tval make_empty_context : ?root:string -> unit -> tval make_empty_tree : unit -> tree