ligo/src/proto_alpha/lib_client/client_proto_contracts.mli

59 lines
1.9 KiB
OCaml
Raw Normal View History

2016-09-08 21:13:10 +04:00
(**************************************************************************)
(* *)
2018-02-06 00:17:03 +04:00
(* Copyright (c) 2014 - 2018. *)
2016-09-08 21:13:10 +04:00
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* *)
(* All rights reserved. No warranty, explicit or implicit, provided. *)
(* *)
(**************************************************************************)
open Proto_alpha
open Alpha_context
2018-02-11 22:17:39 +04:00
open Cli_entries
2016-09-08 21:13:10 +04:00
module RawContractAlias :
Client_aliases.Alias with type t = Contract.t
module ContractAlias : sig
val get_contract:
#Client_context.wallet ->
string -> (string * Contract.t) 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 ->
('a, (#Client_context.wallet as 'wallet)) params ->
(Lwt_io.file_name * Contract.t -> 'a, 'wallet) params
2016-09-08 21:13:10 +04:00
val destination_param:
?name:string ->
2016-09-08 21:13:10 +04:00
?desc:string ->
('a, (#Client_context.wallet as 'wallet)) params ->
(Lwt_io.file_name * Contract.t -> 'a, 'wallet) params
val rev_find:
#Client_context.wallet ->
Contract.t -> string option tzresult Lwt.t
val name:
#Client_context.wallet ->
Contract.t -> string tzresult Lwt.t
val autocomplete: #Client_context.wallet -> string list tzresult Lwt.t
2016-09-08 21:13:10 +04:00
end
val list_contracts:
#Client_context.wallet ->
2017-11-07 20:38:11 +04:00
(string * string * RawContractAlias.t) list tzresult Lwt.t
2016-09-08 21:13:10 +04:00
val get_manager:
#Proto_alpha.rpc_context ->
Block_services.block ->
2016-09-08 21:13:10 +04:00
Contract.t ->
public_key_hash tzresult Lwt.t
val get_delegate:
#Proto_alpha.rpc_context ->
Block_services.block ->
2016-09-08 21:13:10 +04:00
Contract.t ->
public_key_hash option tzresult Lwt.t
2016-09-08 21:13:10 +04:00
2017-11-07 20:38:11 +04:00
module Contract_tags : module type of Client_tags.Tags (struct
let name = "contract"
end)