ligo/src/proto_alpha/lib_client/client_proto_context.mli

162 lines
3.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
2017-11-07 20:38:11 +04:00
val list_contract_labels :
#Proto_alpha.full ->
Block_services.block ->
2017-11-07 20:38:11 +04:00
(string * string * string) list tzresult Lwt.t
val get_storage :
#Proto_alpha.rpc_context ->
Block_services.block ->
2017-11-07 20:38:11 +04:00
Contract.t ->
Script.expr option tzresult Lwt.t
val get_manager :
#Proto_alpha.full ->
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_uri) tzresult Lwt.t
2017-11-07 20:38:11 +04:00
val get_balance:
#Proto_alpha.rpc_context ->
Block_services.block ->
Contract.t ->
Tez.t tzresult Lwt.t
2017-11-07 20:38:11 +04:00
val set_delegate :
#Proto_alpha.full ->
Block_services.block ->
?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 ->
manager_sk:Client_keys.sk_uri ->
2017-11-07 20:38:11 +04:00
public_key_hash option ->
Injection.result tzresult Lwt.t
2017-11-07 20:38:11 +04:00
val register_as_delegate:
#Proto_alpha.full ->
Block_services.block ->
?confirmations:int ->
fee:Tez.tez ->
manager_sk:Client_keys.sk_uri ->
public_key ->
Injection.result tzresult Lwt.t
2017-11-07 20:38:11 +04:00
val source_to_keys:
#Proto_alpha.full ->
Block_services.block ->
2017-11-07 20:38:11 +04:00
Contract.t ->
(public_key * Client_keys.sk_uri) tzresult Lwt.t
2017-11-07 20:38:11 +04:00
val originate_account :
#Proto_alpha.full ->
Block_services.block ->
?confirmations:int ->
?branch:int ->
2016-09-08 21:13:10 +04:00
source:Contract.t ->
src_pk:public_key ->
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 ->
unit -> (Injection.result * Contract.t) tzresult Lwt.t
2017-11-07 20:38:11 +04:00
val save_contract :
force:bool ->
#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:
#Proto_alpha.full ->
Block_services.block ->
?confirmations:int ->
?branch:int ->
2017-11-07 20:38:11 +04:00
fee:Tez.t ->
?gas_limit:Z.t ->
2018-04-22 21:57:49 +04:00
?storage_limit:Int64.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 ->
src_sk:Client_keys.sk_uri ->
code:Script.expr ->
unit -> (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 :
#Proto_alpha.full ->
Block_services.block ->
?confirmations:int ->
?branch:int ->
source:Contract.t ->
2017-11-07 20:38:11 +04:00
src_pk:public_key ->
src_sk:Client_keys.sk_uri ->
2017-11-07 20:38:11 +04:00
destination:Contract.t ->
?arg:string ->
amount:Tez.t ->
fee:Tez.t ->
?gas_limit:Z.t ->
2018-04-22 21:57:49 +04:00
?storage_limit:Int64.t ->
2017-11-07 20:38:11 +04:00
unit ->
(Injection.result * Contract.t list) tzresult Lwt.t
val reveal :
#Proto_alpha.full ->
Block_services.block ->
?confirmations:int ->
?branch:int ->
source:Contract.t ->
src_pk:public_key ->
src_sk:Client_keys.sk_uri ->
fee:Tez.t ->
unit -> Injection.result tzresult Lwt.t
2017-11-07 20:38:11 +04:00
val dictate :
2018-04-17 12:34:46 +04:00
#Proto_alpha.full ->
Block_services.block ->
2018-04-17 12:34:46 +04:00
?confirmations:int ->
dictator_operation ->
Client_keys.sk_uri ->
Injection.result tzresult Lwt.t
type activation_key =
{ pkh : Ed25519.Public_key_hash.t ;
amount : Tez.t ;
activation_code : Blinded_public_key_hash.activation_code ;
mnemonic : string list ;
password : string ;
email : string ;
}
val activation_key_encoding: activation_key Data_encoding.t
val claim_commitment:
#Proto_alpha.full ->
?encrypted:bool ->
?confirmations:int ->
?force:bool ->
Block_services.block ->
activation_key ->
string ->
Injection.result tzresult Lwt.t