Update to v26 and add support for CAP-73, 78, 79, 80 and 82#1814
Merged
Update to v26 and add support for CAP-73, 78, 79, 80 and 82#1814
Conversation
### What A continuation of #1728. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: sisuresh <5050166+sisuresh@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
### What Adapt to CAP-0078, CAP-0079 and CAP-0080 --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…1807) ### What This introduces the wrappers for persistent (including contract code) and instance storage extensions only, the temporary storage is technically supported by host, but it doesn't seem useful (most likely using it would be a footgun). ### Why Supporting the new host functionality in SDK ### Known limitations N/A
### What
Implement CAP-82 host functions wrapper for U256 and I256
- `checked_{add, sub, mul, pow}`
as well as other `checked_` arithmetic functions (requiring no new host
functions)
- `checked_{div, rem_euclid, shl, shr}`
these new functions return Option, which is `None` on overflow.
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
### What Add support for CAP-0073
### What Use `==` for 256-bit zero and -1 checks. ### Why It is possible via the SDK to create object back 256-bit numbers like `U256::from_parts(&env, 0, 0, 0, 0)`. This have a different payload than `U256::from_u32(&env, 0)`. ### Known limitations This is slightly more expensive to do.
### What Bump version to 26.0.0-rc.1, creating release branch. ### Why Triggered by @mootz12 in https://github.com/stellar/rs-soroban-sdk/actions/runs/24051172040. ### What is next See the release instructions for a full rundown on the release process: https://github.com/stellar/actions/blob/main/README-rust-release.md Commit any changes to the `release/v26.0.0-rc.1` branch that are needed in this release. If this is a regular release releasing from `main`, merge this PR when ready, and after merging, create a release for this version by going to this link: https://github.com/stellar/rs-soroban-sdk/releases/new?tag=v26.0.0-rc.1&title=26.0.0-rc.1 If this is a backport or patch release of a past version, see the release instructions. When ready to release this branch create a release by going to this link: https://github.com/stellar/rs-soroban-sdk/releases/new?tag=v26.0.0-rc.1&title=26.0.0-rc.1&target=release/v26.0.0-rc.1 --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: mootz12 <mootz12@protonmail.com>
### What Adds `min_value` and `max_value` helpers to 256-bit numbers. ### Why These functions were missing for 256-bit numbers. Closes #1740 ### Known limitations None --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
sisuresh
approved these changes
Apr 7, 2026
Contributor
sisuresh
left a comment
There was a problem hiding this comment.
It looks like each individual commit was a PR that was reviewed, so approving this now.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
min_valueandmax_valuefunctions on 256-bit integer types (Addmin_valueandmax_valuehelpers to 256-bit numbers #1823)trust()function (Implement CAP-82 checked {U,I}256 arith functions #1801)Why
Update SDK to support new features in protocol 26.
Known limitations
None