ligo/src/proto_alpha/lib_client/client_proto_context.mli

127 lines
3.3 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
2017-11-07 20:38:11 +04:00
val list_contract_labels :
2018-02-11 22:17:39 +04:00
#Client_commands.full_context ->
Block_services.block ->
2017-11-07 20:38:11 +04:00
(string * string * string) list tzresult Lwt.t
val get_storage :
#RPC_context.simple ->
Block_services.block ->
2017-11-07 20:38:11 +04:00
Contract.t ->
Script.expr option tzresult Lwt.t
val get_manager :
2018-02-11 22:17:39 +04:00
#Client_commands.full_context ->
Block_services.block ->
2017-11-07 20:38:11 +04:00
Contract.t ->
2018-02-01 20:31:08 +04:00
(string * public_key_hash *
public_key * Client_keys.sk_locator) tzresult Lwt.t
2017-11-07 20:38:11 +04:00
val get_balance:
#RPC_context.simple ->
Block_services.block ->
Contract.t ->
Tez.t tzresult Lwt.t
2017-11-07 20:38:11 +04:00
val set_delegate :
#RPC_context.simple ->
Block_services.block ->
2017-11-07 20:38:11 +04:00
fee:Tez.tez ->
Contract.t ->
2016-09-08 21:13:10 +04:00
src_pk:public_key ->
2018-02-01 20:31:08 +04:00
manager_sk:Client_keys.sk_locator ->
2017-11-07 20:38:11 +04:00
public_key_hash option ->
Operation_list_hash.elt tzresult Lwt.t
val operation_submitted_message :
#Client_commands.logger ->
Operation_hash.t ->
unit tzresult Lwt.t
2016-09-08 21:13:10 +04:00
2017-11-07 20:38:11 +04:00
val source_to_keys:
2018-02-11 22:17:39 +04:00
#Client_commands.full_context ->
Block_services.block ->
2017-11-07 20:38:11 +04:00
Contract.t ->
2018-02-01 20:31:08 +04:00
(public_key * Client_keys.sk_locator) tzresult Lwt.t
2017-11-07 20:38:11 +04:00
val originate_account :
?branch:int ->
2016-09-08 21:13:10 +04:00
source:Contract.t ->
src_pk:public_key ->
2018-02-01 20:31:08 +04:00
src_sk:Client_keys.sk_locator ->
2016-09-08 21:13:10 +04:00
manager_pkh:public_key_hash ->
?delegatable:bool ->
?delegate:public_key_hash ->
2017-11-07 20:38:11 +04:00
balance:Tez.tez ->
fee:Tez.tez ->
Block_services.block ->
#RPC_context.simple ->
2017-11-07 20:38:11 +04:00
unit -> (Operation_list_hash.elt * Contract.t) tzresult Lwt.t
val save_contract :
force:bool ->
2018-02-11 22:17:39 +04:00
#Client_commands.full_context ->
2017-11-07 20:38:11 +04:00
string ->
Contract.t ->
unit tzresult Lwt.t
val operation_submitted_message :
#Client_commands.logger ->
?contracts:Contract.t list ->
Operation_hash.t ->
unit tzresult Lwt.t
2016-09-08 21:13:10 +04:00
val originate_contract:
2017-11-07 20:38:11 +04:00
fee:Tez.t ->
delegate:public_key_hash option ->
?delegatable:bool ->
?spendable:bool ->
initial_storage:string ->
manager:public_key_hash ->
balance:Tez.t ->
2016-09-08 21:13:10 +04:00
source:Contract.t ->
src_pk:public_key ->
2018-02-01 20:31:08 +04:00
src_sk:Client_keys.sk_locator ->
code:Script.expr ->
2018-02-11 22:17:39 +04:00
#Client_commands.full_context ->
2017-11-07 20:38:11 +04:00
(Operation_hash.t * Contract.t) tzresult Lwt.t
2016-09-08 21:13:10 +04:00
2017-11-07 20:38:11 +04:00
val faucet :
?branch:int ->
manager_pkh:public_key_hash ->
Block_services.block ->
#RPC_context.simple ->
2017-11-07 20:38:11 +04:00
unit -> (Operation_list_hash.elt * Contract.t) tzresult Lwt.t
val transfer :
#RPC_context.simple ->
Block_services.block ->
?branch:int ->
source:Contract.t ->
2017-11-07 20:38:11 +04:00
src_pk:public_key ->
2018-02-01 20:31:08 +04:00
src_sk:Client_keys.sk_locator ->
2017-11-07 20:38:11 +04:00
destination:Contract.t ->
?arg:string ->
amount:Tez.t ->
fee:Tez.t ->
2017-11-07 20:38:11 +04:00
unit ->
(Operation_hash.t * Contract.t list) tzresult Lwt.t
2017-11-07 20:38:11 +04:00
val dictate :
#RPC_context.simple ->
Block_services.block ->
2017-11-07 20:38:11 +04:00
dictator_operation ->
secret_key ->
Operation_hash.t tzresult Lwt.t