package tezos-011-PtHangz2-test-helpers

  1. Overview
  2. Docs
val init : unit -> (Block.t * Tezos_base__TzPervasives.Signature.public_key_hash * Tezos_protocol_011_PtHangz2.Protocol.Alpha_context.Contract.t * Tezos_protocol_011_PtHangz2.Protocol.Alpha_context.Contract.t, Tezos_base__TzPervasives.tztrace) result Lwt.t

Initializes 2 addresses to do only operations plus one that will be used to bake.

val run_script : Tezos_raw_protocol_011_PtHangz2.Alpha_context.t -> ?step_constants: Tezos_protocol_011_PtHangz2.Protocol.Script_interpreter.step_constants -> string -> ?entrypoint:string -> storage:string -> parameter:string -> unit -> (Tezos_protocol_011_PtHangz2.Protocol.Script_interpreter.execution_result * (Tezos_raw_protocol_011_PtHangz2.Script_ir_translator.ex_script * int), Tezos_base__TzPervasives.error Tezos_base__TzPervasives.trace) result Lwt.t

Helper function that parses and types a script, its initial storage and parameters from strings. It then executes the typed script with the storage and parameter and returns the result.