Skip to content

v1.0.0-beta.0

Compare
Choose a tag to compare
@Shaptic Shaptic released this 13 Sep 18:06
· 20 commits to main since this release
00f3d10

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

v1.0.0-beta.0: Protocol 20

Added

  • SorobanRpc.isSimulationSuccess, SorobanRpc.isSimulationRestore and SorobanRpc.isSimulationError are helper methods to differentiate the various responses when simulating a transaction (#132).

Breaking Changes

  • The XDR has been upgraded to the final testnet version via the stellar-base dependency (v10.0.0-beta.0, #135).
  • The simulateTransaction endpoint will now return a restorePreamble structure containing the recommended footprint and minimum resource fee for a transaction with a Operation.restoreFootprint which would have made the simulation succeed (#132).
  • It also parses and transforms the raw schema into something easier to access:
    • results?[] is coalesced into a single result?
    • results[i].xdr is now result.retval
    • every XDR object is decoded when possible, e.g. result.retval is an xdr.ScVal
    • events?[] now always exists (but may be empty)

Fixed

  • Result types are now handled correctly by ContractSpec (#138).

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