COZ has released v1.4.0 of Boa, a Python compiler for the Neo N3 blockchain. This update introduces missing native contract methods, enhanced conversion utilities, and support for Python 3.13.
New features
This release includes: StringSplit and StrLen Add native contract methods from Neo’s standard library, RecoverSecp256K1 from CryptoLib Native contract. This update also changes the behavior of the SHA256 and RIPEMD160 hash functions to only accept byte parameters.
of to_bytes and to_int The method now accepts additional arguments for endianness and sign, providing more flexibility when handling data conversion.
Boa v1.4.0 also introduces constructors and validation for Neo enums, including new case-sensitivity checks when compiling contracts. Additionally, developers can add GetContractById ContractManagement Native contract methods.
Modification and maintenance
Several compiler issues have been resolved. TypeHintMissing An error occurs when defining a function within a class, Sequence.insert Functions, and errors that occur when returning collections.
This update allows exceptions to be used as valid function return values and fixes an issue when classes decorated with multiple contracts are included in the same file.
This release updates the Boa documentation to reference boa3.sc instead of deprecated boa3.builtin package. Other maintenance changes include upgrading to Python 3.13, updating CircleCI configuration, and removing deprecation warnings for setuptools.
The complete changelog can be read at the following link.
https://github.com/CityOfZion/neo3-boa/releases/tag/v1.4.0
