Skip to content

Releases: trustlines-protocol/clientlib

0.17.1

12 Dec 17:24

Choose a tag to compare

Bump release due to failed npm deployment

0.17.0

12 Dec 10:57

Choose a tag to compare

  • Added support for Gnosis Safe wallets

0.15.2

27 Oct 07:28

Choose a tag to compare

Fixed

  • UserInformation.ts was not included in the build

0.15.1

27 Oct 07:25

Choose a tag to compare

Fixed

  • Trustline update requests with transfer set to "0" were calling the wrong contract function

0.15.0

19 May 14:29

Choose a tag to compare

Added

  • Added method UserInformation.getTotalTransferredSum() to get the total transferred sum from one
    user to the other in a time window in a currency network

Changed

  • Added optional parameter transfer to Trustline.prepareUpdate() and Trustline.prepareAccept() to open
    a trustline with a transfer request.
  • Added argument transfer to trustline update request events corresponding to the requested transfer in the
    point of view of the initiator of the request

0.14.0

19 May 14:28

Choose a tag to compare

Changed

  • Rename Interests.ts to UserInformation.ts and their class and methods accordingly

Added

  • Added function UserInformation.getEarnedMediationFees() to get all the mediation fees
    earned by a user in a network. (requires version of relay 0.19.0)
  • Added option options.remainingData to prepare payment. The remainingData will be encoded
    together with other options in the transfer extraData
  • Added field remainingData for payment details and transfer events corresponding to the
    newly added remainingData field
  • Added method paymentRequestCancel to cancel a payment request you already sent to a counterparty.

0.13.7

28 Oct 09:40

Choose a tag to compare

Changed

  • Use feeRecipient as given by the provider instead of zeroAddress for meta-tx
  • Use random none generation at the identity wallet for meta transactions

Added

  • Add function to get the delegation fees paid in transaction: Transaction.getAppliedDelegationFees(txHash).
    It returns a list of all delegation fees applied in transaction with given hash
    where the fee payer is the loaded user
  • Add extraData to TransferDetails, it contains the raw extraData that was present in the transfer
    for which details are returned
  • Add paymentRequestId and messageId to TransferDetails corresponding to the decoded extraData
  • Add option to Payment.preparePayment function options.addMessageId: boolean = true that signals whether
    a messageId should be generated and added to the payment's extraData.
  • Add messageId to the returned values of Payment.preparePayment
  • Add function Payment.confirmPayment to confirm any PaymentTxObject returned by prepare
    and potentially send a payment message along with the payment
  • Add function Messaging.paymentMessage to send a payment message for a messageId to a counterparty address
  • Add optional field to the TLNetworkConfig for the nonce mechanism to use

Deprecated

  • Deprecates function Payment.confirm, use Payment.confirmPayment instead

Removed

  • Removed the field nonce from payment requests and declines, use id instead

Version 0.12.0

09 Apr 11:16

Choose a tag to compare

Changed

  • TLNetwork now uses two distinct urls for messaging and relay in its config (BREAKING)
  • Updated initcode of identity proxy to match new contracts version, this changes the address of deployed identities (BREAKING)
  • Updated meta-transaction fields to match new contracts feature (BREAKING) New fields: chainId, version, baseFee, gasPrice, gasLimit, feeRecipient, timeLimit, operationType. Fields removed: delegationFees, extraData

Added

  • Added method getAllOfUser() in Trustline to get all trustlines of loaded user
  • Added caching for getting the decimals of a currency network
  • Enabled websocket stream subscribers to handle websocket errors
  • Added function getUserAccruedInterests in Information to get all accrued interests of user
  • Added function getTrustlineAccruedInterests in Information to get all accrued interests of trustline

Version 0.11.0

09 Apr 11:15

Choose a tag to compare

Changed

  • TLNetwork now uses two distinct urls for messaging and relay in its config (BREAKING)
  • Updated initcode of identity proxy to match new contracts version, this changes the address of deployed identities (BREAKING)
  • Updated meta-transaction fields to match new contracts feature (BREAKING) New fields: chainId, version, baseFee, gasPrice, gasLimit, feeRecipient, timeLimit, operationType. Fields removed: delegationFees, extraData

Added

  • Added method getAllOfUser() in Trustline to get all trustlines of loaded user
  • Added caching for getting the decimals of a currency network
  • Enabled websocket stream subscribers to handle websocket errors
  • Added function getUserAccruedInterests in Information to get all accrued interests of user
  • Added function getTrustlineAccruedInterests in Information to get all accrued interests of trustline

Version 0.10.0

05 Nov 17:14

Choose a tag to compare

v0.10.0

v0.10.0