COZ has released v1.4.0 of Boa, the Python compiler for the Neo N3 blockchain. The update introduces missing native contract methods, expanded conversion tools, and support for Python 3.13.
New functionality
The edition contains the StringSplit And StrLen methods from Neo’s standard library contract, and adds RecoverSecp256K1 of the CryptoLib native contract. The update also changes the behavior of the SHA256 and RIPEMD160 hash functions to accept only byte parameters.
The to_bytes And to_int methods now accept additional arguments for endianness and signness, improving flexibility in handling data conversions.
Boa v1.4.0 also introduces constructors and validation for Neo-enum types, including new case-sensitive checks during contract compilation. Additionally, developers can now directly access deployed contracts using the GetContractById method from your own ContractManagement contract.
Repairs and maintenance
Several compiler issues have been fixed, including one TypeHintMissing error in defining functions within classes, incorrect behavior of the Sequence.insert function and errors that occur when returning collections.
The update also enables exceptions to be used as valid function return values and addresses issues when multiple contract-decorated classes are included in the same file.
The release updates Boa’s documentation to reference boa3.sc instead of the outdated one boa3.builtin package. Other maintenance changes include an upgrade to Python 3.13, CircleCI configuration updates, and removal of setup tools termination warnings.
You can read the full changelog via the following link:
https://github.com/CityOfZion/neo3-boa/releases/tag/v1.4.0
