Tezt_tezos.TezindexTezindex process wrapper for Tezt tests.
val run :
?runner:Tezt_wrapper.Runner.t ->
?path:string ->
?name:string ->
node:Node.t ->
?rpc_port:int ->
?watched_addresses:string list ->
unit ->
trun ?runner ?path ?name ~node ?rpc_port () spawns a tezindex process connected to node. A fresh temporary directory is used for --base-dir and a fresh port for the RPC server unless rpc_port is provided.
val wait_for_ready : ?attempts:int -> t -> unit Lwt.twait_for_ready ?attempts t polls the /health endpoint until it responds (up to attempts times, default 30, with 1s delay).
val get_v1_rewards_split :
t ->
baker:string ->
cycle:int ->
Tezt_wrapper.JSON.t Lwt.tget_v1_rewards_split t ~baker ~cycle queries the /v1/rewards/split/{baker}/{cycle} endpoint and returns the parsed JSON response.