🎉 Release v1.0.11 : Performance Optimizations and Smart Contract Enhancements
We're excited to announce the release of version 1.0.11 of the TronLib library! This release focuses on performance optimizations, enhanced smart contract capabilities, and improved code quality across multiple components.
🚀 New Features
Multisignature Support
- Added multisignature support with a new example and transaction utility functions for handling multi-party transactions
- Expanded event decoder with 48 new event signatures for smart contract decoding
Smart Contract Performance
- Improved smart contract performance through method and constructor type caching with thread-safe read-write mutex
- Optimized ABI encoding with pre-allocated slice allocation to reduce memory allocations
🔧 Key Improvements
Connection Pool Reliability
- Enhanced connection pool reliability with health validation before returning pooled connections
Error Handling
- Simplified error handling in TRC20 Transfer and Approve methods with consistent error message formatting
- Fixed decimals caching logic with a dedicated boolean flag for precise cache tracking
Code Quality
- Code quality improvements including removal of redundant nil checks, commented debug code, and unused blank lines
- Simplified ContractInstance method to return errors explicitly for failed instance creation
📈 Impact
These changes improve the overall performance and reliability of the library by:
- Reducing redundant parsing operations through intelligent caching mechanisms
- Providing better multi-signature transaction support for advanced use cases
- Ensuring more predictable error handling and connection pool behavior
- Delivering cleaner, more maintainable codebase
As always, we encourage users to update to this version to take advantage of these performance improvements and enhanced smart contract capabilities.