package octez-protocol-017-PtNairob-libs
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
    
    
  sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
    
    
  doc/octez-protocol-017-PtNairob-libs.test-helpers/Tezos_017_PtNairob_test_helpers/Contract_helpers/index.html
Module Tezos_017_PtNairob_test_helpers.Contract_helpersSource
val init : 
  unit ->
  (Block.t
   * Tezos_raw_protocol_017_PtNairob__Alpha_context.public_key_hash
   * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Contract.t
   * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Contract.t,
    Tezos_base.TzPervasives.tztrace)
    result
    Lwt.tInitializes 2 addresses to do only operations plus one that will be used to bake.
Return contents of a given file as string.
val load_script : 
  storage:string ->
  string ->
  Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Script.tLoads a script from file.
val originate_contract_hash : 
  string ->
  string ->
  Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Contract.t ->
  Block.t ->
  Tezos_protocol_017_PtNairob.Protocol.Alpha_context.public_key_hash ->
  (Tezos_protocol_017_PtNairob.Protocol.Contract_hash.t * Block.t,
    Tezos_base.TzPervasives.tztrace)
    result
    Lwt.tReturns a block in which the contract is originated.
val originate_contract : 
  string ->
  string ->
  Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Contract.t ->
  Block.t ->
  Tezos_protocol_017_PtNairob.Protocol.Alpha_context.public_key_hash ->
  (Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Contract.t * Block.t,
    Tezos_base.TzPervasives.tztrace)
    result
    Lwt.tval default_step_constants : 
  Tezos_protocol_017_PtNairob.Protocol.Script_interpreter.step_constantsval run_script : 
  Tezos_raw_protocol_017_PtNairob.Alpha_context.t ->
  ?logger:Tezos_raw_protocol_017_PtNairob.Script_typed_ir.logger ->
  ?step_constants:
    Tezos_protocol_017_PtNairob.Protocol.Script_interpreter.step_constants ->
  ?internal:bool ->
  string ->
  ?entrypoint:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Entrypoint.t ->
  storage:string ->
  parameter:string ->
  unit ->
  (Tezos_protocol_017_PtNairob.Protocol.Script_interpreter.execution_result
   * Tezos_raw_protocol_017_PtNairob.Alpha_context.context,
    Tezos_base.TzPervasives.error Tezos_base.TzPervasives.trace)
    result
    Lwt.tHelper function that parses and typechecks a script, its initial storage and parameters from strings. It then executes the typed script with the storage and parameters and returns the result.
The step_constants argument passes in some data which remains constant throughout script's execution, hence the name. This includes addresses of the sender and payer, the address of the smart contract, the amount of Tez transferred to it and so on.
An internal operation is an operation generated by smart contract's execution rather than by an implicit account.
val originate_contract_from_string_hash : 
  script:string ->
  storage:string ->
  source_contract:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Contract.t ->
  baker:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.public_key_hash ->
  Block.t ->
  (Tezos_protocol_017_PtNairob.Protocol.Contract_hash.t
   * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Script.t
   * Block.t,
    Tezos_base.TzPervasives.tztrace)
    result
    Lwt.tval originate_contract_from_string : 
  script:string ->
  storage:string ->
  source_contract:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Contract.t ->
  baker:Tezos_protocol_017_PtNairob.Protocol.Alpha_context.public_key_hash ->
  Block.t ->
  (Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Contract.t
   * Tezos_protocol_017_PtNairob.Protocol.Alpha_context.Script.t
   * Block.t,
    Tezos_base.TzPervasives.tztrace)
    result
    Lwt.t