Skip to content

6.0.0

Latest

Choose a tag to compare

@overcat overcat released this 28 Oct 08:27
· 3 commits to master since this release
a6fba08

This release adds support for Protocol 30.

Update

  • feat: support CAP-84 muxed contract addresses (W...). Like a muxed account (M...), one is only valid as a destination, such as the to of a SAC transfer. (#827)
    • New StrKey.encodeMuxedContract, StrKey.decodeMuxedContract, and StrKey.isValidMuxedContract. The raw form is the 32-byte contract ID followed by the 8-byte big-endian ID (SEP-23).
    • Address parses W... and converts it to and from SCAddress and SCVal (Address.AddressType.MUXED_CONTRACT, Address.fromMuxedContract(byte[])), so return values and events holding one now decode. Scv.toMap sorts them as keys.
  • feat: add contractMuxed and contractMuxedId to ContractCreditedEffectResponse, set when a SAC transfer or mint goes to a W... address. (#828)
  • feat: check addresses the Soroban network would reject before building anything: Auth signs only for G.../C... addresses, SorobanServer.getContractData takes a C... and no muxed address in the key, and TransactionBuilder.buildRestoreAssetBalanceEntryTransaction takes a C... balanceOwner. These now throw IllegalArgumentException instead of failing at simulation or submission. (#827)
  • fix: AssembledTransaction waits between getTransaction polls (1s, then 1.5× longer each time up to 6s, until submitTimeout) instead of polling continuously, and a network error while polling now propagates as NetworkException instead of being retried. This covers submit, signAndSubmit, restoreFootprint, and ContractClient.invoke. (#819)
  • fix: always encode text as UTF-8 instead of the JVM default charset in Scv.toString(String), Sep10Challenge, Util.paddedByteArray(String, int), and SorobanServer requests. (#820)
  • fix: StrKey.decodeClaimableBalance and StrKey.isValidClaimableBalance reject a claimable balance ID whose type byte is not 0, as SEP-23 requires, so new Address(...) now fails up front for one. (#826)
  • refactor: deprecate GetEventsResponse.EventInfo.inSuccessfulContractCall. Stellar RPC no longer returns it (stellar-rpc#1050), so it is null; it will be removed in 7.0.0. (#825)
  • chore: upgrade generated XDR definitions to Protocol 30 (CAP-84, CAP-87, CAP-88). (#822)
  • chore: update dependencies and build tooling (OkHttp 4.12.1, Gson 2.15.0, Bouncy Castle 1.86, Commons Codec 1.23.0, Gradle 9.8.2, Kotlin 2.4.21, Spotless plugin 8.10.4, Lombok plugin 9.8.2, NMCP plugin 1.6.2). Bouncy Castle 1.86 fixes CVE-2026-8763 (critical) and CVE-2026-13506 (high) in the 1.84 shipped with 5.0.0. (#824)