v1.0.0-beta.0
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
andSorobanRpc.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 arestorePreamble
structure containing the recommended footprint and minimum resource fee for a transaction with aOperation.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 singleresult?
results[i].xdr
is nowresult.retval
- every XDR object is decoded when possible, e.g.
result.retval
is anxdr.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