Module Mavryk_001_PtAtLas_test_helpers.Contract_helpers

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

val read_file : string -> string

Return contents of a given file as string.

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

Loads a script from file.

Returns a block in which the contract is originated.

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.