Injector_protocol.Make
module Parameters : Injector_sigs.PARAMETERS
type proto_client =
(module Injector_sigs.PROTOCOL_CLIENT
with type operation = Parameters.Operation.t
and type state = Parameters.state)
val register : Mavryk_base.TzPervasives.Protocol_hash.t -> proto_client -> unit
Register a protocol client for a specific protocol to be used by the injector.
val proto_client_for_protocol :
Mavryk_base.TzPervasives.Protocol_hash.t ->
proto_client
Return the protocol client for a given protocol.
val registered_proto_clients :
unit ->
(Mavryk_base.TzPervasives.Protocol_hash.t * proto_client) list
Returns the list of protocol clients registered.
val check_registered_proto_clients :
Parameters.state ->
(unit, Mavryk_base.TzPervasives.tztrace) Stdlib.result
Runs the checks
functions on all registered protocol clients for the injector.