Skip to content

# Release Notes - tronlib v0.0.3

Choose a tag to compare

@kslamph kslamph released this 10 May 14:36
9908c1f

This release focuses on significantly enhancing TRC20 token and smart contract interactions, improving the transaction building process, and overall library stability and developer experience.

✨ New Features

  • TRC20 Token Support:
    • Comprehensive support for TRC20 token operations. (7b2251b)
    • Added decimal support for TRC20 token amounts. (cebb92c, 1903ae7)
    • Implemented caching for TRC20 token methods to improve performance. (cebb92c)
    • Improved handling of TRC20 contract addresses. (1903ae7)
    • Added new TRC20 contract-related functions and constants to documentation. (1903ae7)
  • Smart Contract Interaction:
    • Initial support for generic smart contract interactions. (f2117cd)
  • Client & Transaction Enhancements:
    • Introduced WaitForTransactionInfo feature in the client network layer for better transaction status tracking. (1903ae7)
    • Corrected owner address handling in TRX transfer transactions. (1903ae7)

🚀 Improvements

  • TRC20:
    • Improved TRC20 token transfer functionality. (9908c1f)
  • Smart Contracts:
    • Enhanced contract call data encoding logic. (1903ae7)
    • Improved the TriggerSmartContract function. (1903ae7)
  • Transaction Building & Client:
    • Improved connection handling with a retry mechanism in tests (implies potential client improvements). (1903ae7)
    • Updated Transaction struct and methods with default values. (1903ae7)
  • Logging:
    • Replaced fmt.Printf with log.Printf for more robust logging and error handling throughout the library. (d54fd6b)

🛠️ Refactoring & Chores

  • Renamed contract trigger functions to use EncodeInput for clarity (e.g., ContractTrigger -> EncodeInput). (1903ae7)
  • Converted contract trigger calls to utilize encode input calls internally. (1903ae7)
  • Increased default rate limit times from 4 to 5. (1903ae7)
  • Internal improvements to freezing/unfreezing and delegating/tracking resources. (1903ae7)

📚 Examples & Documentation

  • Added example code for interacting with TRC20 smart contracts. (a4b3b06)
  • Added example code for generic smart contract interactions. (a4b3b06)
  • Simplified the TRC20 send example. (9908c1f)
  • Updated constants related to Tron address formatting in documentation. (1903ae7)