COZ has launched v1.4.0 of Boa, its Python compiler for the Neo N3 blockchain. The replace introduces lacking native contract strategies, expanded conversion utilities, and help for Python 3.13.
New performance
The discharge incorporates the StringSplit and StrLen strategies from Neo’s normal library native contract, and provides RecoverSecp256K1 from the CryptoLib native contract. The replace additionally modifies the habits of the SHA256 and RIPEMD160 hash capabilities to solely settle for byte parameters.
The to_bytes and to_int strategies now settle for further arguments for endianness and signedness, enhancing flexibility when dealing with information conversions.
Boa v1.4.0 additionally introduces constructors and validation for Neo enum varieties, together with new case-sensitive checks throughout contract compilation. Moreover, builders can now entry deployed contracts immediately utilizing the GetContractById technique from the ContractManagement native contract.
Fixes and upkeep
A number of compiler points had been resolved, together with a TypeHintMissing error when defining capabilities inside courses, incorrect habits of the Sequence.insert operate, and errors encountered when returning collections.
The replace additionally permits exceptions for use as legitimate operate return values and fixes issues when a number of contract-decorated courses are included in the identical file.
The discharge updates Boa’s documentation to reference boa3.sc as an alternative of the deprecated boa3.builtin bundle. Different upkeep adjustments embody an improve to Python 3.13, updates to CircleCI configuration, and the removing of setuptools deprecation warnings.
The complete changelog may be learn on the following hyperlink:
https://github.com/CityOfZion/neo3-boa/releases/tag/v1.4.0



