ops: A list of TealComponents to convert.
A list of TealComponent that are functionally the same as the input, but with all constants
loaded either through blocks or the pushint
/pushbytes
single-use ops.
Extract the constant value being loaded by a TealOp whose op is Op.addr.
If the op is loading a template variable, returns the name of the variable as a string. Otherwise, returns the bytes of the public key of the address that the op is loading.
Extract the constant value being loaded by a TealOp whose op is Op.byte.
If the op is loading a template variable, returns the name of the variable as a string. Otherwise, returns the byte string that the op is loading.
Extract the constant value being loaded by a TealOp whose op is Op.int.
If the op is loading a template variable, returns the name of the variable as a string. Otherwise, returns the integer that the op is loading.
Generated using TypeDoc
Convert TEAL code from using pseudo-ops for constants to using assembled constant blocks. This conversion will assemble constants to be as space-efficient as possible.