@stellar/stellar-base
Advanced tools
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).Changelog
Note: This version is (still) compatible with Protocol 20. Most people should be unaffected by the technically-breaking changes below and can treat this more like a v10.0.3 patch release.
BigNumber.DEBUG
in bignumber.js
to true
internally, which affects all code using BigNumber
. This behavior has been fixed and only affects this library: globally, BigNumber.DEBUG
now remains at its default setting (i.e. disabled). This is technically a breaking behavior change and is released as such (#729).