package tezos-client-base-unix

  1. Overview
  2. Docs
type cli_args = {
  1. chain : Tezos_shell_services.Chain_services.chain;
  2. block : Tezos_shell_services.Shell_services.block;
  3. confirmations : int option;
  4. password_filename : string option;
  5. protocol : Tezos_crypto.Protocol_hash.t option;
  6. print_timings : bool;
  7. log_requests : bool;
  8. client_mode : client_mode;
}
and client_mode = [
  1. | `Mode_client
  2. | `Mode_mockup
  3. | `Mode_proxy
]
val all_modes : [> `Mode_client | `Mode_mockup | `Mode_proxy ] list
val client_mode_to_string : [< `Mode_client | `Mode_mockup | `Mode_proxy ] -> string
type Tezos_base__TzPervasives.error +=
  1. | Invalid_endpoint_arg of string
type Tezos_base__TzPervasives.error +=
  1. | Suppressed_arg of {
    1. args : string list;
    2. by : string;
    }
type Tezos_base__TzPervasives.error +=
  1. | Invalid_chain_argument of string
type Tezos_base__TzPervasives.error +=
  1. | Invalid_block_argument of string
type Tezos_base__TzPervasives.error +=
  1. | Invalid_protocol_argument of string
type Tezos_base__TzPervasives.error +=
  1. | Invalid_port_arg of string
type Tezos_base__TzPervasives.error +=
  1. | Invalid_remote_signer_argument of string
type Tezos_base__TzPervasives.error +=
  1. | Invalid_wait_arg of string
type Tezos_base__TzPervasives.error +=
  1. | Invalid_mode_arg of string
val home : string
val base_dir_env_name : string
val default_base_dir : string
val default_chain : [> `Main ]
val default_block : [> `Head of int ]
val default_endpoint : Uri.t
module Cfg_file : sig ... end
val default_cli_args : cli_args
val string_parameter : unit -> (string, Tezos_client_base.Client_context.full) Tezos_clic.Clic.parameter
val endpoint_parameter : unit -> (Uri.t, 'a) Tezos_clic.Clic.parameter
val wait_parameter : unit -> (int option, 'a) Tezos_clic.Clic.parameter
val protocol_parameter : unit -> (Tezos_crypto.Protocol_hash.t option, 'a) Tezos_clic.Clic.parameter
val base_dir_arg : unit -> (string option, Tezos_client_base.Client_context.full) Tezos_clic.Clic.arg
val config_file_arg : unit -> (string option, Tezos_client_base.Client_context.full) Tezos_clic.Clic.arg
val timings_switch : unit -> (bool, 'a) Tezos_clic.Clic.arg
val wait_arg : unit -> (int option option, 'a) Tezos_clic.Clic.arg
val protocol_arg : unit -> (Tezos_crypto.Protocol_hash.t option option, 'a) Tezos_clic.Clic.arg
val log_requests_switch : unit -> (bool, 'a) Tezos_clic.Clic.arg
val addr_confdesc : string
val addr_arg : unit -> (string option, Tezos_client_base.Client_context.full) Tezos_clic.Clic.arg
val port_confdesc : string
val port_arg : unit -> (int option, 'a) Tezos_clic.Clic.arg
val tls_confdesc : string
val tls_switch : unit -> (bool, 'a) Tezos_clic.Clic.arg
val endpoint_confdesc : string
val endpoint_arg : unit -> (Uri.t option, 'a) Tezos_clic.Clic.arg
val remote_signer_arg : unit -> (Uri.t option, 'a) Tezos_clic.Clic.arg
val password_filename_arg : unit -> (string option, Tezos_client_base.Client_context.full) Tezos_clic.Clic.arg
val client_mode_arg : unit -> (client_mode, 'a) Tezos_clic.Clic.arg
val read_config_file : string -> (Cfg_file.t, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t
val fail_on_non_mockup_dir : Tezos_client_base.Client_context.full -> (unit, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t
val default_config_file_name : string
val mockup_bootstrap_accounts : string
val mockup_protocol_constants : string
val config_show_client : Tezos_client_base.Client_context.full -> string -> Cfg_file.t -> (unit, 'a) Stdlib.result Lwt.t
val config_show_mockup : Tezos_client_base.Client_context.full -> Tezos_crypto.Protocol_hash.t option -> string -> (unit, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t
val config_init_client : string -> Cfg_file.t -> unit Tezos_error_monad.Error_monad.tzresult Lwt.t
val config_init_mockup : Tezos_client_base.Client_context.full -> Tezos_crypto.Protocol_hash.t option -> string -> string -> string -> (unit, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t
val global_options : unit -> (string option * string option * bool * Tezos_shell_services.Chain_services.chain * Tezos_shell_services.Block_services.block * int option option * Tezos_crypto.Protocol_hash.t option option * bool * string option * int option * bool * Uri.t option * Uri.t option * string option * client_mode, Tezos_client_base.Client_context.full) Tezos_clic.Clic.options
type parsed_config_args = {
  1. parsed_config_file : Cfg_file.t option;
  2. parsed_args : cli_args option;
  3. config_commands : Tezos_client_base.Client_context.full Tezos_clic.Clic.command list;
  4. base_dir : string option;
  5. require_auth : bool;
  6. password_filename : string option;
}
val default_parsed_config_args : parsed_config_args
val check_base_dir_for_mode : Tezos_client_base.Client_context.full -> [< `Mode_client | `Mode_mockup | `Mode_proxy ] -> string -> (unit, Tezos_error_monad.TzCore.error list) Stdlib.result Lwt.t
val build_endpoint : string option -> int option -> bool option -> Uri.t
val parse_config_args : Tezos_client_base.Client_context.full -> string list -> (parsed_config_args * string list, Tezos_error_monad.Error_monad.tztrace) Stdlib.result Lwt.t
type t = string option * string option * bool * Tezos_shell_services.Shell_services.chain * Tezos_shell_services.Shell_services.block * int option option * Tezos_crypto.Protocol_hash.t option option * bool * string option * int option * bool * Uri.t option * Uri.t option * string option * client_mode
module type Remote_params = sig ... end
val other_registrations : (Cfg_file.t -> (module Remote_params) -> unit) option
val clic_commands : base_dir:'a -> config_commands:'b list -> builtin_commands:'b list -> other_commands:'b list -> require_auth:'c -> 'b list
val logger : 'a option
OCaml

Innovation. Community. Security.