The PyTeal expression to assemble.
The mode of the program to assemble. Must be Signature or Application.
When true, the compiler will produce a program with fully
assembled constants, rather than using the pseudo-ops int
, byte
, and addr
. These
constants will be assembled in the most space-efficient way, so enabling this may reduce
the compiled program's size. Enabling this option requires a minimum TEAL version of 3.
Defaults to false.
The TEAL version used to assemble the program. This will determine which expressions and fields are able to be used in the program and how expressions compile to TEAL opcodes. Defaults to 2 if not included.
A TEAL assembly program compiled from the input expression.
Generated using TypeDoc
Compile a PyTeal expression into TEAL assembly.
TealInputError if an operation in ast is not supported by the supplied mode and version.
TealInternalError if an internal error is encounter during compilation.