v0.10.0
Breaking Changes
You should use the well-supported C...
strkey format, instead. To migrate, you can do something like
let contractId = StrKey.encodeContract(Buffer.from(hexContractId, 'hex'));
Added
- Updated
stellar-base
dependency to v10.0.0-soroban.5 which introduces many helpful Soroban abstractions (see full release notes for more details and TypeScript interfaces):- Use an existing, immutable
Transaction
as a template for a new one viaTransactionBuilder.cloneFrom(tx, opts = {})
and useopts
to override fields (#656). - Use the new
SorobanDataBuilder
class to easily prepare Soroban transaction footprints #660. - Use
humanizeEvents
to create human-readable versions ofxdr.ContractEvent
s andxdr.DiagnosticEvent
s that come out of transaction meta (#659). - Use several helpers to reliably build Soroban authorization entries for complex, multi-party signing scenarios (#663). These are each at various levels of granularity/complexity:
authorizeInvocation
authorizeInvocationCallback
buildAuthEnvelope
buildAuthEntry
- Use an existing, immutable
Fixed
assembleTransaction()
(andServer.prepareTransaction()
by proxy) will now override the authorization portion of simulation if you provide a transaction with existing authorization entries. This is because, in complex auth scenarios, you may have signed entries that would be overwritten by simulation, so this just uses your existing entries (#114).- Added a missing
type
field to theEventResponse
interface (#118).
New Contributors
Full Changelog: v0.9.2...v0.10.0