Skip to content

Remove deprecated token event format from soroban-token-sdk#1822

Merged
mootz12 merged 13 commits intomainfrom
remove-deprecated-events
Apr 8, 2026
Merged

Remove deprecated token event format from soroban-token-sdk#1822
mootz12 merged 13 commits intomainfrom
remove-deprecated-events

Conversation

@mootz12
Copy link
Copy Markdown
Contributor

@mootz12 mootz12 commented Apr 6, 2026

What

Removes the deprecated event format from the soroban-token-sdk. These were originally deprecated for the v23 release.

Why

Closes #1775

Known limitations

None

sisuresh and others added 4 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.
Copilot AI review requested due to automatic review settings April 6, 2026 15:03
@mootz12 mootz12 changed the base branch from main to v26-preview-merge-main April 6, 2026 15:04
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

This PR removes the deprecated “old token event format” API surface from soroban-token-sdk, completing the planned cleanup after the v23 deprecation window (Issue #1775).

Changes:

  • Removes the deprecated TokenUtils::events() helper and the old event module.
  • Deletes the legacy Events wrapper implementation (src/event.rs).
  • Updates the v23 migration doc snippet to be marked compile_fail for newer versions.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
soroban-token-sdk/src/lib.rs Drops the deprecated event module export and TokenUtils::events() entrypoint.
soroban-token-sdk/src/event.rs Removes the deprecated Events wrapper and its legacy publish helpers.
soroban-token-sdk/src/_migrating/v23_token_transfer.rs Adjusts documentation example fencing to avoid compiling on newer versions.

Base automatically changed from v26-preview-merge-main to release/v26-preview April 6, 2026 17:59
@mootz12 mootz12 force-pushed the remove-deprecated-events branch from 3c7113b to 6659571 Compare April 6, 2026 19:07
@mootz12 mootz12 requested a review from a team April 6, 2026 19:08
Base automatically changed from release/v26-preview to main April 7, 2026 23:59
@mootz12 mootz12 added this pull request to the merge queue Apr 8, 2026
Merged via the queue into main with commit 4b7e299 Apr 8, 2026
111 checks passed
@mootz12 mootz12 deleted the remove-deprecated-events branch April 8, 2026 21:38
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.

Remove deprecated token events at next major release

5 participants