Module Mavryk_client_base_unix.Client_config

type cli_args = {
  1. chain : Mavryk_shell_services.Chain_services.chain;
  2. block : Mavryk_shell_services.Shell_services.block;
  3. confirmations : int option;
  4. sources : Mavryk_proxy.Light.sources_config option;
  5. password_filename : string option;
  6. protocol : Mavryk_base.TzPervasives.Protocol_hash.t option;
  7. print_timings : bool;
  8. log_requests : bool;
  9. better_errors : bool;
  10. client_mode : client_mode;
}
and client_mode = [
  1. | `Mode_client
  2. | `Mode_light
  3. | `Mode_mockup
  4. | `Mode_proxy
]
val all_modes : [> `Mode_client | `Mode_light | `Mode_mockup | `Mode_proxy ] list
val client_mode_to_string : [< `Mode_client | `Mode_light | `Mode_mockup | `Mode_proxy ] -> string
type Mavryk_base.TzPervasives.error +=
  1. | Invalid_endpoint_arg of string
type Mavryk_base.TzPervasives.error +=
  1. | Invalid_media_type_arg of string
type Mavryk_base.TzPervasives.error +=
  1. | Suppressed_arg of {
    1. args : string list;
    2. by : string;
    }
type Mavryk_base.TzPervasives.error +=
  1. | Invalid_chain_argument of string
type Mavryk_base.TzPervasives.error +=
  1. | Invalid_block_argument of string
type Mavryk_base.TzPervasives.error +=
  1. | Invalid_protocol_argument of string
type Mavryk_base.TzPervasives.error +=
  1. | Invalid_port_arg of string
type Mavryk_base.TzPervasives.error +=
  1. | Invalid_remote_signer_argument of string
type Mavryk_base.TzPervasives.error +=
  1. | Invalid_wait_arg of string
type Mavryk_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
val default_daily_logs_path : 'a option
module Cfg_file : sig ... end
val default_cli_args : cli_args
val string_parameter : unit -> (string, 'a) Mavryk_clic.parameter
val endpoint_parameter : unit -> (Uri.t, 'a) Mavryk_clic.parameter
val sources_parameter : unit -> (Mavryk_proxy.Light.sources_config, 'a) Mavryk_clic.parameter
val wait_parameter : unit -> (int option, 'a) Mavryk_clic.parameter
val protocol_parameter : unit -> (Mavryk_base.TzPervasives.Protocol_hash.t option, 'a) Mavryk_clic.parameter
val base_dir_arg : unit -> (string option, 'a) Mavryk_clic.arg
val no_base_dir_warnings_switch : unit -> (bool, 'a) Mavryk_clic.arg
val config_file_arg : unit -> (string option, 'a) Mavryk_clic.arg
val timings_switch : unit -> (bool, 'a) Mavryk_clic.arg
val wait_arg : unit -> (int option option, 'a) Mavryk_clic.arg
val protocol_arg : unit -> (Mavryk_base.TzPervasives.Protocol_hash.t option option, 'a) Mavryk_clic.arg
val log_requests_switch : unit -> (bool, 'a) Mavryk_clic.arg
val better_errors : unit -> (bool, 'a) Mavryk_clic.arg
val addr_confdesc : string
val addr_arg : unit -> (string option, 'a) Mavryk_clic.arg
val port_confdesc : string
val port_arg : unit -> (int option, 'a) Mavryk_clic.arg
val tls_confdesc : string
val tls_switch : unit -> (bool, 'a) Mavryk_clic.arg
val media_type_confdesc : string
val endpoint_confdesc : string
val endpoint_arg : unit -> (Uri.t option, 'a) Mavryk_clic.arg
val sources_arg : unit -> (Mavryk_proxy.Light.sources_config option, 'a) Mavryk_clic.arg
val remote_signer_arg : unit -> (Uri.t option, 'a) Mavryk_clic.arg
val password_filename_arg : unit -> (string option, 'a) Mavryk_clic.arg
val client_mode_arg : unit -> (client_mode, 'a) Mavryk_clic.arg
val read_config_file : string -> Cfg_file.t Mavryk_base.TzPervasives.tzresult Lwt.t
val fail_on_non_mockup_dir : Mavryk_client_base.Client_context.full -> (unit, Mavryk_base.TzPervasives.tztrace) Stdlib.result Lwt.t
val default_config_file_name : string
val mockup_bootstrap_accounts : string
val mockup_protocol_constants : string
val config_show_client : Mavryk_client_base.Client_context.full -> string -> Cfg_file.t -> (unit, 'a) Stdlib.result Lwt.t
val config_show_mockup : Mavryk_client_base.Client_context.full -> Mavryk_base.TzPervasives.Protocol_hash.t option -> string -> (unit, Mavryk_base.TzPervasives.tztrace) Stdlib.result Lwt.t
val config_init_client : string -> Cfg_file.t -> unit Mavryk_error_monad.Error_monad.tzresult Lwt.t
val config_init_mockup : Mavryk_client_base.Client_context.full -> Mavryk_base.TzPervasives.Protocol_hash.t option -> string -> string -> string -> (unit, Mavryk_base.TzPervasives.tztrace) Stdlib.result Lwt.t
val global_options : unit -> (string option * bool * string option * bool * Mavryk_shell_services.Chain_services.chain * Mavryk_shell_services.Block_services.block * int option option * Mavryk_base.TzPervasives.Protocol_hash.t option option * bool * bool * string option * int option * bool * Mavryk_rpc_http.Media_type.Command_line.t option * Uri.t option * Mavryk_proxy.Light.sources_config option * Uri.t option * string option * client_mode, Mavryk_client_base.Client_context.full) Mavryk_clic.options
type parsed_config_args = {
  1. parsed_config_file : Cfg_file.t option;
  2. parsed_args : cli_args option;
  3. config_commands : Mavryk_client_base.Client_context.full Mavryk_clic.command list;
  4. base_dir : string option;
  5. require_auth : bool;
}
val default_parsed_config_args : parsed_config_args
val check_base_dir_for_mode : Mavryk_client_base.Client_context.full -> [< `Mode_client | `Mode_light | `Mode_mockup | `Mode_proxy ] -> bool -> string -> (unit, Mavryk_base.TzPervasives.tztrace) Stdlib.result Lwt.t
val build_endpoint : string option -> int option -> bool option -> Uri.t
val light_mode_checks : [< `Mode_client | `Mode_light | `Mode_mockup | `Mode_proxy ] -> Uri.t -> Mavryk_proxy.Light.sources_config option -> unit Mavryk_base.TzPervasives.tzresult Lwt.t
val parse_config_args : Mavryk_client_base.Client_context.full -> string list -> (parsed_config_args * string list, Mavryk_error_monad.Error_monad.tztrace) Stdlib.result Lwt.t
type t = string option * bool * string option * bool * Mavryk_shell_services.Shell_services.chain * Mavryk_shell_services.Shell_services.block * int option option * Mavryk_base.TzPervasives.Protocol_hash.t option option * bool * bool * string option * int option * bool * Mavryk_rpc_http.Media_type.Command_line.t option * Uri.t option * Mavryk_proxy.Light.sources_config 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:'c list -> other_commands:'c list -> require_auth:'d -> 'b list
val logger : 'a option