2016-09-08 21:13:10 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Copyright (c) 2014 - 2016. *)
|
|
|
|
(* 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
|
|
|
|
|
|
|
val get_balance:
|
2017-04-05 01:35:41 +04:00
|
|
|
Client_rpcs.config ->
|
2017-03-15 04:20:25 +04:00
|
|
|
Client_proto_rpcs.block ->
|
|
|
|
Contract.t ->
|
|
|
|
Tez.t tzresult Lwt.t
|
|
|
|
|
2016-09-08 21:13:10 +04:00
|
|
|
val transfer:
|
2017-04-06 00:33:46 +04:00
|
|
|
Client_rpcs.config ->
|
2016-09-08 21:13:10 +04:00
|
|
|
Client_proto_rpcs.block ->
|
|
|
|
?force:bool ->
|
|
|
|
source:Contract.t ->
|
|
|
|
src_pk:public_key ->
|
|
|
|
src_sk:secret_key ->
|
|
|
|
destination:Contract.t ->
|
|
|
|
?arg:string ->
|
|
|
|
amount:Tez.t ->
|
|
|
|
fee:Tez.t ->
|
2017-04-06 00:33:46 +04:00
|
|
|
unit -> (Operation_hash.t * Contract.t list) tzresult Lwt.t
|
2016-09-08 21:13:10 +04:00
|
|
|
|
|
|
|
val originate_account:
|
2017-04-06 00:33:46 +04:00
|
|
|
Client_rpcs.config ->
|
2016-09-08 21:13:10 +04:00
|
|
|
Client_proto_rpcs.block ->
|
|
|
|
?force:bool ->
|
|
|
|
source:Contract.t ->
|
|
|
|
src_pk:public_key ->
|
|
|
|
src_sk:secret_key ->
|
|
|
|
manager_pkh:public_key_hash ->
|
|
|
|
?delegatable:bool ->
|
|
|
|
?spendable:bool ->
|
|
|
|
?delegate:public_key_hash ->
|
|
|
|
balance:Tez.t ->
|
|
|
|
fee:Tez.t ->
|
2017-04-06 00:33:46 +04:00
|
|
|
unit -> (Operation_hash.t * Contract.t) tzresult Lwt.t
|
2016-09-08 21:13:10 +04:00
|
|
|
|
|
|
|
val originate_contract:
|
2017-04-06 00:33:46 +04:00
|
|
|
Client_rpcs.config ->
|
2016-09-08 21:13:10 +04:00
|
|
|
Client_proto_rpcs.block ->
|
|
|
|
?force:bool ->
|
|
|
|
source:Contract.t ->
|
|
|
|
src_pk:public_key ->
|
|
|
|
src_sk:secret_key ->
|
|
|
|
manager_pkh:public_key_hash ->
|
|
|
|
balance:Tez.t ->
|
|
|
|
?delegatable:bool ->
|
|
|
|
?delegatePubKey:public_key_hash ->
|
|
|
|
code:Script.code ->
|
|
|
|
init:string ->
|
|
|
|
fee:Tez.t ->
|
2017-04-06 00:33:46 +04:00
|
|
|
unit -> (Operation_hash.t * Contract.t) tzresult Lwt.t
|
2016-09-08 21:13:10 +04:00
|
|
|
|
2017-03-21 18:19:35 +04:00
|
|
|
val delegate_contract:
|
2017-04-06 00:33:46 +04:00
|
|
|
Client_rpcs.config ->
|
2017-03-21 18:19:35 +04:00
|
|
|
Client_proto_rpcs.block ->
|
|
|
|
?force:bool ->
|
|
|
|
source:Contract.t ->
|
|
|
|
?src_pk:public_key ->
|
|
|
|
manager_sk:secret_key ->
|
|
|
|
fee:Tez.t ->
|
|
|
|
public_key_hash option ->
|
2017-04-06 00:33:46 +04:00
|
|
|
Operation_hash.t tzresult Lwt.t
|
2017-03-21 18:19:35 +04:00
|
|
|
|
2016-12-03 16:05:02 +04:00
|
|
|
val commands: unit -> Client_commands.command list
|