Skip to content

Update ERC-7715 starter tempate#67

Merged
AyushBherwani1998 merged 3 commits intomainfrom
feat/7715-starter
Oct 21, 2025
Merged

Update ERC-7715 starter tempate#67
AyushBherwani1998 merged 3 commits intomainfrom
feat/7715-starter

Conversation

@AyushBherwani1998
Copy link
Copy Markdown
Member

@AyushBherwani1998 AyushBherwani1998 commented Oct 20, 2025

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.

  • ERC-7715 Starter:
    • API/SDK:
      • Bump @metamask/delegation-toolkit to ^0.13.0.
      • Replace grantPermissions with requestExecutionPermissions and switch permission type from native-token-stream to native-token-periodic with periodAmount/periodDuration; add isAdjustmentAllowed: false and parseEther.
      • Update types from GrantPermissionsReturnType to RequestExecutionPermissionsReturnType.
      • Use signer instead of signatory when creating smart account; remove accountMetadata from redemption flow.
    • UI/Components:
      • Simplify RedeemPermissionButton styles; remove unused accountMeta handling.
      • Trim PermissionInfo details (remove expiry/start) and keep chain/info formatting.
      • Refresh Steps copy to reference MetaMask Smart Account, session account flow, and native token periodic transfer.
    • Docs:
      • Update README links, wording, and flow section; add “Learn More” with Delegation Toolkit guides.
  • CLI Template List:
    • Rename template label to ERC-7715 Permissions Starter in src/lib/choices/templates.ts.

Written by Cursor Bugbot for commit d308242. This will update automatically on new commits. Configure here.

@AyushBherwani1998 AyushBherwani1998 requested review from a team as code owners October 20, 2025 11:12
@McOso McOso changed the title Update ERC-7715 starter tempalte Update ERC-7715 starter tempate Oct 20, 2025
McOso
McOso previously approved these changes Oct 20, 2025
// 0.001 ETH in WEI format.
periodAmount: parseEther("0.001"),
// 1 day in seconds
periodDuration: 86400,
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.

In the next update you'll be able to use the duration constant / enum

Copy link
Copy Markdown
Contributor

@jeffsmale90 jeffsmale90 left a comment

Choose a reason for hiding this comment

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

LGTM!

@AyushBherwani1998 AyushBherwani1998 merged commit 86e8186 into main Oct 21, 2025
13 checks passed
@AyushBherwani1998 AyushBherwani1998 deleted the feat/7715-starter branch October 21, 2025 04:11
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.

3 participants