-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ANCHOR-634] Bump Java SDK version to 0.43.0 (#1289)
### Description This bumps the Java SDK version from 0.42.0 to 0.43.0. This is an attempt to resolve an issue with the payment observer getting stuck on unparsable payment operations. Bumping the SDK version required bumping the Kotlin to 1.9 and `ktfmt` versions, which is why the lines changed are so large. ### Context ``` 19:54:54.694 ERROR - o.s.a.p.p.o.s.StellarPaymentObserver - stellar payment observer stream error: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Not a JSON Object: "problem" at com.google.gson.Gson.fromJson(Gson.java:1238) at com.google.gson.Gson.fromJson(Gson.java:1137) at com.google.gson.Gson.fromJson(Gson.java:1047) at com.google.gson.Gson.fromJson(Gson.java:982) at org.stellar.sdk.requests.SSEStream$StellarEventSourceListener.onEvent(SSEStream.java:257) at ``` ### Testing - `./gradlew test` ### Documentation N/A ### Known limitations N/A
- Loading branch information
Showing
58 changed files
with
807 additions
and
845 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,7 +110,7 @@ internal class Sep24ServiceTest { | |
assertEquals(slotTxn.captured.assetCode, "USDC") | ||
assertEquals( | ||
slotTxn.captured.assetIssuer, | ||
"GDQOE23CFSUMSVQK4Y5JHPPYK73VYCNHZHA7ENKCV37P6SUEO6XQBKPP" | ||
"GDQOE23CFSUMSVQK4Y5JHPPYK73VYCNHZHA7ENKCV37P6SUEO6XQBKPP", | ||
) | ||
assertEquals(slotTxn.captured.sep10Account, TEST_ACCOUNT) | ||
assertEquals(slotTxn.captured.fromAccount, TEST_ACCOUNT) | ||
|
@@ -135,10 +135,7 @@ internal class Sep24ServiceTest { | |
assertEquals(tokenStrings.size, 1) | ||
tokenString = tokenStrings[0].value | ||
decodedToken = jwtService.decode(tokenString) | ||
assertEquals( | ||
"$TEST_ACCOUNT:$TEST_MEMO", | ||
decodedToken.sub, | ||
) | ||
assertEquals("$TEST_ACCOUNT:$TEST_MEMO", decodedToken.sub) | ||
assertEquals(TEST_CLIENT_DOMAIN, decodedToken.clientDomain) | ||
} | ||
|
||
|
@@ -151,7 +148,7 @@ internal class Sep24ServiceTest { | |
"amount" to "123.4", | ||
"email_address" to "[email protected]", | ||
"first_name" to "Jamie", | ||
"last_name" to "Li" | ||
"last_name" to "Li", | ||
) | ||
} | ||
|
||
|
@@ -249,10 +246,7 @@ internal class Sep24ServiceTest { | |
assertEquals(tokenStrings.size, 1) | ||
val tokenString = tokenStrings[0].value | ||
val decodedToken = jwtService.decode(tokenString) | ||
assertEquals( | ||
"$TEST_ACCOUNT:$TEST_MEMO", | ||
decodedToken.sub, | ||
) | ||
assertEquals("$TEST_ACCOUNT:$TEST_MEMO", decodedToken.sub) | ||
assertEquals(TEST_CLIENT_DOMAIN, decodedToken.clientDomain) | ||
} | ||
|
||
|
@@ -354,7 +348,7 @@ internal class Sep24ServiceTest { | |
10, | ||
"2021-12-20T19:30:58+00:00", | ||
"1", | ||
"en-US" | ||
"en-US", | ||
) | ||
sep24Service.findTransactions(createJwtToken(), gtr) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.