Skip to content

Releases: lightsail-network/java-stellar-sdk

0.16.0

04 May 20:42
443e5ea
Compare
Choose a tag to compare

0.15.0

30 Mar 13:35
48b28e6
Compare
Choose a tag to compare
  • Add SEP0029 (memo required) support. (#272)

    Extends Server.submitTransaction to always run a memo required check before
    sending the transaction. If any of the destinations require a memo and the
    transaction doesn't include one, then an AccountRequiresMemoError will be thrown.

    You can skip this check by passing a true skipMemoRequiredCheck value to Server.submitTransaction:

    server.submitTransaction(tx, true)
    

    The check runs for each operation of type:

    • payment
    • pathPaymentStrictReceive
    • pathPaymentStrictSend
    • mergeAccount

    If the transaction includes a memo, then memo required checking is skipped.

    See SEP0029 for more information about memo required check.

0.14.0

25 Feb 23:05
f9c2ad0
Compare
Choose a tag to compare

This release of the Java SDK adds support for features added in Horizon 1.0

  • Update challenge transaction helpers for SEP-10 v1.3.0 (#263).
  • Add support for /accounts end-point with ?signer and ?asset filters (#261).
  • Add support for /offers end-point with query parameters (#261).
  • Regenerate the XDR definitions to include MetaV2 support (#261).

0.13.0

23 Jan 18:01
bdf9d21
Compare
Choose a tag to compare
  • Horizon v0.24.0 added a fee_charged and max_fee object with information about max bid and actual fee paid for each transaction.
  • We are removing *_all_accepted_fee fields in favor of the new keys, making it easier for people to understand the meaning the fields.

0.12.0

13 Dec 15:35
09d0c0d
Compare
Choose a tag to compare
  • Represent memo text contents as bytes because a memo text may not be valid UTF-8 string (#257).
  • Validate name length when constructing org.stellar.sdk.ManageDataOperation instances.
  • Validate home domain length when constructing org.stellar.sdk.SetOptionsOperation instances.

0.11.0

14 Nov 18:34
909fa48
Compare
Choose a tag to compare
  • Fix bug in org.stellar.sdk.requests.OperationsRequestBuilder.operation(long operationId). The method submitted an HTTP request to Horizon with the following path, /operation/ , but the correct path is /operations/
  • Rename org.stellar.sdk.requests.PathsRequestBuilder to org.stellar.sdk.requests.StrictReceivePathsRequestBuilder
  • Add sourceAssets() to org.stellar.sdk.requests.StrictReceivePathsRequestBuilder which allows a list of assets to be provided instead of a source account
  • Add org.stellar.sdk.requests.StrictSendPathsRequestBuilder which is the request builder for the /paths/strict-send endpoint
  • Removed deprecated classes: org.stellar.sdk.PathPaymentOperation and org.stellar.sdk.responses.operations.PathPaymentOperationResponse
  • The fee_paid field in the Horizon transaction response will be removed when Horizon 0.25 is released. The fee_paid field has been replaced by max_fee, which defines the maximum fee the source account is willing to pay, and fee_charged, which defines the fee that was actually paid for a transaction. Consequently, getFeePaid() has been removed from org.stellar.sdk.responses.Transaction and has been replaced with getMaxFee() and getFeeCharged().

0.10.0

09 Oct 17:15
48a3a3b
Compare
Choose a tag to compare

Deprecations

The following methods are deprecated and will be removed in 0.11.0. Please switch to new methods and classes.

Deprecated New method/class
org.stellar.sdk.PathPaymentOperation org.stellar.sdk.PathPaymentStrictReceiveOperation
org.stellar.sdk.responses.operations.PathPaymentOperationResponse org.stellar.sdk.responses.operations.PathPaymentStrictReceiveOperationResponse

Changes

  • Add helper method to generate SEP 10 challenge.
  • Stellar Protocol 12 compatibility.
  • Include path property in path payment operation responses.
  • Provide includeTransactions() method for constructing operations requests which include transaction data in the operations response.
  • Provide includeTransactions() method for constructing payments requests which include transaction data in the payments response.

0.9.0

16 Jul 05:46
18db78b
Compare
Choose a tag to compare
  • Use strings to represent account ids instead of KeyPair instances because account ids will not necessarily be valid public keys.
  • If you try to parse an invalid public key into a KeyPair you will encounter an exception.
  • To prevent exceptions when parsing horizon responses it is better to represent account ids as strings.

0.8.1

02 Jul 14:37
1899af4
Compare
Choose a tag to compare

Add toString() to Memo classes

0.8.0

24 Jun 16:54
Compare
Choose a tag to compare
  • Removed deprecated methods and classes listed in the 0.7.0 changelog entry
  • Configure network at the transaction and server level rather than using a singleton to determine
    which network to use globally.
  • Implement hashCode() and equals() on Stellar classes and XDR generated classes
  • Add streaming for account Offers
  • Add callback to handle SSE failures