Tezt_mavryk.Dac_clientval create :
?runner:Tezt_wrapper.Runner.t ->
?name:string ->
?path:string ->
?base_dir:string ->
?color:Tezt_wrapper.Log.Color.t ->
Dac_node.t ->
tcreate ?runner ?name ?base_dir ?color dac_node creates a new Dac_client.t that can be used to send commands to dac_node.
val create_with_endpoint :
?runner:Tezt_wrapper.Runner.t ->
?name:string ->
?path:string ->
?base_dir:string ->
?color:Tezt_wrapper.Log.Color.t ->
endpoint ->
tcreate_with_endpoint also creates a new Dac_client.t, but without assuming the DAC node the client will interact with is a node managed by Tezt.
The output of a dac client command. Can be either a root hash or a certificate.
val send_hex_payload :
?hooks:Tezt_wrapper.Process_hooks.t ->
?threshold:int ->
t ->
Hex.t ->
output Lwt.tsend_hex_payload ?hooks ?threshold dac_client hex sends the Hex payload hex to the coordinator of dac_client. If the threshold value is specified, the command will wait for a Certificate with an amount of signatures greater or equal to threshold, before returning. Otherwise, the Root_hash of the payload is returned.
val send_payload_from_file :
?hooks:Tezt_wrapper.Process_hooks.t ->
?threshold:int ->
t ->
string ->
output Lwt.tsend_payload_from_file ?hooks ?threshold dac_client filename reads the payload content from file and sends it to the coordinator of dac_client. If the threshold value is specified, then the command will wait for a Certificate with an amount of signatures greater or equal to threshold, before returning. Otherwise, the Root_hash of the payload is returned.