From 435fdb614757eb76cb301b3f316240130ab74c82 Mon Sep 17 00:00:00 2001 From: Prit Sheth Date: Mon, 30 Sep 2024 21:36:23 -0700 Subject: [PATCH] Add endLedger in getEvents --- .../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 0000000000..78562739ae --- /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 256357b2ef..3fa57941cc 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" },