Neo3-boa

Latest version: v1.1.1

Safety actively analyzes 622344 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 5

1.1.1

Added
- Support to Python 3.12
- Included `Nep17Contract` interface
- Support to Python's builtins:
- fstrings and match-case with primitive types (`bool`, `int` and `str`)
- `str.replace` and `list.sort` methods


Deprecated
- Deprecated `metadata` decorator to identify metadata function.


Fixed
- Changed exit code on compilation error
- Fixed notify not being executed when calling it from the imported package
- Changed manifest abi types related to `Optional` and `Union` with `None` types

1.1.0

Added
- Support to Neo features up to Neo 3.6
- Added zero knowledge proof methods to `CryptoLib` interface
- Support to ASSERTMSG and ABORTMSG opcodes
- `to_hex_str` method to convert `bytes` into printable strings

Changed
- Included `msg` optional argument to `abort`
- Validate if given `.nef` files exists before running TestRunner


Removed
- Dropped support to Python versions prior to 3.10


Fixed
- Removed incorrect requirement of `filelock` to use NeoTestRunner class
- Fixed imported variable value generation when it has the same identifier of a local variable
- Fixed NEP-11 validator to handle divisible NFT standard

1.0.1

1.0.0

Added
- Included an environment parameter to compilation that is accessible in the smart contract
- Added `hash` property to classes with `contract` decorator
- New optional argument to stop compilation on first error found

Changed
- Changed the cli command to compile from `neo3-boa` to `neo3-boa compile`
- Limit logs to ERROR by default
- Support to `int` constructor with `str` argument
- Change NEP-11 validator to accept both `str` and `bytes` as argument types in some methods

Removed
- Removed [TestEngine](https://github.com/CityOfZion/neo3-boa/blob/4e3ad421ed9a85b04d70239b5d4ab3a98f2da06d/boa3_test/tests/test_classes/testengine.py) interface

Fixed
- Fixed type warnings shown by IDEs
- Fixed Interop type check in event interfaces
- Fixed compilation to stop with keyboard interruption on cli
- Fixed compilation error with metadata and imported contract interfaces
- Fixed incorrect stack when calling `call_contract`

0.14.0

> This version has breaking changes. Please refer to our [migration guide](/docs/migration-guide-v0.14.0.md) to update your smart contracts.

Changed
- Moved `ByteString` class methods `to_int`, `to_str`, `to_bytes` and `to_bool` to the module `boa3.builtin.type.helper`

Removed
- Removed `ByteString` type.
- Removed `to_int` implementation from `str` and `bytes` types.
- Removed `to_bytes` implementation from `int` and `bytes` types.
- Removed `to_str` implementation from `bytes` types.
- Removed `to_bool` implementation from `bytes` type.

Fixed
- Fixed debugging information for symbols of imported modules.
- Fixed incorrect import error caused by root folder path.
- Fixed generation of static variables that were duplicated.
- Fixed code generation for method calls on `return` statements in void methods.
- Fixed compilation failure caused by imports in the file where `NeoMetadata` is defined.
- Fixed standard validations when using imported symbols.

0.13.1

Changed
- Imported contract interfaces are included on metadata permissions to ensure the expected executing behavior


Fixed
- Fixed inconsistent behavior on metadata permission

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.