package tezt-tezos

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Client.AdminSource

Run octez-admin-client commands.

Sourceval trust_address : ?endpoint:endpoint -> peer:Node.t -> t -> unit Lwt.t

Ask a node to trust the address and port of another node.

Sourceval untrust_address : ?endpoint:endpoint -> peer:Node.t -> t -> unit Lwt.t

Ask a node to untrust the address and port of another node.

Sourceval spawn_trust_address : ?endpoint:endpoint -> peer:Node.t -> t -> Tezt_wrapper.Process.t

Same as trust_address, but do not wait for the process to exit.

Sourceval spawn_untrust_address : ?endpoint:endpoint -> peer:Node.t -> t -> Tezt_wrapper.Process.t

Same as untrust_address, but do not wait for the process to exit.

Sourceval connect_address : ?endpoint:endpoint -> peer:Node.t -> t -> unit Lwt.t

Connect a node to another peer.

Sourceval spawn_connect_address : ?endpoint:endpoint -> peer:Node.t -> t -> Tezt_wrapper.Process.t

Same as connect_address, but do not wait for the process to exit.

Sourceval kick_peer : ?endpoint:endpoint -> peer:string -> t -> unit Lwt.t

Kick a peer.

peer is the identity of the peer to kick. You can get it with Node.wait_for_identity for instance.

Sourceval spawn_kick_peer : ?endpoint:endpoint -> peer:string -> t -> Tezt_wrapper.Process.t

Same as kick_peer, but do not wait for the process to exit.

Sourceval ban_peer : ?endpoint:endpoint -> peer:string -> t -> unit Lwt.t

Ban a peer.

peer is the identity of the peer to ban. You can get it with Node.wait_for_identity for instance.

Sourceval spawn_ban_peer : ?endpoint:endpoint -> peer:string -> t -> Tezt_wrapper.Process.t

Same as ban_peer, but do not wait for the process to exit.

Sourceval p2p_stat : ?endpoint:endpoint -> t -> string Lwt.t

Run octez-admin-client p2p stat.

Sourceval spawn_p2p_stat : ?endpoint:endpoint -> t -> Tezt_wrapper.Process.t

Same as p2p_stat, but do not wait for the process to exit.

Sourceval inject_protocol : ?endpoint:endpoint -> protocol_path:string -> t -> string Lwt.t

Run octez-admin-client inject protocol <protocol_path>.

Returns the hash of the injected protocol.

Sourceval spawn_inject_protocol : ?endpoint:endpoint -> protocol_path:string -> t -> Tezt_wrapper.Process.t

Same as inject_protocol, but do not wait for the process to exit.

Sourceval list_protocols : ?endpoint:endpoint -> t -> string list Lwt.t

Run octez-admin-client list protocols and return the list of protocol hashes.

Sourceval spawn_list_protocols : ?endpoint:endpoint -> t -> Tezt_wrapper.Process.t

Same as list_protocols, but do not wait for the process to exit.

Sourceval protocol_environment : ?endpoint:endpoint -> t -> string -> string Lwt.t

Run octez-admin-client protocol environment on a protocol hash.

Return its environment version as a string such as "V1".

Sourceval spawn_protocol_environment : ?endpoint:endpoint -> t -> string -> Tezt_wrapper.Process.t

Same as protocol_environment, but do not wait for the process to exit.

OCaml

Innovation. Community. Security.