package octez-protocol-alpha-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val check_smart_contract : Protocol_client_context.full -> 'a option -> ('a -> 'b Lwt.t) -> 'b Lwt.t

check_smart_contract cctxt opt_value f_value returns an error if opt_value is None, and f_value value if opt_value = Some value. It can typically be used when opt_value is None for implicit accounts and Some _ for smart contracts, as the message in the raised error is that a smart contract is expected.

Retrieve the manager key in a contract storage. The storage has to be of type `pair key_hash 'a`.

Set the delegate of a manageable contract. For a contract with a `do`entrypoint, it builds the lambda that set the provided delegate. `~source` has to be the registered manager of the contract.

val build_lambda_for_set_delegate : delegate:Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash option -> string
val build_lambda_for_transfer_to_implicit : destination:Tezos_protocol_alpha.Protocol.Alpha_context.public_key_hash -> amount:Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t -> string
OCaml

Innovation. Community. Security.