From 8af812372d22dafa8ce50d3e9546e929b5177187 Mon Sep 17 00:00:00 2001 From: George Date: Mon, 12 Aug 2024 13:55:08 -0700 Subject: [PATCH 1/3] Update changelog with latest version changes. --- CHANGELOG.md | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6902465..18128fad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,48 @@ ## Unreleased +### Added +### What +* Add support for unpacked JSON responses of base64-encoded XDR fields via a new, optional parameter. When omitted, the behavior does not change and we encode fields as base64. +```typescript +xdrFormat?: "" | "base64" | "json" +``` + - `getTransaction` + - `getTransactions` + - `getLedgerEntry` + - `getLedgerEntries` + - `getEvents` + - `sendTransaction` + - `simulateTransaction` + +There are new field names for the JSONified versions of XDR structures. Any field with an `Xdr` suffix (e.g., `resultXdr` in `getTransaction()`) will be replaced with one that has a `Json` suffix (e.g., `resultJson`) that is a JSON object verbosely and completely describing the XDR structure. + +Certain XDR-encoded fields do not have an `Xdr` suffix, but those also have a `*Json` equivalent and are listed below: + * _getEvents_: `topic` -> `topicJson`, `value` -> `valueJson` + * _getLedgerEntries_: `key` -> `keyJson`, `xdr` -> `dataJson` + * _getLedgerEntry_: `xdr` -> `entryJson` + * _simulateTransaction_: `transactionData`, `events`, `results.auth`, + `restorePreamble.transactionData`, `stateChanges.key|before|after` all have a + `Json` suffix, and `results.xdr` is now `results.returnValueJson` + +### Fixed +* Improve performance of `getVersionInfo` and `getNetwork` ([#198](https://github.com/stellar/soroban-rpc/pull/198)). + + +## [v21.4.0](https://github.com/stellar/soroban-rpc/compare/v21.4.0...v21.4.1) + +### Fixed +* Fix parsing of the `--log-format` parameter ([#252](https://github.com/stellar/soroban-rpc/pull/252)) + + +## [v21.4.0](https://github.com/stellar/soroban-rpc/compare/v21.2.0...v21.4.0) + ### Added * Transactions will now be stored in a database rather than in memory ([#174](https://github.com/stellar/soroban-rpc/pull/174)). You can opt-in to longer transaction retention by setting `--transaction-retention-window` / `TRANSACTION_RETENTION_WINDOW` to a higher number of ledgers. This will also retain corresponding number of ledgers in the database. Keep in mind, of course, that this will cause an increase in disk usage for the growing database. +* Unify transaction and event retention windows ([#234](https://github.com/stellar/soroban-rpc/pull/234)). * There is a new `getTransactions` endpoint with the following API ([#136](https://github.com/stellar/soroban-rpc/pull/136)): ```typescript @@ -40,6 +77,10 @@ interface Transaction { } ``` +### Fixed +* Logging and typo fixes in ([#238](https://github.com/stellar/soroban-rpc/pull/238)). +* Fix calculation of ledger ranges across endpoints ([#217](https://github.com/stellar/soroban-rpc/pull/217)). + ## [v21.2.0](https://github.com/stellar/soroban-rpc/compare/v21.1.0...v21.2.0) From 66a8037fe19a66a4c023dbecbc49b064958fbf3a Mon Sep 17 00:00:00 2001 From: George Date: Mon, 12 Aug 2024 13:55:58 -0700 Subject: [PATCH 2/3] Remove unnecessary header --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 18128fad..7423d346 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,6 @@ ## Unreleased ### Added -### What * Add support for unpacked JSON responses of base64-encoded XDR fields via a new, optional parameter. When omitted, the behavior does not change and we encode fields as base64. ```typescript xdrFormat?: "" | "base64" | "json" From 0e3da7e87cb75f9d33063f2da5d41481ef60fc18 Mon Sep 17 00:00:00 2001 From: George Date: Mon, 12 Aug 2024 13:56:49 -0700 Subject: [PATCH 3/3] Fix up some minor typos --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7423d346..3c628add 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,7 +29,7 @@ Certain XDR-encoded fields do not have an `Xdr` suffix, but those also have a `* * Improve performance of `getVersionInfo` and `getNetwork` ([#198](https://github.com/stellar/soroban-rpc/pull/198)). -## [v21.4.0](https://github.com/stellar/soroban-rpc/compare/v21.4.0...v21.4.1) +## [v21.4.1](https://github.com/stellar/soroban-rpc/compare/v21.4.0...v21.4.1) ### Fixed * Fix parsing of the `--log-format` parameter ([#252](https://github.com/stellar/soroban-rpc/pull/252))