Module Tezt_tezos.Yes_wallet

type alias = {
  1. alias : string;
  2. address : string;
  3. public_key : string;
}
type aliases =
  1. | File of string
  2. | List of alias list
type consensus_key_mapping = {
  1. name : string;
  2. public_key_hash : string;
  3. consensus_public_key_hash : string;
  4. consensus_public_key : string;
}
type t
val create : ?runner:Tezt_wrapper.Runner.t -> ?path:string -> ?name:string -> unit -> t
val create_from_context : ?aliases:aliases -> node:Node.t -> client:Client.t -> network:string -> t -> string Lwt.t

Initialize a client wallet

yes_wallet.exe create \
    from context <DATA_DIR> \
    in <BASE_DIR> \
    --network network \
    --aliases <ALIASES_FILE_PATH> \
    --force \
    --active-bakers-only

<DATA_DIR> is defined by node and <BASE_DIR> from client

Returns <ALIASES_FILE_PATH>, which is either the file provided via ~aliases:(File "filename") or the path where aliases passed as ~aliases:(List aliases) have been dumped.

val convert_wallet_inplace : client:Client.t -> t -> unit Lwt.t

Initialize a client wallet

yes_wallet.exe convert \
    wallet <BASE_DIR> \
    inplace \
    --force \

<BASE_DIR> is defined by client

val load_consensus_key_mapping : t -> client:Client.t -> consensus_key_mapping list Lwt.t

Loads the consensus key mapping generated by the yes wallet and returns it.