Releases: lightsail-network/java-stellar-sdk
0.42.0
Changes
- Make
StrKey
public, this allows users to conveniently encode and decode Stellar keys to/from strings. (#548) - Add support for muxed accounts in
PaymentOperationResponse
. (#550) - Improve the reliability of
SSEStream
. Now, it will restart when necessary. (#555) - Add the response code and body to
SubmitTransactionUnknownResponseException
. (#556)
Breaking changes
- Update
LedgerResponse
andAccountResponse
, remove outdated fields, and add missing fields. (#549) - Use
Price
instead ofString
to represent prices. Change the type ofCreatePassiveSellOfferOperation.price
,ManageBuyOfferOperation.price
, andManageBuyOfferOperation.price
fromString
toPrice
, this fixes the issue of incorrect operations parsed in certain specific scenarios. (#554) - Update the SDK to the stable Protocol 20 release: #553
- The
BumpFootprintExpirationOperation
is nowExtendFootprintTTLOperation
and itsledgersToExpire
field is now namedextendTo
, but it serves the same purpose. - The
InvokeHostFunctionOperation.createTokenContractOperationBuilder
is nowInvokeHostFunctionOperation.createStellarAssetContractOperationBuilder
. SorobanDataBuilder.setRefundableFee
is nowsetResourceFee
.- The RPC endpoint structure has changed, check #552 for more details.
- The
Full Changelog: 0.41.1...0.42.0
0.41.1
What's Changed
- Add
org.stellar.sdk.spi.SdkProvider
, users can implement this interface to provide their own implementation of the SDK. We provide an Android specific implementation, if you are integrating this SDK into an Android project, be sure to check it out. (#543) - Fix issues where the validity of the encoded strkey is not verified in certain scenarios. (#541)
- Fix the issue of javadocJar not including documentation. (#539)
- Publish sourcesJar to the GitHub Release page. (#539)
Full Changelog: 0.41.0...0.41.1
0.41.0
Changes
- Add support for Soroban Preview 11. (#530)
- New effects have been added to support Protocol 20 (Soroban) (#535):
ContractCredited
occurs when a Stellar asset moves into its corresponding Stellar Asset Contract instanceContractDebited
occurs when a Stellar asset moves out of its corresponding Stellar Asset Contract instance
- Add helper functions to sign authorization entries. (#537)
Breaking changes
-
Bump dependencies & Remove unnecessary dependencies like guava. (#523)
-
No longer provide a shadow jar that contains embedded, relocated third-party dependencies. (#528)
Instead the defaultstellar-sdk.jar
and thecom.github.stellar:java-stellar-sdk:{version}
dependency are now packaged
as 'thin library' jar, having no embedded dependencies.-
if your project used
stellar-sdk.jar
directly on classpath loader, will need to obtain the.jar
for each dependency version listed inbuild.gradle.kts
and include all in your project classpath, or consider downloading the 'uber' jar from the published artifacts on repo
https://jitpack.io/com/github/stellar/java-stellar-sdk/{version}/java-stellar-sdk-{version}-uber.jar
-
if your project utilizes dependency management for build such as gradle/maven, then you can choose from the following artifacts
using the dependency classifier:implementation("com.github.stellar:java-stellar-sdk:{version}") // thin jar implementation("com.github.stellar:java-stellar-sdk:{version}:uber") // uber jar implementation("com.github.stellar:java-stellar-sdk:{version}:javadoc") // javadoc jar implementation("com.github.stellar:java-stellar-sdk:{version}:sources") // sources jar
-
When using the 'thin' jar in dependency management, it will automatically fetch dependencies transitively.
If your project declares dependencies that are also declared here, then your project will override
the preferences of this project and may cause runtime conflict. -
When using the 'uber' jar in dependency management or as
.jar
in classpath , be aware that it does not relocate the dependent packages.
-
-
Utils.claimableBalanceIdToXDR
andUtils.xdrToClaimableBalanceId
have been removed. (#503) -
The types of the following fields have changed. (#498)
field before now LedgerBounds.minLedger int long LedgerBounds.maxLedger int long MemoId.id long BigInteger TimeBounds.minTime long BigInteger TimeBounds.maxTime long BigInteger TransactionBuilder.baseFee int long TransactionPreconditions.TIMEOUT_INFINITE long BigInteger TransactionPreconditions.minSeqAge Long BigInteger TransactionPreconditions.minSeqLedgerGap int long
0.40.1
- Fix the issue of unable to parse liquidity_pool_revoked effect properly. (#521)
- Define cursor, order and limit in AssetsRequestBuilder object. (#522)
- Add basic implementation of liquidity_pools?account (#426)
- Add source account comparison to
ClawbackClaimableBalanceOperation
,LiquidityPoolWithdrawOperation
, andLiquidityPoolDepositOperation
for equality check. (#484)
0.41.0-beta.3
- Fix the bug in Transaction.isSorobanTransaction to accommodate BumpFootprintExpirationOperation. (#518)
0.41.0-beta.2
- Migrate from CircleCI to GitHub Actions. (#512)
0.41.0-beta.1
- Use JDK 11 for CI builds. (#511)
0.41.0-beta.0
Changes
- Add support for Soroban Preview 10. The sdk is only compatible with the Soroban RPC
v0.9.2
from Preview 10. (#490) - Correct the data type of certain fields to store the expected design values. (#497)
- Add source account comparison to
ClawbackClaimableBalanceOperation
,LiquidityPoolWithdrawOperation
, andLiquidityPoolDepositOperation
for equality check. (#484) - Add basic implementation of
liquidity_pools?account
(#426)
Breaking changes
Utils.claimableBalanceIdToXDR
andUtils.xdrToClaimableBalanceId
have been removed. (#503)- The types of the following fields have changed. (#498)
field before now LedgerBounds.minLedger int long LedgerBounds.maxLedger int long MemoId.id long BigInteger TimeBounds.minTime long BigInteger TimeBounds.maxTime long BigInteger TransactionBuilder.baseFee int long TransactionPreconditions.TIMEOUT_INFINITE long BigInteger TransactionPreconditions.minSeqAge Long BigInteger TransactionPreconditions.minSeqLedgerGap int long