Alpha_context.Contract
This module re-exports definitions from Contract_repr
and Contract_storage
.
Functions related to contracts address.
include BASIC_DATA with type t := t
include Mavryk_protocol_environment_001_PtAtLas.Compare.S with type t := t
val encoding : t Mavryk_protocol_environment_001_PtAtLas.Data_encoding.t
val pp : Mavryk_protocol_environment_001_PtAtLas.Format.formatter -> t -> unit
val implicit_encoding :
public_key_hash Mavryk_protocol_environment_001_PtAtLas.Data_encoding.t
val originated_encoding :
Contract_hash.t Mavryk_protocol_environment_001_PtAtLas.Data_encoding.t
val in_memory_size : t -> Cache_memory_helpers.sint
val rpc_arg : t Mavryk_protocol_environment_001_PtAtLas.RPC_arg.arg
val to_b58check : t -> string
val of_b58check :
string ->
t Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Functions related to contracts existence.
val exists : context -> t -> bool Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val must_exist :
context ->
t ->
unit Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val allocated :
context ->
t ->
bool Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val must_be_allocated :
context ->
t ->
unit Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val list : context -> t list Mavryk_protocol_environment_001_PtAtLas.Lwt.t
Functions related to both implicit accounts and originated contracts.
val get_balance_carbonated :
context ->
t ->
(context * Tez.t)
Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val get_frozen_bonds :
context ->
t ->
Tez.t Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val get_balance_and_frozen_bonds :
context ->
t ->
Tez.t Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
Functions related to implicit accounts.
val is_manager_key_revealed :
context ->
public_key_hash ->
bool Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val check_public_key :
public_key ->
public_key_hash ->
unit Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
val reveal_manager_key :
?check_consistency:bool ->
context ->
public_key_hash ->
public_key ->
context Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val increment_counter :
context ->
public_key_hash ->
context Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val check_counter_increment :
context ->
public_key_hash ->
Manager_counter.t ->
unit Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val check_allocated_and_get_balance :
context ->
public_key_hash ->
Tez.t Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val simulate_spending :
context ->
balance:Tez.t ->
amount:Tez.t ->
public_key_hash ->
(Tez.t * bool) Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
Functions related to smart contracts.
val get_script_code :
context ->
Contract_hash.t ->
(context * Script.lazy_expr option)
Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val get_script :
context ->
Contract_hash.t ->
(context * Script.t option)
Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val get_storage :
context ->
Contract_hash.t ->
(context * Script.expr option)
Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val increase_paid_storage :
context ->
Contract_hash.t ->
amount_in_bytes:Mavryk_protocol_environment_001_PtAtLas.Z.t ->
context Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val fresh_contract_from_current_nonce :
context ->
(context * Contract_hash.t)
Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
val originated_from_current_nonce :
since:context ->
until:context ->
Contract_hash.t list
Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val update_script_storage :
context ->
Contract_hash.t ->
Script.expr ->
Lazy_storage.diffs option ->
context Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val raw_originate :
context ->
prepaid_bootstrap_storage:bool ->
Contract_hash.t ->
script:(Script.t * Lazy_storage.diffs option) ->
context Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
val is_delegate :
context ->
public_key_hash ->
bool Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
type delegate_status =
| Delegate
| Delegated of Mavryk_protocol_environment_001_PtAtLas.Signature.Public_key_hash.t
| Undelegated
val get_delegate_status :
context ->
public_key_hash ->
delegate_status Mavryk_protocol_environment_001_PtAtLas.Error_monad.tzresult
Mavryk_protocol_environment_001_PtAtLas.Lwt.t
module Legacy_big_map_diff : sig ... end
module Delegate : sig ... end
Functions for handling the delegate of a contract.
module Internal_for_tests : sig ... end
This module discloses definitions that are only useful for tests and must not be used otherwise.
module For_RPC : sig ... end
Functions used exclusively for RPC calls