Releases: tronprotocol/trident
0.9.1
-
feat(core): Add break statements to each switch case in
resolveResultCode()
, avoid returning wrong result code #133 -
feat(core): Optimize local transaction construct logic in
createTransactionExtention()
, add exceptions handling logic #138 -
feat(dependency): Upgrade dependency packages, as below:
- Bump protobuf-java from 3.25.0 to 3.25.5.
- Bump protobuf-java-util from 3.25.0 to 3.25.5.
0.9.0
-
feat(core): introduce the new version “attachHeaders” and “captureMetadata” methods which were deprecated in the current version of Trident.
-
feat(core): add timeout setting for blocking stub, allowing gRPC clients to specify the maximum time they are willing to wait for RPC completion, after which an error will be thrown if the timeout is exceeded.
-
feat(dependency): upgrade dependency packages, as below:
Bump protobuf-java from 3.11.0 to 3.25.0
.Bump protobuf-java-util from 3.11.0 to 3.25.0
.Bump bcprov-jdk from 1.66 to 1.69
.Bump netty-all from 4.0.15.Final to 4.1.100.Final
.Bump vertx-core from 3.5.0.Beta1 to 3.9.16
.Bump grpc-netty from 1.31.0 to 1.58.1
.
-
feat(proto): update proto file to keep updated with Java-tron and add BLOCK_UNSOLIDIFIED return code to Response in api.proto file.
0.8.0
1.feat(core): add gRPC interfaces for resource price query introduced in java-tron v4.7.3, as below:
getBandwidthPrices()
: query historical bandwidth unit price.getEnergyPrices()
: query historical energy unit price.getMemoFee()
: query historical memo fee unit price.getBandwidthPricesOnSolidity()
: query historical bandwidth unit price.getEnergyPricesOnSolidity()
: query historical energy unit price.
2.feat(abi): optimize methods in TypeDecoder, which allows developers to decode different types of parameter values easily
decodeNumeric
decodeAddress
decodeBytes
decodeBool
decodeDynamicBytes
decodeUtf8String
decodeStaticStruct
decodeDynamicArray
decodeDynamicStruct
3.feat(test): upgrade gRPC Nile testnet endpoints to official endpoints when running Unit tests
0.7.0
-
feat(core): support customizable gRPC interceptors
Note: developers can add customizable gRPC interceptors in ApiWrapper constructor, enabling embedding some customizable interceptor logic (eg: logging/metrics), before the request/after the response, of a gRPC call. -
feat(core): support more java-tron gRPC APIs introduced in 4.7.2 release as following:
cancelAllUnfreezeV2()
: cancel all unstaking transactions in the waiting period.estimateEnergy ()
: estimate the energy required to successfully execute a smart contract transaction (parameter isFunction
)estimateEnergyV2()
: estimate the energy required to successfully execute a smart contract transaction (parameter iscallData
)delegateResourceV2()
: delegate bandwidth/energy to another account, new parameterlockPeriod
is added, users can specify their own lock period.constantCallV2()
: initiate constant contract call, support passcallData
.triggerCallV2()
: trigger a smart contract call, support passcallData
.
0.6.0
-
feat(utils): support Android platform.
Note: In the previous version, a NoClassDefFound exception would be thrown when importing trident.jar on Android platform. This upgrade supports Android platform so that eliminates the exception message. -
feat(core): add more java-tron gRPC APIs, as below,
getTransactionListFromPending
: get the transaction list information from the pending poolgetPendingSize
: get the size of the queue in the pending poolgetTransactionFromPending
: get transaction details from the pending poolgetBlockById
: query block information by block hashgetNextMaintenanceTime
: get the next maintenance period timegetBurnTRX
: query the amount of TRX burned on the chaingetBlockBalance
: get all balance change operations of a block.createWitness
: create a witness addressupdateWitness
: modify the official website URL of the witnesswithdrawBalance
: withdraw the reward in the balanceproposalCreate
: create a proposalapproveProposal
: approve a proposaldeleteProposal
: delete a proposal
- feat(core): optimize code structure.
Note: the parameters type of interfacesfreezeBalance
andupdateAsset
were updated to keep compatible with java-tron gRPC APIs, so when using the latest version of Trident API, remember to modify the corresponding interface parameters type.
0.5.0
-
feat(core): support offline transaction construction.
Note: change the way of transaction construction from remote to local constructing, which covers most of the transaction-related APIs and ensure the transaction won’t be maliciously modified before signing when constructing locally. -
feat(core): optimize
getBlockByNum
interface
Note: thegetBlockByNum
interface now returnsBlockExtention
instead ofBlock
, which contains the missingblockId
value. If you use this API, you need to make changes to be compatible with the return optimized.
0.4.1
0.4.0
feat(core): Add Stake 2.0 related APIs support.
freezebalancev2
: stake TRX to obtain TRON Power (voting rights) and a specified type of resource (bandwidth or energy)unfreezebalancev2
: unstake TRX to release resource obtained and meanwhile TRON Power will be released and all corresponding votes will be revokeddelegateresource
: delegate resource to an addressundelegateresource
: undelegate resource APIwithdrawexpireunfreeze
: API used to withdraw unstaked TRXgetavailableunfreezecount
: Inquiry API for the remaining times of unstakinggetcanwithdrawunfreezeamount
: query the withdrawable balance of a specific timestampgetcandelegatedmaxsize
: query the amount of delegatable resources of a specified resource type for an addressgetdelegatedresourcev2
: query the detail of resource delegated by fromAddress (owner) to toAddress (recipient)getdelegatedresourceaccountindexv2
: query the resource delegation index of an address
0.3.0
feat(core): Add the function to deploy contracts with constructor parameters
0.2.1
fix(core): fix the problem that the contract method without ABI cannot be called