v22.0.0: Protocol 22
This release introduces a number of breaking changes and also deprecates fields that will be removed in the future. In order to facilitate a smooth transition, so that clients connecting with a v2N SDK to a v2(N+1) RPC are not interrupted, deprecated fields are phased out over the course of a major version.
Deprecated
getVersionInfonow prefers camelCase over snake_case. For one major version, the endpoint will return both variants: please migrate your code to prefer camelCase, e.g.,commitHashovercommit_hash.getEventsnow returnscursoron each event alongside the now-deprecatedpagingTokenfield. Please migrate your code to prefercursor.
Breaking Changes
getLedgerEntryhas been removed; please usegetLedgerEntries, instead.simulateTransaction'scostresponse field has been removed. The costs can still be retrieved from thetransactionDatafield. Specifically,cpuInsnsis the same thing as theinstructions, andmemBytesis the same as thereadBytes + writeBytes.--history-retention-windowis the only way to set retention windows now.
Added
- Support for Protocol 22.
getTransactionwill now return thetxHashfield just likegetTransactions.
Full list of Changes
- Use
TransactionInfowithinGetTransactionResponseby @Shaptic in #251 - Cleanup old retention window and upgrade history-retention-window by @psheth9 in #277
- Remove deprecated
getLedgerEntryendpoint by @aditya1702 in #276 - Add
build-stellar-rpcin makefile by @psheth9 in #296 - simulate-transaction: remove confusing Cost field in response by @2opremio in #295
- Add cursor in GetEventResponse by @psheth9 in #287
- Add hash to getTransactions response by @aditya1702 in #299
- Update docker file to build 2 images based on
BINARY_NAMEby @psheth9 in #300 - Remove pagingToken from getEvents by @psheth9 in #297
- Support two sorobans for preflight by @graydon in #264
- Protocol 22 Breaking changes by @2opremio in #280
- Use docker build TAG if supplied by @2opremio in #309
- Add test creating a contract with constructor by @2opremio in #311
- Bump Core version to 22rc2 by @2opremio in #312
- protocol22: Bump Rust dependencies by @2opremio in #316
- Add back in Protocol 22 non-breaking changes for a transition period by @Shaptic in #317
- Add
txHashfield togetTransactionafter upstream merge by @Shaptic in #314 - protocol22: Bump rs-soroban-env to rc3 by @2opremio in #318
- Bump integration test references to Core's RC3 image by @Shaptic in #322
- protocol22: Bump dependencies to stable 22.0.0 by @2opremio in #324
- Protocol 22 support: XDR, deprecated API changes, new fields by @2opremio in #308
Contributors
Full Changelog: v21.5.1...v22.0.0