Module Sapling_helpers.Interpreter_helpers

include module type of struct include Common end
val assert_true : (bool, 'a) Stdlib.result Lwt.t -> (unit, 'a) Stdlib.result Lwt.t
val assert_false : (bool, 'a) Stdlib.result Lwt.t -> (unit, 'a) Stdlib.result Lwt.t
val assert_some : ('a option, 'b) Stdlib.result Lwt.t -> ('c, 'b) Stdlib.result Lwt.t
val assert_none : ('a option, 'b) Stdlib.result Lwt.t -> (unit, 'b) Stdlib.result Lwt.t
val assert_error : ('a, 'b) Stdlib.result Lwt.t -> (unit, 'c) Stdlib.result Lwt.t
val print : ?prefix:string -> 'a Data_encoding__V1.Encoding.t -> 'b -> unit
val to_hex : 'a -> 'b Data_encoding__V1.Encoding.t -> string
val randomized_byte : ?pos:int -> 'a -> 'b Data_encoding__V1.Encoding.t -> 'c
val wallet_gen : unit -> wallet
include module type of struct include Contract_helpers end
val read_file : string -> string

Return contents of a given file as string.

val load_script : storage:string -> string -> Mavryk_protocol_alpha.Protocol.Alpha_context.Script.t

Loads a script from file.

Helper 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.

Returns a block in which the contract is originated. Also returns the associated anti-replay string and KT1 address.

val hex_shield : memo_size:int -> wallet -> string -> string
val shield : memo_size:int -> Mavryk_sapling.Forge.Core.Spending_key.t -> int -> Mavryk_sapling.Core.Wallet.Viewing_key.t -> (string -> 'a) -> string -> 'b list * int