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. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2017-04-06 00:33:46 +04:00
|
|
|
open Environment
|
2017-03-15 04:20:25 +04:00
|
|
|
|
2017-11-07 20:38:11 +04:00
|
|
|
val list_contract_labels :
|
|
|
|
Client_commands.full_context ->
|
|
|
|
Client_proto_rpcs.block ->
|
|
|
|
(string * string * string) list tzresult Lwt.t
|
|
|
|
|
|
|
|
val get_storage :
|
2017-12-07 20:43:21 +04:00
|
|
|
#Client_rpcs.ctxt ->
|
2017-11-07 20:38:11 +04:00
|
|
|
Client_proto_rpcs.block ->
|
|
|
|
Contract.t ->
|
|
|
|
Script.expr option tzresult Lwt.t
|
|
|
|
|
|
|
|
val get_manager :
|
|
|
|
Client_commands.full_context ->
|
|
|
|
Client_proto_rpcs.block ->
|
|
|
|
Contract.t ->
|
|
|
|
(string * public_key_hash * public_key * secret_key) tzresult Lwt.t
|
|
|
|
|
2017-03-15 04:20:25 +04:00
|
|
|
val get_balance:
|
2017-12-07 20:43:21 +04:00
|
|
|
#Client_rpcs.ctxt ->
|
2017-03-15 04:20:25 +04:00
|
|
|
Client_proto_rpcs.block ->
|
|
|
|
Contract.t ->
|
|
|
|
Tez.t tzresult Lwt.t
|
|
|
|
|
2017-11-07 20:38:11 +04:00
|
|
|
val set_delegate :
|
2017-12-07 20:43:21 +04:00
|
|
|
#Client_rpcs.ctxt ->
|
2016-09-08 21:13:10 +04:00
|
|
|
Client_proto_rpcs.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 ->
|
2017-11-07 20:38:11 +04:00
|
|
|
manager_sk:secret_key ->
|
|
|
|
public_key_hash option ->
|
|
|
|
Operation_list_hash.elt tzresult Lwt.t
|
|
|
|
|
|
|
|
val operation_submitted_message :
|
|
|
|
#Client_commands.logger ->
|
|
|
|
?force:bool ->
|
|
|
|
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:
|
|
|
|
Client_commands.full_context ->
|
2016-09-08 21:13:10 +04:00
|
|
|
Client_proto_rpcs.block ->
|
2017-11-07 20:38:11 +04:00
|
|
|
Contract.t ->
|
|
|
|
(public_key * secret_key) tzresult Lwt.t
|
|
|
|
|
|
|
|
val originate_account :
|
2016-09-08 21:13:10 +04:00
|
|
|
?force:bool ->
|
2017-04-20 10:49:14 +04:00
|
|
|
?branch:int ->
|
2016-09-08 21:13:10 +04:00
|
|
|
source:Contract.t ->
|
|
|
|
src_pk:public_key ->
|
2017-11-07 20:38:11 +04:00
|
|
|
src_sk:Ed25519.Secret_key.t ->
|
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 ->
|
|
|
|
Client_rpcs.block ->
|
2017-12-07 20:43:21 +04:00
|
|
|
#Client_rpcs.ctxt ->
|
2017-11-07 20:38:11 +04:00
|
|
|
unit -> (Operation_list_hash.elt * Contract.t) tzresult Lwt.t
|
|
|
|
|
|
|
|
val save_contract :
|
|
|
|
force:bool ->
|
|
|
|
Client_commands.full_context ->
|
|
|
|
string ->
|
|
|
|
Contract.t ->
|
|
|
|
unit tzresult Lwt.t
|
|
|
|
|
|
|
|
val operation_submitted_message :
|
|
|
|
#Client_commands.logger ->
|
|
|
|
?force:bool ->
|
|
|
|
?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 ->
|
2016-09-08 21:13:10 +04:00
|
|
|
?force:bool ->
|
2017-11-07 20:38:11 +04:00
|
|
|
?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 ->
|
2017-11-07 20:38:11 +04:00
|
|
|
src_sk:Ed25519.Secret_key.t ->
|
2017-11-02 21:57:17 +04:00
|
|
|
code:Script.expr ->
|
2017-11-07 20:38:11 +04:00
|
|
|
Client_commands.full_context ->
|
|
|
|
(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 :
|
|
|
|
?force:bool ->
|
|
|
|
?branch:int ->
|
|
|
|
manager_pkh:public_key_hash ->
|
|
|
|
Client_rpcs.block ->
|
2017-12-07 20:43:21 +04:00
|
|
|
#Client_rpcs.ctxt ->
|
2017-11-07 20:38:11 +04:00
|
|
|
unit -> (Operation_list_hash.elt * Contract.t) tzresult Lwt.t
|
|
|
|
|
|
|
|
val transfer :
|
2017-12-07 20:43:21 +04:00
|
|
|
#Client_rpcs.ctxt ->
|
2017-03-21 18:19:35 +04:00
|
|
|
Client_proto_rpcs.block ->
|
|
|
|
?force:bool ->
|
2017-04-20 10:49:14 +04:00
|
|
|
?branch:int ->
|
2017-03-21 18:19:35 +04:00
|
|
|
source:Contract.t ->
|
2017-11-07 20:38:11 +04:00
|
|
|
src_pk:public_key ->
|
|
|
|
src_sk:Ed25519.Secret_key.t ->
|
|
|
|
destination:Contract.t ->
|
|
|
|
?arg:string ->
|
|
|
|
amount:Tez.t ->
|
2017-03-21 18:19:35 +04:00
|
|
|
fee:Tez.t ->
|
2017-11-07 20:38:11 +04:00
|
|
|
unit ->
|
|
|
|
(Operation_hash.t * Contract.t list) tzresult Lwt.t
|
2017-03-21 18:19:35 +04:00
|
|
|
|
2017-11-07 20:38:11 +04:00
|
|
|
val dictate :
|
2017-12-07 20:43:21 +04:00
|
|
|
#Client_rpcs.ctxt ->
|
2017-11-07 20:38:11 +04:00
|
|
|
Client_proto_rpcs.block ->
|
|
|
|
dictator_operation ->
|
|
|
|
secret_key ->
|
|
|
|
Operation_hash.t tzresult Lwt.t
|