Skip to content

Releases: lightsail-network/java-stellar-sdk

0.42.0

15 Nov 09:13
a01c3e0
Compare
Choose a tag to compare

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 and AccountResponse, remove outdated fields, and add missing fields. (#549)
  • Use Price instead of String to represent prices. Change the type of CreatePassiveSellOfferOperation.price, ManageBuyOfferOperation.price, and ManageBuyOfferOperation.price from String to Price, 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 now ExtendFootprintTTLOperation and its ledgersToExpire field is now named extendTo, but it serves the same purpose.
    • The InvokeHostFunctionOperation.createTokenContractOperationBuilder is now InvokeHostFunctionOperation.createStellarAssetContractOperationBuilder.
    • SorobanDataBuilder.setRefundableFee is now setResourceFee.
    • The RPC endpoint structure has changed, check #552 for more details.

Full Changelog: 0.41.1...0.42.0

0.41.1

28 Sep 23:51
eb8eae8
Compare
Choose a tag to compare

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

19 Sep 22:35
574b1f2
Compare
Choose a tag to compare

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 instance
    • ContractDebited 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 default stellar-sdk.jar and the com.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 in build.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 and Utils.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

07 Sep 16:46
adad474
Compare
Choose a tag to compare
  • 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, and LiquidityPoolDepositOperation for equality check. (#484)

0.41.0-beta.3

01 Sep 17:54
1461c2f
Compare
Choose a tag to compare
0.41.0-beta.3 Pre-release
Pre-release
  • Fix the bug in Transaction.isSorobanTransaction to accommodate BumpFootprintExpirationOperation. (#518)

0.41.0-beta.2

21 Aug 08:38
bb68109
Compare
Choose a tag to compare
0.41.0-beta.2 Pre-release
Pre-release
  • Migrate from CircleCI to GitHub Actions. (#512)

0.41.0-beta.1

18 Aug 11:14
8be63cd
Compare
Choose a tag to compare
0.41.0-beta.1 Pre-release
Pre-release
  • Use JDK 11 for CI builds. (#511)

0.41.0-beta.0

16 Aug 08:56
ef91404
Compare
Choose a tag to compare
0.41.0-beta.0 Pre-release
Pre-release

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, and LiquidityPoolDepositOperation for equality check. (#484)
  • Add basic implementation of liquidity_pools?account (#426)

Breaking changes

  • Utils.claimableBalanceIdToXDR and Utils.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.0

01 May 20:51
54278f4
Compare
Choose a tag to compare

What's Changed

  • Add strkey support for contract ids by @tamirms in #471
  • Fix NPE in KeyPair.equals() method by @Ifropc in #474
  • Avoid to have unexpected exception on status code 429 TooManyRequests by @vinamogit in #433

Full Changelog: 0.39.0...0.40.0

0.39.0

09 Mar 19:07
b97b33d
Compare
Choose a tag to compare

Changes

  • Add SubmitTransactionResponse.ResultCodes.innerTransactionResultCode (#466)