-
Notifications
You must be signed in to change notification settings - Fork 5.4k
feat: gas sponsorship for Shield Trial Subscriptions #37441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
✨ Files requiring CODEOWNER review ✨✅ @MetaMask/confirmations (1 files, +12 -0)
|
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [4e6490f]
UI Startup Metrics (1259 ± 104 ms)
|
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [506b247]
|
|
@metamaskbot update-policies |
|
Policies updated. 🧠 Learn how: https://lavamoat.github.io/guides/policy-diff/#what-to-look-for-when-reviewing-a-policy-diff |
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Results generated automatically by MetaMask CI |
Builds ready [2046f20]
UI Startup Metrics (1293 ± 81 ms)
|
app/scripts/controller-init/confirmations/transaction-controller-init.ts
Outdated
Show resolved
Hide resolved
app/scripts/controller-init/confirmations/transaction-controller-init.ts
Outdated
Show resolved
Hide resolved
Builds ready [a0b9a71]
UI Startup Metrics (1212 ± 87 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Builds ready [9ad8175]
UI Startup Metrics (1242 ± 91 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
f3e0f65
Builds ready [f3e0f65]
UI Startup Metrics (1246 ± 90 ms)
📊 Page Load Benchmark ResultsCurrent Commit: 📄 Localhost MetaMask Test DappSamples: 100 Summary
📈 Detailed Results
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Description
This PR submits gas sponsorship intents for shield trial subscriptions.
Changelog
CHANGELOG entry: added gas sponsorship for shield trial subscriptions
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Adds a SubscriptionService hook to submit Shield sponsorship intents on approve transactions, wires required messengers, computes sponsorship at publish, and adds tests; bumps shield-controller.
SubscriptionService:submitSubscriptionSponsorshipIntenthandler to submitPRODUCT_TYPES.SHIELDsponsorship intents forTransactionType.shieldSubscriptionApprove.isSponsoredin_onShieldSubscriptionApprovalTransactionusingtransactionMeta.isGasFeeSponsoredandisSendBundleSupported.TransactionControllerInitaddhooks.afterAdd.updateTransactionto callSubscriptionService:submitSubscriptionSponsorshipIntentbefore state add.SubscriptionController:submitSponsorshipIntents,TransactionController:getTransactions, and various*Controller:getStateto SubscriptionService messenger.SubscriptionServiceActionin TransactionController init messenger.@metamask/shield-controllerto^1.2.0.Written by Cursor Bugbot for commit f3e0f65. This will update automatically on new commits. Configure here.