{"version":3,"file":"PreferencesController-method-action-types.cjs","sourceRoot":"","sources":["../src/PreferencesController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { PreferencesController } from './PreferencesController';\n\n/**\n * Enable or disable a specific feature flag.\n *\n * @param feature - Feature to toggle.\n * @param activated - Value to assign.\n */\nexport type PreferencesControllerSetFeatureFlagAction = {\n  type: `PreferencesController:setFeatureFlag`;\n  handler: PreferencesController['setFeatureFlag'];\n};\n\n/**\n * Sets new IPFS gateway.\n *\n * @param ipfsGateway - IPFS gateway string.\n */\nexport type PreferencesControllerSetIpfsGatewayAction = {\n  type: `PreferencesController:setIpfsGateway`;\n  handler: PreferencesController['setIpfsGateway'];\n};\n\n/**\n * Toggle the token detection setting.\n *\n * @param useTokenDetection - Boolean indicating user preference on token detection.\n */\nexport type PreferencesControllerSetUseTokenDetectionAction = {\n  type: `PreferencesController:setUseTokenDetection`;\n  handler: PreferencesController['setUseTokenDetection'];\n};\n\n/**\n * Toggle the NFT detection setting.\n *\n * @param useNftDetection - Boolean indicating user preference on NFT detection.\n */\nexport type PreferencesControllerSetUseNftDetectionAction = {\n  type: `PreferencesController:setUseNftDetection`;\n  handler: PreferencesController['setUseNftDetection'];\n};\n\n/**\n * Toggle the display nft media enabled setting.\n *\n * @param displayNftMedia - Boolean indicating user preference on using OpenSea's API.\n */\nexport type PreferencesControllerSetDisplayNftMediaAction = {\n  type: `PreferencesController:setDisplayNftMedia`;\n  handler: PreferencesController['setDisplayNftMedia'];\n};\n\n/**\n * Toggle the security alert enabled setting.\n *\n * @param securityAlertsEnabled - Boolean indicating user preference on using security alerts.\n */\nexport type PreferencesControllerSetSecurityAlertsEnabledAction = {\n  type: `PreferencesController:setSecurityAlertsEnabled`;\n  handler: PreferencesController['setSecurityAlertsEnabled'];\n};\n\n/**\n * A setter for the user preferences to enable/disable fetch of multiple accounts balance.\n *\n * @param isMultiAccountBalancesEnabled - true to enable multiple accounts balance fetch, false to fetch only selectedAddress.\n */\nexport type PreferencesControllerSetIsMultiAccountBalancesEnabledAction = {\n  type: `PreferencesController:setIsMultiAccountBalancesEnabled`;\n  handler: PreferencesController['setIsMultiAccountBalancesEnabled'];\n};\n\n/**\n * A setter for the user have the test networks visible/hidden.\n *\n * @param showTestNetworks - true to show test networks, false to hidden.\n */\nexport type PreferencesControllerSetShowTestNetworksAction = {\n  type: `PreferencesController:setShowTestNetworks`;\n  handler: PreferencesController['setShowTestNetworks'];\n};\n\n/**\n * A setter for the user allow to be fetched IPFS content\n *\n * @param isIpfsGatewayEnabled - true to enable ipfs source\n */\nexport type PreferencesControllerSetIsIpfsGatewayEnabledAction = {\n  type: `PreferencesController:setIsIpfsGatewayEnabled`;\n  handler: PreferencesController['setIsIpfsGatewayEnabled'];\n};\n\n/**\n * A setter for the user allow to be fetched IPFS content\n *\n * @param chainId - On hexadecimal format to enable the incoming transaction network\n * @param isIncomingTransactionNetworkEnable - true to enable incoming transactions\n */\nexport type PreferencesControllerSetEnableNetworkIncomingTransactionsAction = {\n  type: `PreferencesController:setEnableNetworkIncomingTransactions`;\n  handler: PreferencesController['setEnableNetworkIncomingTransactions'];\n};\n\n/**\n * Toggle multi rpc migration modal.\n *\n * @param showMultiRpcModal - Boolean indicating if the multi rpc modal will be displayed or not.\n */\nexport type PreferencesControllerSetShowMultiRpcModalAction = {\n  type: `PreferencesController:setShowMultiRpcModal`;\n  handler: PreferencesController['setShowMultiRpcModal'];\n};\n\n/**\n * A setter for the user to opt into smart transactions\n *\n * @param smartTransactionsOptInStatus - true to opt into smart transactions\n */\nexport type PreferencesControllerSetSmartTransactionsOptInStatusAction = {\n  type: `PreferencesController:setSmartTransactionsOptInStatus`;\n  handler: PreferencesController['setSmartTransactionsOptInStatus'];\n};\n\n/**\n * A setter for the user preferences to enable/disable transaction simulations.\n *\n * @param useTransactionSimulations - true to enable transaction simulations, false to disable it.\n */\nexport type PreferencesControllerSetUseTransactionSimulationsAction = {\n  type: `PreferencesController:setUseTransactionSimulations`;\n  handler: PreferencesController['setUseTransactionSimulations'];\n};\n\n/**\n * A setter to update the user's preferred token sorting order.\n *\n * @param tokenSortConfig - a configuration representing the sort order of tokens.\n */\nexport type PreferencesControllerSetTokenSortConfigAction = {\n  type: `PreferencesController:setTokenSortConfig`;\n  handler: PreferencesController['setTokenSortConfig'];\n};\n\n/**\n * A setter for the user preferences to enable/disable safe chains list validation.\n *\n * @param useSafeChainsListValidation - true to enable safe chains list validation, false to disable it.\n */\nexport type PreferencesControllerSetUseSafeChainsListValidationAction = {\n  type: `PreferencesController:setUseSafeChainsListValidation`;\n  handler: PreferencesController['setUseSafeChainsListValidation'];\n};\n\n/**\n * A setter for the user preferences to enable/disable privacy mode.\n *\n * @param privacyMode - true to enable privacy mode, false to disable it.\n */\nexport type PreferencesControllerSetPrivacyModeAction = {\n  type: `PreferencesController:setPrivacyMode`;\n  handler: PreferencesController['setPrivacyMode'];\n};\n\n/**\n * A setter for the user preferences dismiss smart account upgrade prompt.\n *\n * @param dismissSmartAccountSuggestionEnabled - true to dismiss smart account upgrade prompt, false to enable it.\n */\nexport type PreferencesControllerSetDismissSmartAccountSuggestionEnabledAction =\n  {\n    type: `PreferencesController:setDismissSmartAccountSuggestionEnabled`;\n    handler: PreferencesController['setDismissSmartAccountSuggestionEnabled'];\n  };\n\n/**\n * A setter for the user preferences smart account OptIn.\n *\n * @param smartAccountOptIn - true if user opts in for smart account update, false otherwise.\n */\nexport type PreferencesControllerSetSmartAccountOptInAction = {\n  type: `PreferencesController:setSmartAccountOptIn`;\n  handler: PreferencesController['setSmartAccountOptIn'];\n};\n\n/**\n * Set the token network filter configuration setting.\n *\n * @param tokenNetworkFilter - Object describing token network filter configuration.\n */\nexport type PreferencesControllerSetTokenNetworkFilterAction = {\n  type: `PreferencesController:setTokenNetworkFilter`;\n  handler: PreferencesController['setTokenNetworkFilter'];\n};\n\n/**\n * Union of all PreferencesController action types.\n */\nexport type PreferencesControllerMethodActions =\n  | PreferencesControllerSetFeatureFlagAction\n  | PreferencesControllerSetIpfsGatewayAction\n  | PreferencesControllerSetUseTokenDetectionAction\n  | PreferencesControllerSetUseNftDetectionAction\n  | PreferencesControllerSetDisplayNftMediaAction\n  | PreferencesControllerSetSecurityAlertsEnabledAction\n  | PreferencesControllerSetIsMultiAccountBalancesEnabledAction\n  | PreferencesControllerSetShowTestNetworksAction\n  | PreferencesControllerSetIsIpfsGatewayEnabledAction\n  | PreferencesControllerSetEnableNetworkIncomingTransactionsAction\n  | PreferencesControllerSetShowMultiRpcModalAction\n  | PreferencesControllerSetSmartTransactionsOptInStatusAction\n  | PreferencesControllerSetUseTransactionSimulationsAction\n  | PreferencesControllerSetTokenSortConfigAction\n  | PreferencesControllerSetUseSafeChainsListValidationAction\n  | PreferencesControllerSetPrivacyModeAction\n  | PreferencesControllerSetDismissSmartAccountSuggestionEnabledAction\n  | PreferencesControllerSetSmartAccountOptInAction\n  | PreferencesControllerSetTokenNetworkFilterAction;\n"]}