Update ERC-7715 starter tempate#67
Merged
AyushBherwani1998 merged 3 commits intomainfrom Oct 21, 2025
Merged
Conversation
McOso
previously approved these changes
Oct 20, 2025
McOso
approved these changes
Oct 20, 2025
jeffsmale90
reviewed
Oct 21, 2025
| // 0.001 ETH in WEI format. | ||
| periodAmount: parseEther("0.001"), | ||
| // 1 day in seconds | ||
| periodDuration: 86400, |
Contributor
There was a problem hiding this comment.
In the next update you'll be able to use the duration constant / enum
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?
Why?
How?
Note
Updates the ERC-7715 Next.js starter to Delegation Toolkit 0.13 with periodic native token permissions, revised docs/copy, and small UI/typing adjustments.
@metamask/delegation-toolkitto^0.13.0.grantPermissionswithrequestExecutionPermissionsand switch permission type fromnative-token-streamtonative-token-periodicwithperiodAmount/periodDuration; addisAdjustmentAllowed: falseandparseEther.GrantPermissionsReturnTypetoRequestExecutionPermissionsReturnType.signerinstead ofsignatorywhen creating smart account; removeaccountMetadatafrom redemption flow.RedeemPermissionButtonstyles; remove unusedaccountMetahandling.PermissionInfodetails (remove expiry/start) and keep chain/info formatting.Stepscopy to reference MetaMask Smart Account, session account flow, and native token periodic transfer.ERC-7715 Permissions Starterinsrc/lib/choices/templates.ts.Written by Cursor Bugbot for commit d308242. This will update automatically on new commits. Configure here.