Remove deprecated token event format from soroban-token-sdk#1822
Merged
Remove deprecated token event format from soroban-token-sdk#1822
soroban-token-sdk#1822Conversation
### 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.
Contributor
There was a problem hiding this comment.
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 oldeventmodule. - Deletes the legacy
Eventswrapper implementation (src/event.rs). - Updates the v23 migration doc snippet to be marked
compile_failfor 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. |
3c7113b to
6659571
Compare
jayz22
approved these changes
Apr 8, 2026
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
Removes the deprecated event format from the
soroban-token-sdk. These were originally deprecated for the v23 release.Why
Closes #1775
Known limitations
None