Releases: CityOfZion/neo3-boa
Releases · CityOfZion/neo3-boa
v1.2.1
v1.2.0
Added
- Included
boa-test-constructor
to the installation.- Install it by using
pip install neo3-boa[test]
- Install it by using
- Support to type union annotations using
|
operator
Changed
- Changed all unit tests to use
boa-test-constructor
in place ofNeoTestRunner
- Raise deprecated warning when using deprecated typing aliases and removed their uses from the compiler code
Deprecated symbols fromtyping
:List
,Dict
,Tuple
(use the builtins instead)Collection
,Mapping
,MutableSequence
,Sequence
(import fromcollections.abc
instead)
- Changed
NeoMetadata.add_permission
function signature to be more intuitive to add multiple methods permissions
Removed
- Dropped support to Python 3.10
- Removed
@metadata
decorator to identify metadata function. UseNeoMetadata
as function return instead.
Fixed
- Fixed
tuple
annotation behavior runtime.script_container
returns aTransaction
instead ofAny
- Removed empty lines that were logged when compiling a smart contract
v1.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
andstr
) str.replace
andlist.sort
methods
- fstrings and match-case with primitive types (
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
andUnion
withNone
types
v1.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
- Added zero knowledge proof methods to
to_hex_str
method to convertbytes
into printable strings
Changed
- Included
msg
optional argument toabort
- 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
v1.0.1
v1.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
toneo3-boa compile
- Limit logs to ERROR by default
- Support to
int
constructor withstr
argument - Change NEP-11 validator to accept both
str
andbytes
as argument types in some methods
Removed
- Removed TestEngine 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
v0.14.0
This version has breaking changes. Please refer to our migration guide to update your smart contracts.
Changed
- Moved
ByteString
class methodsto_int
,to_str
,to_bytes
andto_bool
to the moduleboa3.builtin.type.helper
Removed
- Removed
ByteString
type. - Removed
to_int
implementation fromstr
andbytes
types. - Removed
to_bytes
implementation fromint
andbytes
types. - Removed
to_str
implementation frombytes
types. - Removed
to_bool
implementation frombytes
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.
v0.13.1
v0.13.0
Added
- Included execution tests in the unit tests using the Neo Test Runner.
Deprecated
- Deprecating TestEngine interface.