Skip to content

Conversation

lwin-kyaw
Copy link
Contributor

@lwin-kyaw lwin-kyaw commented Oct 20, 2025

Explanation

Added new method, submitSponsorshipIntents, which submits the user's sponsorship intents for new subscription with crypto.

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

Note

Introduces submitSponsorshipIntents across types, service, and controller to POST sponsorship intents for crypto subscriptions, plus optional isSponsored flag and test/exports updates.

  • API additions
    • types.ts: Add SubmitSponsorshipIntentsRequest and optional isSponsored to StartCryptoSubscriptionRequest.
    • SubscriptionService: New submitSponsorshipIntents(request) POSTs to transaction-sponsorship/intents.
    • ISubscriptionService: Declare submitSponsorshipIntents.
  • Controller
    • SubscriptionController: Add public submitSponsorshipIntents(request) with user-not-subscribed check; register new messenger action ${controllerName}:submitSponsorshipIntents.
  • Exports
    • index.ts: Export SubmitSponsorshipIntentsRequest (and related plumbing).
  • Tests
    • Add unit tests for service and controller submitSponsorshipIntents (success, already subscribed, and error cases).
  • Docs/Changelog
    • Update CHANGELOG with new method.

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

@lwin-kyaw lwin-kyaw requested a review from a team as a code owner October 20, 2025 16:01
@lwin-kyaw lwin-kyaw requested a review from a team as a code owner October 20, 2025 16:04
@lwin-kyaw lwin-kyaw added team-web3auth area-shield Transaction Shield labels Oct 23, 2025
@lwin-kyaw
Copy link
Contributor Author

@metamaskbot publish-preview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant