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. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2018-01-29 04:06:47 +04:00
|
|
|
open Proto_alpha
|
2018-02-11 22:17:39 +04:00
|
|
|
open Alpha_context
|
2017-03-15 04:20:25 +04:00
|
|
|
|
2018-04-21 13:31:17 +04:00
|
|
|
val list_contract_labels:
|
2018-02-16 21:10:18 +04:00
|
|
|
#Proto_alpha.full ->
|
2018-04-22 16:40:44 +04:00
|
|
|
chain:Shell_services.chain ->
|
|
|
|
block:Shell_services.block ->
|
2017-11-07 20:38:11 +04:00
|
|
|
(string * string * string) list tzresult Lwt.t
|
|
|
|
|
2018-04-21 13:31:17 +04:00
|
|
|
val get_storage:
|
2018-02-11 22:17:40 +04:00
|
|
|
#Proto_alpha.rpc_context ->
|
2018-04-22 16:40:44 +04:00
|
|
|
chain:Shell_services.chain ->
|
|
|
|
block:Shell_services.block ->
|
2017-11-07 20:38:11 +04:00
|
|
|
Contract.t ->
|
|
|
|
Script.expr option tzresult Lwt.t
|
|
|
|
|
2018-04-21 13:31:17 +04:00
|
|
|
val get_manager:
|
2018-02-16 21:10:18 +04:00
|
|
|
#Proto_alpha.full ->
|
2018-04-22 16:40:44 +04:00
|
|
|
chain:Shell_services.chain ->
|
|
|
|
block:Shell_services.block ->
|
2017-11-07 20:38:11 +04:00
|
|
|
Contract.t ->
|
2018-02-01 20:31:08 +04:00
|
|
|
(string * public_key_hash *
|
2018-05-26 15:14:33 +04:00
|
|
|
public_key * Client_keys.sk_uri) tzresult Lwt.t
|
2017-11-07 20:38:11 +04:00
|
|
|
|
2017-03-15 04:20:25 +04:00
|
|
|
val get_balance:
|
2018-02-11 22:17:40 +04:00
|
|
|
#Proto_alpha.rpc_context ->
|
2018-04-22 16:40:44 +04:00
|
|
|
chain:Shell_services.chain ->
|
|
|
|
block:Shell_services.block ->
|
2017-03-15 04:20:25 +04:00
|
|
|
Contract.t ->
|
|
|
|
Tez.t tzresult Lwt.t
|
|
|
|
|
2018-04-21 13:31:17 +04:00
|
|
|
val set_delegate:
|
2018-02-16 21:10:18 +04:00
|
|
|
#Proto_alpha.full ->
|
2018-04-22 16:40:44 +04:00
|
|
|
chain:Shell_services.chain ->
|
|
|
|
block:Shell_services.block ->
|
2018-04-22 12:50:34 +04:00
|
|
|
?confirmations:int ->
|
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-05-26 15:14:33 +04:00
|
|
|
manager_sk:Client_keys.sk_uri ->
|
2017-11-07 20:38:11 +04:00
|
|
|
public_key_hash option ->
|
2018-04-30 21:06:06 +04:00
|
|
|
Kind.delegation Kind.manager Injection.result tzresult Lwt.t
|
2017-11-07 20:38:11 +04:00
|
|
|
|
2018-02-22 01:36:36 +04:00
|
|
|
val register_as_delegate:
|
|
|
|
#Proto_alpha.full ->
|
2018-04-22 16:40:44 +04:00
|
|
|
chain:Shell_services.chain ->
|
|
|
|
block:Shell_services.block ->
|
2018-04-22 12:50:34 +04:00
|
|
|
?confirmations:int ->
|
2018-02-22 01:36:36 +04:00
|
|
|
fee:Tez.tez ->
|
2018-05-26 15:14:33 +04:00
|
|
|
manager_sk:Client_keys.sk_uri ->
|
2018-04-22 12:50:34 +04:00
|
|
|
public_key ->
|
2018-04-30 21:06:06 +04:00
|
|
|
Kind.delegation Kind.manager Injection.result tzresult Lwt.t
|
2018-04-19 18:32:32 +04:00
|
|
|
|
2017-11-07 20:38:11 +04:00
|
|
|
val source_to_keys:
|
2018-02-16 21:10:18 +04:00
|
|
|
#Proto_alpha.full ->
|
2018-04-22 16:40:44 +04:00
|
|
|
chain:Shell_services.chain ->
|
|
|
|
block:Shell_services.block ->
|
2017-11-07 20:38:11 +04:00
|
|
|
Contract.t ->
|
2018-05-26 15:14:33 +04:00
|
|
|
(public_key * Client_keys.sk_uri) tzresult Lwt.t
|
2017-11-07 20:38:11 +04:00
|
|
|
|
|
|
|
val originate_account :
|
2018-04-22 12:50:34 +04:00
|
|
|
#Proto_alpha.full ->
|
2018-04-22 16:40:44 +04:00
|
|
|
chain:Shell_services.chain ->
|
|
|
|
block:Shell_services.block ->
|
2018-04-22 12:50:34 +04:00
|
|
|
?confirmations:int ->
|
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 ->
|
2018-05-26 15:14:33 +04:00
|
|
|
src_sk:Client_keys.sk_uri ->
|
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 ->
|
2018-04-30 21:06:06 +04:00
|
|
|
unit -> (Kind.origination Kind.manager Injection.result * Contract.t) tzresult Lwt.t
|
2017-11-07 20:38:11 +04:00
|
|
|
|
|
|
|
val save_contract :
|
|
|
|
force:bool ->
|
2018-02-16 21:10:18 +04:00
|
|
|
#Proto_alpha.full ->
|
2017-11-07 20:38:11 +04:00
|
|
|
string ->
|
|
|
|
Contract.t ->
|
|
|
|
unit tzresult Lwt.t
|
|
|
|
|
2016-09-08 21:13:10 +04:00
|
|
|
val originate_contract:
|
2018-04-22 12:50:34 +04:00
|
|
|
#Proto_alpha.full ->
|
2018-04-22 16:40:44 +04:00
|
|
|
chain:Shell_services.chain ->
|
|
|
|
block:Shell_services.block ->
|
2018-04-22 12:50:34 +04:00
|
|
|
?confirmations:int ->
|
|
|
|
?branch:int ->
|
2017-11-07 20:38:11 +04:00
|
|
|
fee:Tez.t ->
|
2018-03-24 19:39:48 +04:00
|
|
|
?gas_limit:Z.t ->
|
2018-06-13 16:41:40 +04:00
|
|
|
?storage_limit:Z.t ->
|
2017-11-07 20:38:11 +04:00
|
|
|
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-05-26 15:14:33 +04:00
|
|
|
src_sk:Client_keys.sk_uri ->
|
2017-11-02 21:57:17 +04:00
|
|
|
code:Script.expr ->
|
2018-04-30 21:06:06 +04:00
|
|
|
unit -> (Kind.origination Kind.manager Injection.result * Contract.t) tzresult Lwt.t
|
2016-09-08 21:13:10 +04:00
|
|
|
|
2017-11-07 20:38:11 +04:00
|
|
|
val transfer :
|
2018-02-16 21:10:18 +04:00
|
|
|
#Proto_alpha.full ->
|
2018-04-22 16:40:44 +04:00
|
|
|
chain:Shell_services.chain ->
|
|
|
|
block:Shell_services.block ->
|
2018-04-22 12:50:34 +04:00
|
|
|
?confirmations:int ->
|
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 ->
|
2018-05-26 15:14:33 +04:00
|
|
|
src_sk:Client_keys.sk_uri ->
|
2017-11-07 20:38:11 +04:00
|
|
|
destination:Contract.t ->
|
|
|
|
?arg:string ->
|
|
|
|
amount:Tez.t ->
|
2017-03-21 18:19:35 +04:00
|
|
|
fee:Tez.t ->
|
2018-03-24 19:39:48 +04:00
|
|
|
?gas_limit:Z.t ->
|
2018-06-13 16:41:40 +04:00
|
|
|
?storage_limit:Z.t ->
|
2017-11-07 20:38:11 +04:00
|
|
|
unit ->
|
2018-04-30 21:06:06 +04:00
|
|
|
(Kind.transaction Kind.manager Injection.result * Contract.t list) tzresult Lwt.t
|
2017-03-21 18:19:35 +04:00
|
|
|
|
2018-02-22 01:19:21 +04:00
|
|
|
val reveal :
|
|
|
|
#Proto_alpha.full ->
|
2018-04-22 16:40:44 +04:00
|
|
|
chain:Shell_services.chain ->
|
|
|
|
block:Shell_services.block ->
|
2018-04-22 12:50:34 +04:00
|
|
|
?confirmations:int ->
|
2018-02-22 01:19:21 +04:00
|
|
|
?branch:int ->
|
|
|
|
source:Contract.t ->
|
|
|
|
src_pk:public_key ->
|
2018-05-26 15:14:33 +04:00
|
|
|
src_sk:Client_keys.sk_uri ->
|
2018-02-22 01:19:21 +04:00
|
|
|
fee:Tez.t ->
|
2018-04-30 21:06:06 +04:00
|
|
|
unit -> Kind.reveal Kind.manager Injection.result tzresult Lwt.t
|
2018-02-22 01:19:21 +04:00
|
|
|
|
2018-04-17 12:50:23 +04:00
|
|
|
type activation_key =
|
|
|
|
{ pkh : Ed25519.Public_key_hash.t ;
|
|
|
|
amount : Tez.t ;
|
2018-06-04 16:40:10 +04:00
|
|
|
activation_code : Blinded_public_key_hash.activation_code ;
|
2018-04-17 12:50:23 +04:00
|
|
|
mnemonic : string list ;
|
|
|
|
password : string ;
|
|
|
|
email : string ;
|
|
|
|
}
|
|
|
|
|
|
|
|
val activation_key_encoding: activation_key Data_encoding.t
|
|
|
|
|
2018-04-30 21:06:06 +04:00
|
|
|
val activate_account:
|
2018-04-17 12:50:23 +04:00
|
|
|
#Proto_alpha.full ->
|
2018-04-22 16:40:44 +04:00
|
|
|
chain:Shell_services.chain ->
|
|
|
|
block:Shell_services.block ->
|
2018-04-17 12:50:23 +04:00
|
|
|
?confirmations:int ->
|
2018-04-16 02:44:24 +04:00
|
|
|
?encrypted:bool ->
|
2018-04-17 12:50:23 +04:00
|
|
|
?force:bool ->
|
|
|
|
activation_key ->
|
|
|
|
string ->
|
2018-04-30 21:06:06 +04:00
|
|
|
Kind.activate_account Injection.result tzresult Lwt.t
|