Releases: trustlines-protocol/clientlib
Releases · trustlines-protocol/clientlib
0.17.1
0.17.0
0.15.2
0.15.1
0.15.0
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
transfertoTrustline.prepareUpdate()andTrustline.prepareAccept()to open
a trustline with a transfer request. - Added argument
transferto trustline update request events corresponding to the requested transfer in the
point of view of the initiator of the request
0.14.0
Changed
- Rename
Interests.tstoUserInformation.tsand 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.remainingDatato prepare payment. TheremainingDatawill be encoded
together with other options in the transferextraData - Added field
remainingDatafor payment details and transfer events corresponding to the
newly addedremainingDatafield - Added method
paymentRequestCancelto cancel a payment request you already sent to a counterparty.
0.13.7
Changed
- Use
feeRecipientas 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
extraDatatoTransferDetails, it contains the rawextraDatathat was present in the transfer
for which details are returned - Add
paymentRequestIdandmessageIdtoTransferDetailscorresponding to the decodedextraData - Add option to
Payment.preparePaymentfunctionoptions.addMessageId: boolean = truethat signals whether
a messageId should be generated and added to the payment's extraData. - Add
messageIdto the returned values ofPayment.preparePayment - Add function
Payment.confirmPaymentto confirm anyPaymentTxObjectreturned byprepare
and potentially send a payment message along with the payment - Add function
Messaging.paymentMessageto send a payment message for a messageId to a counterparty address - Add optional field to the
TLNetworkConfigfor the nonce mechanism to use
Deprecated
- Deprecates function
Payment.confirm, usePayment.confirmPaymentinstead
Removed
- Removed the field
noncefrom payment requests and declines, useidinstead
Version 0.12.0
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
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
v0.10.0 v0.10.0