Repository navigation
16.0.0
This release adds support for Protocol 28.
Breaking changes
- CAP-71 authorization now defaults to the address-bound
ADDRESS_V2credentials, with a legacy opt-out on each end: (#1213)stellar_sdk.auth.authorize_invocationbuildsSOROBAN_CREDENTIALS_ADDRESS_V2entries; passcredentials_type=SorobanCredentialsType.SOROBAN_CREDENTIALS_ADDRESSfor the legacy format.SorobanServer[Async].simulate_transactionsendsuseUpgradedAuth: true, so simulation recordsADDRESS_V2credentials; passuse_upgraded_auth=Falsefor the legacy format.AssembledTransaction[Async]andContractClient[Async].invokefollow the same default, andSorobanServer[Async].prepare_transactiongains ause_upgraded_authparameter it forwards to simulation.
Update
- Add CAP-85 (Protocol 28) external executable reference support across the high-level API. A contract created from an external executable reference carries no Wasm hash of its own: the reference names an owner contract and an owner-scoped tag, and the contract follows whatever Wasm hash the owner publishes under that tag. Updating the tag therefore upgrades every contract following it at once. (#1211)
- New
TransactionBuilder.append_create_contract_from_external_ref_opbuilds the creation operation.ownermust be a contract address, since only a contract can hold the persistent tag entry that names the Wasm;tagis an unboundedSCString, so a binary tag is passed through undecoded. - New
ContractClient[Async].create_contract_from_external_refwraps that operation, mirroringcreate_contract. - New
SorobanServer[Async].get_external_ref_wasm_hashreturns the Wasm hash a reference currently names by reading the owner's persistent tag entry. The owner contract is not invoked. SorobanServer[Async].get_contract_wasm— and soget_contract_meta,get_contract_specandget_contract_info— resolves external references instead of rejecting them as an unsupported executable kind.- New
ExternalRefNotFoundError(aContractWasmRetrievalError) reports a tag entry that is missing or archived. stellar_sdk.scval.to_nativeconvertsSCV_EXECUTABLE_TAGthe way it convertsSCV_STRING: tostr, or to the rawbyteswhen the tag is not valid UTF-8.- The SCVal comparator behind
stellar_sdk.scval.to_mapkey ordering handles the new variants; it previously raisedValueErrorforSCV_EXECUTABLE_TAGand treated every non-Wasm executable as equal.
- New
- chore: upgrade generated XDR definitions to Protocol 28. (#1209)
Fixes
- Forward the supplied
clientto thestellar.tomllookup infederation.resolve_stellar_address; it previously used a defaultRequestsClientfor that request.