You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
@metamask/subscription-controller 9.1.0
Added
Add SubscriptionDelegationService for Money Account Plus cash-subscription delegation setup. (#10130)
New messenger action SubscriptionDelegationService:prepareDelegation orchestrates periodic caveat construction, signing, CHOMP verification, Authenticated User Storage persistence, and CHOMP intent registration.
Returns a verified delegationHash with disposition: 'created' | 'reused' for SubscriptionController.startSubscriptionWithCrypto; the controller does not depend on this service.
prepareDelegation accepts the product, recurring interval, payer address, trial selection, optional balance-check flag, and optional skipChompInteractions flag; it resolves plan, token, and delegate data through SubscriptionController:getPricing.
When skipChompInteractions is true, CHOMP verify and intent registration are skipped; the returned hash is computed locally and AUS persistence still occurs.
Resolves the chain from moneyAccountVaultConfig and Delegation Framework v1.3.0 enforcers from @metamask/delegation-deployments.
Uses pricing delegateAddress as both the delegation delegate and the RedeemerEnforcer redeemer.
Offsets the period-transfer startDate by pricing trialPeriodDays only when the trial is selected.
New messenger action SubscriptionDelegationService:checkMoneyAccountBalance compares Money Account convertible mUSD balance against pricing unitAmount × minBillingCyclesForBalance; prepareDelegation can gate on it via checkBalance.
Exports CASH_SUBSCRIPTION_DELEGATION_TYPE ('cash-subscription') for AUS metadata (and for CHOMP intent metadata once chomp-api-service supports that type).
Only Money Account Plus is supported; Shield continues to use ERC-20 approval.
Add stable cancellation reason codes and optional free-text feedback to the subscription cancellation request (#10189)
Changed
Refresh subscriptions, product entitlements, and benefits after a successful subscription cancellation (#10189)
Bump @metamask/profile-sync-controller from ^32.0.0 to ^32.1.1 (#10184, #10220)
Bump @metamask/utils from ^11.12.0 to ^12.0.0 (#10192)
Bump @metamask/transaction-controller from ^70.0.0 to ^70.1.0 (#10242, #10262)
@metamask/wallet 14.0.0
Added
Wire SubscriptionDelegationService into the default wallet initialization. (#10130)
Stateless orchestrator for Money Account Plus cash-subscription delegation setup via SubscriptionDelegationService:prepareDelegation.
Delegates AuthenticatedUserStorageService:listDelegations, AuthenticatedUserStorageService:createDelegation, ChompApiService:verifyDelegation, ChompApiService:createIntents, ChompApiService:getIntentsByAddress, DelegationController:signDelegation, MoneyAccountBalanceService:fetchBalanceWithFallback, RemoteFeatureFlagController:getState, and SubscriptionController:getPricing from the wallet root messenger.
Hosts must register AuthenticatedUserStorageService, ChompApiService, DelegationController, MoneyAccountBalanceService, and SubscriptionController on the supplied root messenger before calling prepareDelegation; RemoteFeatureFlagController is already initialized by default.
Changed
BREAKING: Change license from (MIT OR Apache-2.0) to the ConsenSys Software Inc. Non-Commercial Use license (#10074)
Use of this package is now limited to Non-Commercial Use as defined in LICENSE. If your use falls outside of that, reach out to communications@metamask.io.
Bump @metamask/claims-controller from ^1.0.0 to ^1.0.1 (#10166)
Bump @metamask/shield-controller from ^7.0.0 to ^7.0.1 (#10166)
Bump @metamask/subscription-controller from ^9.0.0 to ^9.1.0 (#10166, #10280)
Bump @metamask/utils from ^11.12.0 to ^12.0.0 (#10192)
Bump @metamask/transaction-controller from ^70.0.0 to ^70.1.0 (#10242, #10262)