ligo/lib_client_base/client_aliases.mli

88 lines
2.6 KiB
OCaml
Raw Normal View History

2016-09-08 21:13:10 +04:00
(**************************************************************************)
(* *)
2017-11-14 03:36:14 +04:00
(* Copyright (c) 2014 - 2017. *)
2016-09-08 21:13:10 +04:00
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* *)
(* All rights reserved. No warranty, explicit or implicit, provided. *)
(* *)
(**************************************************************************)
module type Entity = sig
type t
val encoding : t Data_encoding.t
val of_source :
2017-11-07 20:38:11 +04:00
#Client_commands.wallet ->
string -> t tzresult Lwt.t
val to_source :
2017-11-07 20:38:11 +04:00
#Client_commands.wallet ->
t -> string tzresult Lwt.t
2016-09-08 21:13:10 +04:00
val name : string
end
module type Alias = sig
type t
2017-11-07 17:23:01 +04:00
type fresh_param
val load :
2017-11-07 20:38:11 +04:00
#Client_commands.wallet ->
(string * t) list tzresult Lwt.t
2017-11-07 20:38:11 +04:00
val set :
#Client_commands.wallet ->
(string * t) list ->
unit tzresult Lwt.t
val find :
2017-11-07 20:38:11 +04:00
#Client_commands.wallet ->
string -> t tzresult Lwt.t
val find_opt :
2017-11-07 20:38:11 +04:00
#Client_commands.wallet ->
string -> t option tzresult Lwt.t
val rev_find :
2017-11-07 20:38:11 +04:00
#Client_commands.wallet ->
t -> string option tzresult Lwt.t
val name :
2017-11-07 20:38:11 +04:00
#Client_commands.wallet ->
t -> string tzresult Lwt.t
val mem :
2017-11-07 20:38:11 +04:00
#Client_commands.wallet ->
string -> bool tzresult Lwt.t
val add :
2017-11-07 17:23:01 +04:00
force:bool ->
2017-11-07 20:38:11 +04:00
#Client_commands.wallet ->
string -> t -> unit tzresult Lwt.t
val del :
2017-11-07 20:38:11 +04:00
#Client_commands.wallet ->
string -> unit tzresult Lwt.t
val update :
2017-11-07 20:38:11 +04:00
#Client_commands.wallet ->
string -> t -> unit tzresult Lwt.t
val of_source :
2017-11-07 20:38:11 +04:00
#Client_commands.wallet ->
string -> t tzresult Lwt.t
val to_source :
2017-11-07 20:38:11 +04:00
#Client_commands.wallet ->
t -> string tzresult Lwt.t
2016-09-08 21:13:10 +04:00
val alias_param :
?name:string ->
2016-09-08 21:13:10 +04:00
?desc:string ->
2017-11-07 20:38:11 +04:00
('a, (#Client_commands.wallet as 'b), 'ret) Cli_entries.params ->
(string * t -> 'a, 'b, 'ret) Cli_entries.params
2016-09-08 21:13:10 +04:00
val fresh_alias_param :
?name:string ->
2016-09-08 21:13:10 +04:00
?desc:string ->
2017-11-07 20:38:11 +04:00
('a, (< .. > as 'obj), 'ret) Cli_entries.params ->
(fresh_param -> 'a, 'obj, 'ret) Cli_entries.params
2017-11-07 17:23:01 +04:00
val of_fresh :
2017-11-07 20:38:11 +04:00
#Client_commands.wallet ->
2017-11-07 17:23:01 +04:00
bool ->
fresh_param ->
string tzresult Lwt.t
2016-09-08 21:13:10 +04:00
val source_param :
?name:string ->
2016-09-08 21:13:10 +04:00
?desc:string ->
2017-11-07 20:38:11 +04:00
('a, (#Client_commands.wallet as 'obj), 'ret) Cli_entries.params ->
(t -> 'a, 'obj, 'ret) Cli_entries.params
2017-09-27 11:55:20 +04:00
val autocomplete:
2017-11-07 20:38:11 +04:00
#Client_commands.wallet -> string list tzresult Lwt.t
2016-09-08 21:13:10 +04:00
end
module Alias (Entity : Entity) : Alias with type t = Entity.t