Skip to content

Shuffle redelegation actions#229

Merged
jeffsmale90 merged 2 commits into
mainfrom
chore/shuffle-redelegation-actions
May 12, 2026
Merged

Shuffle redelegation actions#229
jeffsmale90 merged 2 commits into
mainfrom
chore/shuffle-redelegation-actions

Conversation

@jeffsmale90

@jeffsmale90 jeffsmale90 commented May 11, 2026

Copy link
Copy Markdown
Collaborator

📝 Description

To improve consistency with the existing ERC-7710 developer experience, this PR moves the redelegation actions to the ERC7710WalletActions

🔄 What Changed?

  • add Action suffix to action names
  • remove redelegatePermissionContextActions function
  • add individual redelegation actions to erc7710WalletActions

Note

Medium Risk
Medium risk due to breaking API changes (renamed exports and removal of redelegatePermissionContextActions) and updated chainId resolution behavior that could affect downstream integrations.

Overview
Reshapes the redelegation API for consistency with ERC-7710 client extensions. The standalone redelegation functions are renamed to redelegatePermissionContextAction / redelegatePermissionContextOpenAction, and the previous redelegatePermissionContextActions extender is removed.

Adds redelegation methods to erc7710WalletActions. Wallet clients extended via erc7710WalletActions() now expose redelegatePermissionContext and redelegatePermissionContextOpen.

Makes chainId optional for redelegation. Both redelegation actions now resolve chainId from client.chain.id when omitted (and throw if neither is available), with tests updated/expanded to cover inference and error cases.

Reviewed by Cursor Bugbot for commit 0aa9f00. Bugbot is set up for automated code reviews on this repo. Configure here.

- add Action suffix to action names
- remove redelegatePermissionContextActions function
- add redelegation actions to erc7710WalletActions
@jeffsmale90 jeffsmale90 requested a review from a team as a code owner May 11, 2026 22:41
@jeffsmale90 jeffsmale90 force-pushed the chore/shuffle-redelegation-actions branch from 5c62ce5 to 0aa9f00 Compare May 11, 2026 22:42

@mj-kiwi mj-kiwi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since we changed the action exports, I think this is a breaking change. Should we add it to the changelog?

@jeffsmale90 jeffsmale90 merged commit 94d1d75 into main May 12, 2026
18 of 19 checks passed
@jeffsmale90 jeffsmale90 deleted the chore/shuffle-redelegation-actions branch May 12, 2026 01:27
jeffsmale90 added a commit that referenced this pull request May 12, 2026
jeffsmale90 added a commit that referenced this pull request May 12, 2026
* Initialize Release 29.0.0

* Update Release 29.0.0

* Merge redelegation tickets #217 and #229 in changelog

* Include mention of delegation-core bump in smart-accounts-kit changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants