Skip to content

Update to v26 and add support for CAP-73, 78, 79, 80 and 82#1814

Merged
mootz12 merged 10 commits intomainfrom
release/v26-preview
Apr 7, 2026
Merged

Update to v26 and add support for CAP-73, 78, 79, 80 and 82#1814
mootz12 merged 10 commits intomainfrom
release/v26-preview

Conversation

@mootz12
Copy link
Copy Markdown
Contributor

@mootz12 mootz12 commented Apr 3, 2026

What

Why

Update SDK to support new features in protocol 26.

Known limitations

None

sisuresh and others added 5 commits February 27, 2026 13:20
### 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.
@mootz12 mootz12 marked this pull request as ready for review April 6, 2026 18:02
Copilot AI review requested due to automatic review settings April 6, 2026 18:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

@mootz12 mootz12 changed the title Release/v26 preview Add support for CAP-78 and CAP-82 Apr 6, 2026
@mootz12 mootz12 changed the title Add support for CAP-78 and CAP-82 Update to v26 and add support for CAP-78 and CAP-82 Apr 6, 2026
@socket-security
Copy link
Copy Markdown

socket-security bot commented Apr 6, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedsoroban-env-host@​25.0.1 ⏵ 26.0.186100 +1100100100
Updatedsoroban-env-common@​25.0.1 ⏵ 26.0.191 +1100100100100
Updatedstellar-xdr@​25.0.0 ⏵ 26.0.093 +1100 +2100100100
Updatedsoroban-env-guest@​25.0.1 ⏵ 26.0.110010093100100

View full report

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 210 out of 212 changed files in this pull request and generated 3 comments.

### What

Add support for CAP-0073
@mootz12 mootz12 changed the title Update to v26 and add support for CAP-78 and CAP-82 Update to v26 and add support for CAP-78, CAP-79, and CAP-82 Apr 6, 2026
### 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.
@mootz12 mootz12 changed the title Update to v26 and add support for CAP-78, CAP-79, and CAP-82 Update to v26 and add support for CAP-73, 78, 79, and 82 Apr 7, 2026
github-actions bot and others added 2 commits April 7, 2026 13:09
### 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>
@mootz12 mootz12 requested a review from a team April 7, 2026 19:03
Copy link
Copy Markdown
Contributor

@sisuresh sisuresh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like each individual commit was a PR that was reviewed, so approving this now.

@jayz22 jayz22 changed the title Update to v26 and add support for CAP-73, 78, 79, and 82 Update to v26 and add support for CAP-73, 78, 79, 80 and 82 Apr 7, 2026
@mootz12 mootz12 added this pull request to the merge queue Apr 7, 2026
Merged via the queue into main with commit 0b4bb28 Apr 7, 2026
409 checks passed
@mootz12 mootz12 deleted the release/v26-preview branch April 7, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants