diff --git a/patches/@metamask+preferences-controller+13.1.0.patch b/patches/@metamask+preferences-controller+13.1.0.patch deleted file mode 100644 index 1ad700b6326..00000000000 --- a/patches/@metamask+preferences-controller+13.1.0.patch +++ /dev/null @@ -1,229 +0,0 @@ -diff --git a/node_modules/@metamask/preferences-controller/dist/PreferencesController.cjs b/node_modules/@metamask/preferences-controller/dist/PreferencesController.cjs -index 97182f2..634de2e 100644 ---- a/node_modules/@metamask/preferences-controller/dist/PreferencesController.cjs -+++ b/node_modules/@metamask/preferences-controller/dist/PreferencesController.cjs -@@ -17,7 +17,7 @@ const metadata = { - isIpfsGatewayEnabled: { persist: true, anonymous: true }, - isMultiAccountBalancesEnabled: { persist: true, anonymous: true }, - lostIdentities: { persist: true, anonymous: false }, -- openSeaEnabled: { persist: true, anonymous: true }, -+ displayNftMedia: { persist: true, anonymous: true }, - securityAlertsEnabled: { persist: true, anonymous: true }, - selectedAddress: { persist: true, anonymous: false }, - showTestNetworks: { persist: true, anonymous: true }, -@@ -26,6 +26,10 @@ const metadata = { - useTokenDetection: { persist: true, anonymous: true }, - smartTransactionsOptInStatus: { persist: true, anonymous: false }, - useTransactionSimulations: { persist: true, anonymous: true }, -+ useSafeChainsListValidation: { persist: true, anonymous: true }, -+ showMultiRpcModal: { persist: false, anonymous: false }, -+ tokenSortConfig: { persist: true, anonymous: false }, -+ privacyMode: { persist: true, anonymous: true }, - }; - const name = 'PreferencesController'; - /** -@@ -41,7 +45,7 @@ function getDefaultPreferencesState() { - isIpfsGatewayEnabled: true, - isMultiAccountBalancesEnabled: true, - lostIdentities: {}, -- openSeaEnabled: false, -+ displayNftMedia: false, - securityAlertsEnabled: false, - selectedAddress: '', - showIncomingTransactions: { -@@ -71,6 +75,14 @@ function getDefaultPreferencesState() { - useTokenDetection: true, - smartTransactionsOptInStatus: false, - useTransactionSimulations: true, -+ useSafeChainsListValidation: true, -+ showMultiRpcModal: false, -+ tokenSortConfig: { -+ key: 'tokenFiatBalance', -+ order: 'dsc', -+ sortCallback: 'stringNumeric' -+ }, -+ privacyMode: false, - }; - } - exports.getDefaultPreferencesState = getDefaultPreferencesState; -@@ -209,22 +221,22 @@ class PreferencesController extends base_controller_1.BaseController { - * @param useNftDetection - Boolean indicating user preference on NFT detection. - */ - setUseNftDetection(useNftDetection) { -- if (useNftDetection && !this.state.openSeaEnabled) { -- throw new Error('useNftDetection cannot be enabled if openSeaEnabled is false'); -+ if (useNftDetection && !this.state.displayNftMedia) { -+ throw new Error('useNftDetection cannot be enabled if displayNftMedia is false'); - } - this.update((state) => { - state.useNftDetection = useNftDetection; - }); - } - /** -- * Toggle the opensea enabled setting. -+ * Toggle the display nft media enabled setting. - * -- * @param openSeaEnabled - Boolean indicating user preference on using OpenSea's API. -+ * @param displayNftMedia - Boolean indicating user preference on using web2 third parties. - */ -- setOpenSeaEnabled(openSeaEnabled) { -+ setDisplayNftMedia(displayNftMedia) { - this.update((state) => { -- state.openSeaEnabled = openSeaEnabled; -- if (!openSeaEnabled) { -+ state.displayNftMedia = displayNftMedia; -+ if (!displayNftMedia) { - state.useNftDetection = false; - } - }); -@@ -305,6 +317,49 @@ class PreferencesController extends base_controller_1.BaseController { - state.useTransactionSimulations = useTransactionSimulations; - }); - } -+ /** -+ * Toggle the use safe chains list validation. -+ * -+ * @param useSafeChainsListValidation - Boolean indicating user preference on using chainid.network third part to check safe networks. -+ */ -+ setUseSafeChainsListValidation(useSafeChainsListValidation) { -+ this.update((state) => { -+ state.useSafeChainsListValidation = useSafeChainsListValidation; -+ }); -+ } -+ /** -+ * Toggle multi rpc migration modal. -+ * -+ * @param showMultiRpcModal - Boolean indicating if the multi rpc modal will be displayed or not. -+ */ -+ setShowMultiRpcModal(showMultiRpcModal) { -+ this.update((state) => { -+ state.showMultiRpcModal = showMultiRpcModal; -+ if (showMultiRpcModal) { -+ state.showMultiRpcModal = false; -+ } -+ }); -+ } -+ /** -+ * Set the token sort configuration setting. -+ * -+ * @param tokenSortConfig - Object describing token sort configuration. -+ */ -+ setTokenSortConfig(tokenSortConfig) { -+ this.update((state) => { -+ state.tokenSortConfig = tokenSortConfig; -+ }); -+ } -+ /** -+ * A setter for the user preferences to enable/disable privacy mode. -+ * -+ * @param privacyMode - true to enable privacy mode, false to disable it. -+ */ -+ setPrivacyMode(privacyMode) { -+ this.update((state) => { -+ state.privacyMode = privacyMode; -+ }); -+ } - } - exports.PreferencesController = PreferencesController; - _PreferencesController_instances = new WeakSet(), _PreferencesController_syncIdentities = function _PreferencesController_syncIdentities(addresses) { -diff --git a/node_modules/@metamask/preferences-controller/dist/PreferencesController.d.cts b/node_modules/@metamask/preferences-controller/dist/PreferencesController.d.cts -index 04a9d6f..77a9548 100644 ---- a/node_modules/@metamask/preferences-controller/dist/PreferencesController.d.cts -+++ b/node_modules/@metamask/preferences-controller/dist/PreferencesController.d.cts -@@ -65,7 +65,7 @@ export type PreferencesState = { - /** - * Controls whether the OpenSea API is used - */ -- openSeaEnabled: boolean; -+ displayNftMedia: boolean; - /** - * Controls whether "security alerts" are enabled - */ -@@ -100,6 +100,22 @@ export type PreferencesState = { - * Controls whether transaction simulations are enabled - */ - useTransactionSimulations: boolean; -+ /** -+ * Controls whether to use the safe chains list validation -+ */ -+ useSafeChainsListValidation: boolean; -+ /** -+ * Controls whether Multi rpc modal is displayed or not -+ */ -+ showMultiRpcModal: boolean; -+ /** -+ * Controls whether Multi rpc modal is displayed or not -+ */ -+ tokenSortConfig: Record; -+ /** -+ * Controls whether balance and assets are hidden or not -+ */ -+ privacyMode: boolean; - }; - declare const name = "PreferencesController"; - export type PreferencesControllerGetStateAction = ControllerGetStateAction; -@@ -120,7 +136,7 @@ export declare function getDefaultPreferencesState(): { - isIpfsGatewayEnabled: boolean; - isMultiAccountBalancesEnabled: boolean; - lostIdentities: {}; -- openSeaEnabled: boolean; -+ displayNftMedia: boolean; - securityAlertsEnabled: boolean; - selectedAddress: string; - showIncomingTransactions: { -@@ -150,6 +166,10 @@ export declare function getDefaultPreferencesState(): { - useTokenDetection: boolean; - smartTransactionsOptInStatus: boolean; - useTransactionSimulations: boolean; -+ useSafeChainsListValidation: boolean; -+ showMultiRpcModal: boolean; -+ tokenSortConfig: Record; -+ privacyMode: boolean; - }; - /** - * Controller that stores shared settings and exposes convenience methods -@@ -218,11 +238,11 @@ export declare class PreferencesController extends BaseController): void; -+ /** -+ * A setter for the user preferences to enable/disable privacy mode. -+ * -+ * @param privacyMode - true to enable privacy mode, false to disable it. -+ */ -+ setPrivacyMode(privacyMode: boolean): void; - } - export default PreferencesController; - //# sourceMappingURL=PreferencesController.d.cts.map