stellar-base
Advanced tools
Changelog
This release supports Protocol 22. While the network has not upgraded yet, you can start integrating the new features into your codebase if you want a head start. Keep in mind that while the binary XDR is backwards-compatible, the naming and layout of structures is not. In other words, this build will continue to work on Protocol 21, but you may have to update code that references XDR directly.
This version is unchanged from beta.1
.
Changelog
This is the first release that supports Protocol 22. While the network has not upgraded yet, you can start integrating the new features into your codebase if you want a head start. Keep in mind that while the binary XDR is backwards-compatible, the naming and layout of structures is not. In other words, this build will continue to work on Protocol 21, but you may have to update code that references XDR directly.
Operation.createCustomContract
, constructorArgs: xdr.ScVal[]
(#770).Changelog
walkInvocationTree
to allow void returns on the callback function as intended rather than forcing a return null
(#765).authorizeEntry
to use the correct public key when passing Keypair
s (#772).Changelog
TransactionBuilder
now has addOperationAt
and clearOperationAt
methods to allow manipulation of individual operations (#757).nativeToScVal
now correctly sorts maps lexicographically based on the keys to match what the Soroban environment expects (#759).nativeToScVal
now allows all integer types to come from strings (#763).humanizeEvents
now handles events without a contractId
set more reliably (#764).Changelog
StrKey.isValidContract
(#751).scValToNative
would fail when the values contained error codes because the parsing routine hadn't been updated to the new error schemas. Errors are now converted to the following format (#753):interface Error {
type: "contract" | "system";
code: number;
value?: string; // only present for type === 'system'
}
You can refer to the XDR documentation for additional explanations for each error code.
Changelog
1a04392
(#738).cereal.XdrWriter
and cereal.XdrReader
which come directly from @stellar/js-xdr
(#744).