package octez-protocol-020-PsParisC-libs

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
val read_file : string -> string

Return contents of a given file as string.

val load_script : storage:string -> string -> Tezos_protocol_020_PsParisC.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.

OCaml

Innovation. Community. Security.