Skip to content

Releases: tronprotocol/tronweb

v6.1.1

16 Dec 10:34
15b8f1d

Choose a tag to compare

Changes

  • Remove dependency jsonwebtoken.
  • Bump validator from v13.15.20 to v13.15.23.
  • Address other audit issues.

v6.1.0

04 Nov 07:28
15a649d

Choose a tag to compare

New Features

  • New deserialization support
    Added support for deserializing the following transaction types from raw_data_hex:

    • TransferContract
    • WithdrawBalanceContract
    • WitnessCreateContract
  • trx.getCurrentRefBlockParams
    Provides a method to retrieve the parameters required for transaction building. Users can pass these parameters to transaction constructors and customize the header information, making transaction creation more convenient.

  • trx.signTypedData alias
    Added trx.signTypedData as an alias pointing to the legacy trx._signTypedData method.

Changes

  • Removed getHeaderInfo from the transactionBuilder helper library. Use trx.getCurrentRefBlockParams instead.

  • Moved the deserializeTransaction function from utils/transaction to utils/deserializeTx for better scalability and maintainability of future modules.

  • Dependency updates:

    • axios upgraded from 1.11.0 to 1.12.2
    • puppeteer upgraded from 24.4.0 to 24.23.0

v6.0.4

31 Jul 09:32
149828b

Choose a tag to compare

New Features

  • Improve type inference in Contract module when using typescript.
    • The Contract now infers method signatures based on the provided ABI.
    • To enable accurate inference, the ABI should be defined using the as const assertion or passed directly into tronWeb.contract().

Change

  • Change the return behavior of the contract.new() method.
    • Previously, this method mutated the current instance and used the ABI stored on the Tron blockchain, which proved to be unreliable. It now returns a new instance that uses the ABI provided in the options parameter.
  • Export GetEventResultOptions and EventResponse.
  • Allow using length as the value of the name field in the ABI, but you cannot use result['length'] to read its value.
  • Bump axios from 1.8.3 to 1.11.0, bump eslint from 9.22.0 to 9.31.0.

Bug Fixes

  • Fix the issue where addUpdateData treats numeric strings as numbers.#629
    • Starting from TronWeb v6.0.4, addUpdateData will use TronWeb.fromUtf8 to convert the provided data string—unless it starts with '0x'.
    • If the resulting data string has an odd length, a '0' will be prepended to ensure even length.

v6.0.3

23 Apr 09:26
71bac09

Choose a tag to compare

  • Add support for deserializing 6 more transactions.
  • Fix npm audit issues.
  • Fix the error in the abi variable within transactionBuilder.createSmartContract.
  • Export Method class.
  • Add missing fields in internal_transactions.

v5.3.4

10 Apr 12:29
5bd9468

Choose a tag to compare

  • Fix CSP problem in the TransactionBuilder.vote function.

v5.3.3

21 Mar 09:50
7651c7a

Choose a tag to compare

  • Update dependencies to address audit problems.

v6.0.2

17 Mar 10:50
c8d57ae

Choose a tag to compare

  • Bump axios from 1.7.4 to 1.8.3.
  • Fix npm audit problems.

v6.0.1

17 Jan 10:06
582e3a1

Choose a tag to compare

  • Support deserialize TriggerSmartContract transaction by raw_data_hex.
  • Replace @tronweb3/google-protobuf with google-protobuf.
  • Fix some type errors and API return type compatibility issues.

v6.0.0

20 Sep 12:38
7055429

Choose a tag to compare

  • Fix #543, replace type AxiosHeaders with InstanceType.
  • Add type for value field in the return of the creation by TransactionBuilder methods.
  • Fix known type errors.
  • Bump axios from 1.6.8 to 1.7.4 and webpack from 5.78.0 to 5.94.0.
  • Add TronWeb.address.toChecksumAddress and TronWeb.address.isChecksumAddress APIs.
  • Fix the wrong action of deocdeInput API in Contract module. #557

v6.0.0-beta.4

12 Jul 10:14
41ab0d0

Choose a tag to compare

  • Replace ethers@v5/abi with abiCoder of ethers@v6.
  • Bump ethers from v6.11.1 to v6.13.1.
  • Export all Types and enum objects.
  • Move typescript and other dev dependencies into devDependencies field in package.json.
  • Change headers type in TronWeb constructor.