Skip to content

v1.0.0-beta.3

Compare
Choose a tag to compare
@Shaptic Shaptic released this 13 Oct 17:53
· 6 commits to main since this release
96238c2

Note: This version is currently only compatible with Stellar networks running the Protocol 20 release candidate such as the current Testnet (using stellar/stellar-xdr@9ac0264).

This is a patch release: please refer to v1.0.0-beta.0 for a complete changelog.

v1.0.0-beta.3

Added

  • Responses for Server.getContractData and Server.getLedgerEntries now include an expirationLedgerSeq attribute on ledger data entries that have expiry information (#153).
  • The new Server._simulateTransaction method will return the raw response directly from the RPC server rather than parsing XDR fields (#160).

Breaking Changes

  • The stellar-base dependency has been upgraded to v10.0.0-beta.3 which contains breaking changes related to auth helpers and some bugfixes (#158).
  • All endpoints will now automatically decode XDR structures whenever possible. In particular,
    • For the Server.getLedgerEntries response (#154), we parse:
      • entries is now guaranteed to exist, but it may be empty
      • entries[i].key is an instance of xdr.LedgerKey
      • the entries[i].xdr field is now val, instead
      • entries[i].val is an instance of xdr.LedgerEntryData
    • For the Server.sendTransaction response (#157), we parse:
      • errorResultXdr is renamed to errorResult
      • If it's present, it's an instance of xdr.TransactionResult
    • For the Server.getEvents response (#156), we parse:
      • events[i].contractId is now an instance of Contract
      • events[i].topic is now a list of decoded xdr.ScVal instances
      • events[i].value.xdr is now remapped directly to events.value
      • events[i].value is a decoded xdr.ScVal instance
    • For the Server.sendTransaction response (#157), we parse:
      • errorResultXdr is now errorResult, a parsed instance of xdr.TransactionResult
  • If you want to continue to use the raw RPC responses, you can use the _-prefixed methods which will return the response directly:
    • Server._getLedgerEntries
    • Server._sendTransaction
    • Server._getEvents
    • Server._simulateTransaction
    • Server._getTransaction

Full Changelog: v0.11.2...v1.0.0-beta.3