From 909cb070fb99000d42c62bec6a34f1fc98cea520 Mon Sep 17 00:00:00 2001 From: Jun Luo <4catcode@gmail.com> Date: Thu, 25 Sep 2025 15:37:39 +0800 Subject: [PATCH 1/2] feat: Add `endLedger` field to `GetEventsRequest`. --- CHANGELOG.md | 3 +++ .../org/stellar/sdk/requests/sorobanrpc/GetEventsRequest.java | 2 ++ src/test/java/org/stellar/sdk/SorobanServerTest.java | 1 + 3 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c5142eb6..1440d63b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## Pending +### Update: +- feat: Add `endLedger` field to `GetEventsRequest`. ([#739](https://github.com/stellar/java-stellar-sdk/pull/739)) + ## 2.0.0 **This release adds support for Protocol 23.** diff --git a/src/main/java/org/stellar/sdk/requests/sorobanrpc/GetEventsRequest.java b/src/main/java/org/stellar/sdk/requests/sorobanrpc/GetEventsRequest.java index 858ba35e7..f5ae7b165 100644 --- a/src/main/java/org/stellar/sdk/requests/sorobanrpc/GetEventsRequest.java +++ b/src/main/java/org/stellar/sdk/requests/sorobanrpc/GetEventsRequest.java @@ -16,6 +16,8 @@ public class GetEventsRequest { Long startLedger; + Long endLedger; + @Singular("filter") Collection filters; diff --git a/src/test/java/org/stellar/sdk/SorobanServerTest.java b/src/test/java/org/stellar/sdk/SorobanServerTest.java index c399ed77a..fe864b9ef 100644 --- a/src/test/java/org/stellar/sdk/SorobanServerTest.java +++ b/src/test/java/org/stellar/sdk/SorobanServerTest.java @@ -728,6 +728,7 @@ public void testGetEvents() throws IOException, SorobanRpcException { GetEventsRequest getEventsRequest = GetEventsRequest.builder() .startLedger(100L) + .endLedger(105L) .filter(eventFilter) .pagination(paginationOptions) .build(); From ad0cf82e76ad7cb351bc669f8fa57750a3b7f60a Mon Sep 17 00:00:00 2001 From: Jun Luo <4catcode@gmail.com> Date: Thu, 25 Sep 2025 17:23:15 +0800 Subject: [PATCH 2/2] chore: temporarily disable API level 23 Google APIs in test-deploy workflow due to image availability issue. --- .github/workflows/test-deploy.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-deploy.yml b/.github/workflows/test-deploy.yml index f33a7a5fe..1a4f15f83 100644 --- a/.github/workflows/test-deploy.yml +++ b/.github/workflows/test-deploy.yml @@ -95,7 +95,8 @@ jobs: fail-fast: false matrix: emulator: [ - { api-level: 23, target: google_apis }, + # { api-level: 23, target: google_apis }, + # It seems that Google no longer provides this image? Let's temporarily disable it. { api-level: 34, target: playstore } ] steps: