Skip to content

Releases: tronprotocol/trident

0.9.1

10 Oct 03:08
efac9cc
Compare
Choose a tag to compare
  1. feat(core): Add break statements to each switch case in resolveResultCode(), avoid returning wrong result code #133

  2. feat(core): Optimize local transaction construct logic in createTransactionExtention(), add exceptions handling logic #138

  3. 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

09 May 11:19
0ae6710
Compare
Choose a tag to compare
  1. feat(core): introduce the new version “attachHeaders” and “captureMetadata” methods which were deprecated in the current version of Trident.

  2. 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.

  3. 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.
  4. 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

01 Nov 11:34
e194eaf
Compare
Choose a tag to compare

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

14 Jul 08:13
c87a9a8
Compare
Choose a tag to compare
  1. 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.

  2. 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 is Function)
  • estimateEnergyV2(): estimate the energy required to successfully execute a smart contract transaction (parameter is callData)
  • delegateResourceV2(): delegate bandwidth/energy to another account, new parameter lockPeriod is added, users can specify their own lock period.
  • constantCallV2(): initiate constant contract call, support pass callData.
  • triggerCallV2(): trigger a smart contract call, support pass callData.

0.6.0

14 Jun 06:54
7dbffc0
Compare
Choose a tag to compare
  1. 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.

  2. feat(core): add more java-tron gRPC APIs, as below,

  • getTransactionListFromPending: get the transaction list information from the pending pool
  • getPendingSize: get the size of the queue in the pending pool
  • getTransactionFromPending: get transaction details from the pending pool
  • getBlockById: query block information by block hash
  • getNextMaintenanceTime: get the next maintenance period time
  • getBurnTRX: query the amount of TRX burned on the chain
  • getBlockBalance: get all balance change operations of a block.
  • createWitness: create a witness address
  • updateWitness: modify the official website URL of the witness
  • withdrawBalance: withdraw the reward in the balance
  • proposalCreate: create a proposal
  • approveProposal: approve a proposal
  • deleteProposal: delete a proposal
  1. feat(core): optimize code structure.
    Note: the parameters type of interfaces freezeBalance and updateAsset 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

18 Apr 08:10
8661820
Compare
Choose a tag to compare
  1. 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.

  2. feat(core): optimize getBlockByNum interface
    Note: the getBlockByNum interface now returns BlockExtention instead of Block, which contains the missing blockId value. If you use this API, you need to make changes to be compatible with the return optimized.

0.4.1

06 Apr 09:29
e0e2f69
Compare
Choose a tag to compare

feat(core): optimize proto files to support Stake 2.0

  1. optimize the getAccount interface to support Stake 2.0.
  2. optimize the getAccountresource interface to support Stake 2.0.
  3. optimize the getTransactionInfoByid interface to support Stake 2.0.

0.4.0

14 Mar 07:28
8dda1d5
Compare
Choose a tag to compare

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 revoked
  • delegateresource: delegate resource to an address
  • undelegateresource: undelegate resource API
  • withdrawexpireunfreeze: API used to withdraw unstaked TRX
  • getavailableunfreezecount: Inquiry API for the remaining times of unstaking
  • getcanwithdrawunfreezeamount: query the withdrawable balance of a specific timestamp
  • getcandelegatedmaxsize: query the amount of delegatable resources of a specified resource type for an address
  • getdelegatedresourcev2: query the detail of resource delegated by fromAddress (owner) to toAddress (recipient)
  • getdelegatedresourceaccountindexv2: query the resource delegation index of an address

0.3.0

19 Aug 08:15
500bfc6
Compare
Choose a tag to compare

feat(core): Add the function to deploy contracts with constructor parameters

0.2.1

13 Aug 03:53
487eb63
Compare
Choose a tag to compare

fix(core): fix the problem that the contract method without ABI cannot be called