From c3e8e57d866bc95035e1af885f91f85a13599acd Mon Sep 17 00:00:00 2001 From: Prit Sheth <124409873+psheth9@users.noreply.github.com> Date: Mon, 28 Oct 2024 08:24:05 -0700 Subject: [PATCH] Add endLedger in getEvents (#1010) --- .../src/stellar-rpc/contentDescriptors/EndLedger.json | 11 +++++++++++ openrpc/src/stellar-rpc/methods/getEvents.json | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 openrpc/src/stellar-rpc/contentDescriptors/EndLedger.json diff --git a/openrpc/src/stellar-rpc/contentDescriptors/EndLedger.json b/openrpc/src/stellar-rpc/contentDescriptors/EndLedger.json new file mode 100644 index 000000000..78562739a --- /dev/null +++ b/openrpc/src/stellar-rpc/contentDescriptors/EndLedger.json @@ -0,0 +1,11 @@ +{ + "EndLedger": { + "name": "endLedger", + "summary": "ledger represents the end of search window", + "description": "Ledger sequence number represents the end of search window (exclusive). If a cursor is included in the request, `endLedger` must be omitted.", + "required": false, + "schema": { + "$ref": "#/components/schemas/LedgerSequence" + } + } +} diff --git a/openrpc/src/stellar-rpc/methods/getEvents.json b/openrpc/src/stellar-rpc/methods/getEvents.json index 256357b2e..3fa57941c 100644 --- a/openrpc/src/stellar-rpc/methods/getEvents.json +++ b/openrpc/src/stellar-rpc/methods/getEvents.json @@ -10,6 +10,9 @@ { "$ref": "#/components/contentDescriptors/StartLedger" }, + { + "$ref": "#/components/contentDescriptors/EndLedger" + }, { "$ref": "#/components/contentDescriptors/EventFilters" },