Skip to content

Releases: lightsail-network/java-stellar-sdk

2.1.0

28 Sep 01:39
36da02f

Choose a tag to compare

Update:

  • feat: add endLedger field to GetEventsRequest. (#739)

2.0.0

15 Aug 01:28
438c2f2

Choose a tag to compare

This release adds support for Protocol 23.

This release contains the exact same content as 2.0.0-beta3. Below is the changelog since 1.5.1.

Update:

  • feat: add pollTransaction method to SorobanServer to poll transaction status with retry strategy. (#696)
  • feat: implement message signing and verification according to SEP-53, check KeyPair.signMessage and KeyPair.verifyMessage for more details. (#698)
  • feat: add isValidEd25519SecretSeed, isValidPreAuthTx and isValidSha256Hash to StrKey class, these functions can be used to validate the corresponding strkey. (#702)
  • feat: add med25519 public key support to StrKey. (#702)
  • feat: add liquidity pool and claimable balance support to StrKey. (#701)
  • feat: add muxed account, liquidity pool and claimable balance support to Address class. (#703)
  • feat(SorobanServer): add destinationMuxedId to InvokeHostFunctionOperationResponse.AssetContractBalanceChange. (#710 and (#705))
  • feat(SorobanServer): add events field to GetTransactionsResponse.Transaction and GetTransactionResponse. (#707)
  • feat(SorobanServer): add oldestLedger, latestLedgerCloseTime and oldestLedgerCloseTime fields to GetEventsResponse, and add transactionIndex and operationIndex fields to GetEventsResponse.EventInfo, check Stellar RPC release log for more information.
  • feat(SorobanServer): add support for non-root authorization in SorobanServer#simulateTransaction. (#708)
  • feat: add isValidSignedPayload to StrKey class, this function can be used to validate the ed25519 signed payload. (#712)
  • feat: add signExtraSignersPayload to sign extra signers payloads in Transaction class. (#713)
  • refactor: add balance id validation. (#722)
  • fix: fix handling of transaction metadata versioning in AssembledTransaction class. (#723)
  • refactor: add validation for asset issuer. (#725)
  • refactor: add validation for liquidity pool ID length in TrustLineAsset. (#726)

Breaking changes:

  • chore: upgrade generated XDR definitions to Protocol 23. (#699)
  • refactor!: the following functions in StrKey are marked as deprecated, they will be removed in the next major release; please refer to the documentation for each function to see the corresponding replacement functions: (#702)
    • StrKey#encodeEd25519PublicKey(AccountID)
    • StrKey#encodeMuxedAccount(MuxedAccount)
    • StrKey#decodeMuxedAccount(String)
    • StrKey#encodeToXDRAccountId(String)
    • StrKey#encodeToXDRMuxedAccount(String)
  • refactor!: rename readBytes to diskReadBytes and update related methods in SorobanDataBuilder. (#700)
  • refactor(HorizonServer)!: remove numArchivedContracts and archivedContractsAmount from AssetResponse. (#704)
  • refactor(SorobanServer)!: GetTransactionsResponse.Transaction#getDiagnosticEventsXdr() and GetTransactionsResponse.Transaction#parseDiagnosticEventsXdr() has been marked as deprecated, they will be removed in Stellar RPC soon, use GetTransactionsResponse.Transaction#getEvents() instead. (#706)
  • refactor(SorobanServer)!: remove deprecated pagingToken field from GetEventsResponse.EventInfo. (#707)
  • refactor(SorobanServer)!: inSuccessfulContractCall in GetEventsResponse.EventInfo has been marked as deprecated, it will be removed in the next release. (#707)
  • feat: add org.stellar.sdk.SignerKey for enhanced signer key handling. (#712)
    • org.stellar.sdk.Signer and org.stellar.sdk.SignedPayloadSigner has been removed, use org.stellar.sdk.SignerKey instead.
    • The StrKey#encodeSignedPayload(SignedPayloadSigner) and StrKey#decodeSignedPayload(String) methods now operate on raw byte[] instead of the SignedPayloadSigner object to provide more flexibility.
    • KeyPair#fromXdrSignerKey() and KeyPair#getXdrSignerKey() have been removed, use org.stellar.sdk.SignerKey instead.
    • The type of TransactionPreconditions#extraSigners has been changed from List<org.stellar.sdk.xdr.SignerKey> to List<org.stellar.sdk.SignerKey>.
    • The type of SetOptionsOperation#signer has been changed from org.stellar.sdk.xdr.SignerKey to org.stellar.sdk.SignerKey.
    • The type of RevokeSignerSponsorshipOperation#signer has been changed from org.stellar.sdk.xdr.SignerKey to org.stellar.sdk.SignerKey.

Full Changelog: 1.5.0...2.0.0

2.0.0-beta3

09 Aug 09:01
2c1e068

Choose a tag to compare

2.0.0-beta3 Pre-release
Pre-release

Update

  • fix: fix muxed account handling in Address class. (#733)

Full Changelog: 2.0.0-beta2...2.0.0-beta3

2.0.0-beta2

06 Aug 01:18
93f044f

Choose a tag to compare

2.0.0-beta2 Pre-release
Pre-release

Update:

  • refactor: add validation for asset issuer. (#725)
  • refactor: add validation for liquidity pool ID length in TrustLineAsset. (#726)
  • fix: isolate Kotlin dependency to test scope. (#731)

Full Changelog: 2.0.0-beta1...2.0.0-beta2

2.0.0-beta1

23 Jul 08:16
0f12d8d

Choose a tag to compare

2.0.0-beta1 Pre-release
Pre-release

Update:

  • feat: add isValidSignedPayload to StrKey class, this function can be used to validate the ed25519 signed payload. (#712)
  • feat: add signExtraSignersPayload to sign extra signers payloads in Transaction class. (#713)
  • refactor: add balance id validation. (#722)
  • fix: fix handling of transaction metadata versioning in AssembledTransaction class. (#723)

Breaking changes:

  • feat: add org.stellar.sdk.SignerKey for enhanced signer key handling. (#712)
    • org.stellar.sdk.Signer and org.stellar.sdk.SignedPayloadSigner has been removed, use org.stellar.sdk.SignerKey instead.
    • The StrKey#encodeSignedPayload(SignedPayloadSigner) and StrKey#decodeSignedPayload(String) methods now operate on raw byte[] instead of the SignedPayloadSigner object to provide more flexibility.
    • KeyPair#fromXdrSignerKey() and KeyPair#getXdrSignerKey() have been removed, use org.stellar.sdk.SignerKey instead.
    • The type of TransactionPreconditions#extraSigners has been changed from List<org.stellar.sdk.xdr.SignerKey> to List<org.stellar.sdk.SignerKey>.
    • The type of SetOptionsOperation#signer has been changed from org.stellar.sdk.xdr.SignerKey to org.stellar.sdk.SignerKey.
    • The type of RevokeSignerSponsorshipOperation#signer has been changed from org.stellar.sdk.xdr.SignerKey to org.stellar.sdk.SignerKey.

Full Changelog: 2.0.0-beta0...2.0.0-beta1

1.5.1

23 Jul 02:20

Choose a tag to compare

Update:

  • fix: avoid unnecessary padding during writing and reading of XDR data. (#720)

Full Changelog: 1.5.0...1.5.1

2.0.0-beta0

08 Jul 09:18
a5cb912

Choose a tag to compare

2.0.0-beta0 Pre-release
Pre-release

Update:

  • feat: add pollTransaction method to SorobanServer to poll transaction status with retry strategy. (#696)
  • feat: implement message signing and verification according to SEP-53, check KeyPair.signMessage and KeyPair.verifyMessage for more details. (#698)
  • feat: add isValidEd25519SecretSeed, isValidPreAuthTx and isValidSha256Hash to StrKey class, these functions can be used to validate the corresponding strkey. (#702)
  • feat: add med25519 public key support to StrKey. (#702)
  • feat: add liquidity pool and claimable balance support to StrKey. (#701)
  • feat: add muxed account, liquidity pool and claimable balance support to Address class. (#703)
  • feat(SorobanServer): add destinationMuxedId to InvokeHostFunctionOperationResponse.AssetContractBalanceChange. (#710 and (#705))
  • feat(SorobanServer): add events field to GetTransactionsResponse.Transaction and GetTransactionResponse. (#707)
  • feat(SorobanServer): add oldestLedger, latestLedgerCloseTime and oldestLedgerCloseTime fields to GetEventsResponse, and add transactionIndex and operationIndex fields to GetEventsResponse.EventInfo, check Stellar RPC release log for more information.
  • feat(SorobanServer): add support for non-root authorization in SorobanServer#simulateTransaction. (#708)

Breaking changes:

  • chore: upgrade generated XDR definitions to Protocol 23. (#699)
  • refactor!: the following functions in StrKey are marked as deprecated, they will be removed in the next major release; please refer to the documentation for each function to see the corresponding replacement functions: (#702)
    • StrKey#encodeEd25519PublicKey(AccountID)
    • StrKey#encodeMuxedAccount(MuxedAccount)
    • StrKey#decodeMuxedAccount(String)
    • StrKey#encodeToXDRAccountId(String)
    • StrKey#encodeToXDRMuxedAccount(String)
  • refactor!: rename readBytes to diskReadBytes and update related methods in SorobanDataBuilder. (#700)
  • refactor(HorizonServer)!: remove numArchivedContracts and archivedContractsAmount from AssetResponse. (#704)
  • refactor(SorobanServer)!: GetTransactionsResponse.Transaction#getDiagnosticEventsXdr() and GetTransactionsResponse.Transaction#parseDiagnosticEventsXdr() has been marked as deprecated, they will be removed in Stellar RPC soon, use GetTransactionsResponse.Transaction#getEvents() instead. (#706)
  • refactor(SorobanServer)!: remove deprecated pagingToken field from GetEventsResponse.EventInfo. (#707)
  • refactor(SorobanServer)!: inSuccessfulContractCall in GetEventsResponse.EventInfo has been marked as deprecated, it will be removed in the next release. (#707)

1.5.0

03 Jun 11:15
dc2b705

Choose a tag to compare

Update:

  • feat: change XdrElement interface to public. (#694)

1.4.0

27 May 09:06
31b6c5b

Choose a tag to compare

Update:

  • feat: Add getSACBalance to SorobanServer. (#691)

Full Changelog: 1.3.1...1.4.0

1.3.1

23 Apr 02:57
0190956

Choose a tag to compare

Update:

  • fix: fix the issue where sending assets using TransactionBuilder.buildPaymentToContractTransaction fails when the sender's account is the same as the asset issuer's account. (#685)