Tezos_context_tezedge.ContextThis module implements the signature of src/lib_protocol_environment/environment_context_intf.ml. Most functions are in Lwt because it needs to follow the module's signature, but we could remove most of it and just wrap it where it's purely necessary.
module Tezedge = Octez_rust_tezos_context.Rust_tezedge_gentype patch_context = t -> t Tezos_base.TzPervasives.tzresult Lwt.ttype tree = Tezedge.treeval mem_tree : t -> string list -> bool Lwt.tval find_raw : t -> string list -> bytes optionval find : t -> string list -> bytes option Lwt.tval find_tree : t -> string list -> Tezedge.tree option Lwt.tval list :
t ->
?offset:int ->
?length:int ->
string list ->
(string * Tezedge.tree) list Lwt.tval length : t -> string list -> int Lwt.tval add_tree : t -> string list -> Tezedge.tree -> t Lwt.tmodule Tree : sig ... endval get_protocol : t -> Tezos_base.TzPervasives.Protocol_hash.t Lwt.tmodule Proof = Tezos_context_sigs.Context.Proof_typesval fold :
?depth:[< `Eq of int | `Ge of int | `Gt of int | `Le of int | `Lt of int ] ->
t ->
string list ->
order:[< `Sorted | `Undefined ] ->
init:'a ->
f:(string list -> Tezedge.tree -> 'a -> 'a Lwt.t) ->
'a Lwt.tval mem : t -> string list -> bool Lwt.tval init : ?patch_context:patch_context -> string -> indexval close : index -> unitval raw_commit :
time:Tezos_base.TzPervasives.Time.Protocol.t ->
?message:string ->
t ->
bytesval commit :
time:Tezos_base.TzPervasives.Time.Protocol.t ->
?message:string ->
t ->
Tezos_base.TzPervasives.Context_hash.t Lwt.tval add_protocol : t -> Tezos_base.TzPervasives.Protocol_hash.t -> t Lwt.tval add_test_chain :
t ->
Tezos_base.TzPervasives.Test_chain_status.t ->
t Lwt.tval fork_test_chain :
t ->
protocol:Tezos_crypto.Hashed.Protocol_hash.t ->
expiration:Tezos_base.Time.Protocol.t ->
t Lwt.tval hash :
time:Tezos_base.TzPervasives.Time.Protocol.t ->
?message:string ->
t ->
Tezos_base.TzPervasives.Context_hash.tval commit_genesis :
index ->
chain_id:'a ->
time:Tezos_base.TzPervasives.Time.Protocol.t ->
protocol:Tezos_base.TzPervasives.Protocol_hash.t ->
(Tezos_base.TzPervasives.Context_hash.t, Tezos_base.TzPervasives.tztrace)
Stdlib.result
Lwt.tval exists : index -> 'a -> boolval checkout_exn : index -> Tezos_base.TzPervasives.Context_hash.t -> t Lwt.tval set_protocol : t -> Tezos_base.TzPervasives.Protocol_hash.t -> t Lwt.tval get_test_chain : t -> Tezos_base.TzPervasives.Test_chain_status.t Lwt.tval add_predecessor_block_metadata_hash :
t ->
Tezos_base.TzPervasives.Block_metadata_hash.t ->
t Lwt.tval add_predecessor_ops_metadata_hash :
t ->
Tezos_base.TzPervasives.Operation_metadata_list_list_hash.t ->
t Lwt.tval compute_testchain_genesis :
Tezos_base.TzPervasives.Block_hash.t ->
Tezos_base.TzPervasives.Block_hash.tval compute_testchain_chain_id :
Tezos_base.TzPervasives.Block_hash.t ->
Tezos_base.TzPervasives.Chain_id.tval export_snapshot : index -> 'a -> path:string -> unit