package octez-protocol-017-PtNairob-libs
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
    
    
  sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
    
    
  doc/octez-protocol-017-PtNairob-libs.client/Tezos_client_017_PtNairob/Managed_contract/index.html
Module Tezos_client_017_PtNairob.Managed_contractSource
val check_smart_contract : 
  Protocol_client_context.full ->
  'a option ->
  ('a -> 'b Lwt.t) ->
  'b Lwt.tcheck_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.
val get_contract_manager : 
  Protocol_client_context.full ->
  Tezos_protocol_017_PtNairob.Protocol.Contract_hash.t ->
  Tezos_protocol_017_PtNairob.Protocol.Alpha_context.public_key_hash
    Tezos_base.TzPervasives.tzresult
    Lwt.tRetrieve the manager key in a contract storage. The storage has to be of type `pair key_hash 'a`.
val build_delegate_operation : 
  Protocol_client_context.full ->
  chain:Tezos_shell_services.Chain_services.chain ->
  block:Tezos_shell_services.Block_services.block ->
  ?fee:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Tez.t ->
  Tezos_protocol_017_PtNairob.Protocol.Contract_hash.t ->
  Tezos_protocol_017_PtNairob.Protocol.Alpha_context.public_key_hash option ->
  Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Kind.transaction
    Annotated_manager_operation.t
    Tezos_base.TzPervasives.tzresult
    Lwt.tBuilds a delegation operation ready for injection
val set_delegate : 
  Protocol_client_context.full ->
  chain:Tezos_shell_services.Chain_services.chain ->
  block:Tezos_shell_services.Block_services.block ->
  ?confirmations:int ->
  ?dry_run:bool ->
  ?verbose_signing:bool ->
  ?simulation:bool ->
  ?branch:int ->
  fee_parameter:Injection.fee_parameter ->
  ?fee:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Tez.t ->
  source:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.public_key_hash ->
  src_pk:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.public_key ->
  src_sk:Tezos_client_base.Client_keys.sk_uri ->
  Tezos_protocol_017_PtNairob.Protocol.Contract_hash.t ->
  Tezos_protocol_017_PtNairob.Protocol.Alpha_context.public_key_hash option ->
  Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Kind.transaction
    Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Kind.manager
    Injection.result
    Tezos_base.TzPervasives.tzresult
    Lwt.tSet 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_transaction_operation : 
  Protocol_client_context.full ->
  chain:Tezos_shell_services.Chain_services.chain ->
  block:Tezos_shell_services.Block_services.block ->
  contract:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Contract.t ->
  destination:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Contract.t ->
  ?entrypoint:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Entrypoint.t ->
  ?arg:string ->
  amount:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Tez.t ->
  ?fee:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Tez.t ->
  ?gas_limit:
    Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Gas.Arith.integral ->
  ?storage_limit:Z.t ->
  unit ->
  Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Kind.transaction
    Annotated_manager_operation.t
    Tezos_base.TzPervasives.tzresult
    Lwt.tBuilds a transaction operation ready for injection
val transfer : 
  Protocol_client_context.full ->
  chain:Tezos_shell_services.Chain_services.chain ->
  block:Tezos_shell_services.Block_services.block ->
  ?confirmations:int ->
  ?dry_run:bool ->
  ?verbose_signing:bool ->
  ?simulation:bool ->
  ?force:bool ->
  ?branch:int ->
  source:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.public_key_hash ->
  src_pk:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.public_key ->
  src_sk:Tezos_client_base.Client_keys.sk_uri ->
  contract:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Contract.t ->
  destination:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Contract.t ->
  ?entrypoint:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Entrypoint.t ->
  ?arg:string ->
  amount:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Tez.t ->
  ?fee:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Tez.t ->
  ?gas_limit:
    Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Gas.Arith.integral ->
  ?storage_limit:Z.t ->
  ?counter:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Manager_counter.t ->
  fee_parameter:Injection.fee_parameter ->
  unit ->
  (Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Kind.transaction
     Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Kind.manager
     Injection.result
   * Tezos_protocol_017_PtNairob.Protocol.Contract_hash.t list)
    Tezos_base.TzPervasives.tzresult
    Lwt.tPerform a transfer on behalf of a managed contract . For a contract with a `do`entrypoint, it builds the lambda that does the requested operation. `~source` has to be the registered manager of the contract.
val build_lambda_for_set_delegate : 
  delegate:
    Tezos_protocol_017_PtNairob.Protocol.Alpha_context.public_key_hash option ->
  stringval build_lambda_for_transfer_to_implicit : 
  destination:
    Tezos_protocol_017_PtNairob.Protocol.Alpha_context.public_key_hash ->
  amount:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Tez.t ->
  stringval build_lambda_for_transfer_to_originated : 
  destination:Tezos_protocol_017_PtNairob.Protocol.Contract_hash.t ->
  entrypoint:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Entrypoint.t ->
  amount:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Tez.t ->
  parameter_type:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Script.expr ->
  parameter:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Script.expr ->
  string