feat(STX-331): migrate STX flags to smart-transactions-controller#550
Merged
rarquevaux merged 1 commit intomainfrom Dec 17, 2025
Merged
feat(STX-331): migrate STX flags to smart-transactions-controller#550rarquevaux merged 1 commit intomainfrom
rarquevaux merged 1 commit intomainfrom
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
b4c03a2 to
3176b2a
Compare
7 tasks
3176b2a to
eb0e310
Compare
dan437
reviewed
Dec 8, 2025
eb0e310 to
2c07ca5
Compare
dan437
previously approved these changes
Dec 9, 2025
Merged
7 tasks
2c07ca5 to
27e2f33
Compare
27e2f33 to
f0ffe63
Compare
dan437
approved these changes
Dec 17, 2025
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.
RemoteFeatureFlagController Integration in SmartTransactionController
This PR refactors how Smart Transactions feature flags are validated and made available to clients. This will allow clients to move away from the smart transactions properties of the swaps feature flags which are deprecated.
Key Changes:
RemoteFeatureFlagController:getStateinstead of agetFeatureFlagscallback.RemoteFeatureFlagController:stateChangefiresErrorReportingService:captureExceptionfalse)RemoteFeatureFlagController:getState,ErrorReportingService:captureExceptionas allowed actions, andRemoteFeatureFlagController:stateChangeas allowed eventgetFeatureFlagsconstructor option is deprecated and ignored.Links to draft migration PRs:
Note
Migrates smart-transactions feature flags to RemoteFeatureFlagController with per-chain validation, Sentry error reporting, new selectors, and controller changes that deprecate the getFeatureFlags option.
RemoteFeatureFlagController:getStateand listens toRemoteFeatureFlagController:stateChange.RemoteFeatureFlagController:getState,ErrorReportingService:captureExceptionand eventRemoteFeatureFlagController:stateChangein the messenger.getFeatureFlagsconstructor option.featureFlagsmodule with validators (superstruct) and helpers to process flags, normalize chain IDs (hex/CAIP-2), and merge per-chain configs.DEFAULT_DISABLED_SMART_TRANSACTIONS_FEATURE_FLAGSfallback.selectSmartTransactionsFeatureFlagsandselectSmartTransactionsFeatureFlagsForChain.src/SmartTransactionsController.ts):ErrorReportingService:captureException.getFeatureFlags.SmartTransactionsNetworkConfig,SmartTransactionsFeatureFlagsConfig; update public index exports.@metamask/superstruct,@metamask/utils,reselect; add peer deps@metamask/remote-feature-flag-controller,@metamask/error-reporting-service.Written by Cursor Bugbot for commit f0ffe63. This will update automatically on new commits. Configure here.