COZ has launched v1.4.0 of Boa, a Python compiler for the Neo N3 blockchain. This replace introduces lacking native contract strategies, enhanced conversion utilities, and help for Python 3.13.
New options
This launch contains: StringSplit and StrLen Add native contract strategies from Neo's commonplace library, RecoverSecp256K1 from CryptoLib Native contract. This replace additionally adjustments the conduct of the SHA256 and RIPEMD160 hash features to solely settle for byte parameters.
of to_bytes and to_int The strategy now accepts further arguments for endianness and signal, offering extra flexibility when dealing with information conversion.
Boa v1.4.0 additionally introduces constructors and validation for Neo enums, together with new case-sensitivity checks when compiling contracts. Moreover, builders can add GetContractById ContractManagement Native contract strategies.
Modification and upkeep
A number of compiler points have been resolved. TypeHintMissing An error happens when defining a perform inside a category, Sequence.insert Features, and errors that happen when returning collections.
This replace permits exceptions for use as legitimate perform return values and fixes a problem when lessons adorned with a number of contracts are included in the identical file.
This launch updates the Boa documentation to reference boa3.sc as an alternative of deprecated boa3.builtin package deal. Different upkeep adjustments embody upgrading to Python 3.13, updating CircleCI configuration, and eradicating deprecation warnings for setuptools.
The entire changelog may be learn on the following hyperlink.
https://github.com/CityOfZion/neo3-boa/releases/tag/v1.4.0

