Releases: tronprotocol/tronweb
Releases · tronprotocol/tronweb
v6.0.0
- 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
- Replace
ethers@v5/abi
with abiCoder ofethers@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.
v6.0.0-beta.3
- Support recovering transaction signer address by trx.ecRecover.
- Support both base58 format and hex format address field in keys of updateAccountPermissions params.
- Support type for contract instance.
v6.0.0-beta.2
- Bump ethers from 6.8.0 to 6.11.1
- Bump ethereum-cryptography from 2.1.2 to 2.1.3
- Bump axios from 1.6.2 to 1.6.8
v5.3.2
- Add custom block header argument for building transactions locally in
transactionBuilder
lib - Support TIP586 by
trx.getBandwidthPrices
andtrx.getEnergyPrices
- Support recover transaction signer address by
trx.ecRecover
- Support multi-dimension address array such as
address[][]
for ABI params encoding intriggerSmartContract
andcreateSmartContract
#433 - Fix error when
triggerSmartContract
with error address due to the undefined callback #429 - Bump axios from 0.26.1 to 1.6.2 #445
v6.0.0-beta.1
- Support TIP586 with
trx.getBandwidthPrices
andtrx.getEnergyPrices
. - Support custom block header info when creating transaction.
v6.0.0-beta.0
- Add full type definition for Typescript.
- Change Default exports to Named exports.
- Change TronWeb.createRandom(options) to TronWeb.createRandom(password, path, wordlist).
- Change TronWeb.fromMnemonic(mnemonic, path, wordlist) to TronWeb.fromMnemonic(mnemonic, path, password, wordlist).
- All methods in Trx and TransactionBuilder perform an strict check for type and position of parameters.
- All methods in TronWeb will throw an Error instance instead of a string. e.message should be used to access error information.
- Update TronWeb#event API with new backend service(#422).
- Remove Contract#watch() method.
- Support multi-dimension address array parameters in TransactionBuilder#triggerSmartContract()(#433).
v5.3.1
v5.3.0
- Replace elliptic with ethereum-cryptography/secp256k1
- Bump ethers to ^6.6.0
- Optimize argument validation for createToken, updateToken and applyForSR
- callValue can be 0 when the contract constructor is payable
- Support shouldPollResponse to customize poll times (#368)
- Support TIP541 by transactionBuilder.cancelUnfreezeBalanceV2
- Support TIP542 by adding a parameter in transactionBuilder.delegateResource
- Support estimate the energy used in contract deployment by transactionBuilder.deployConstantContract