mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-28 23:06:37 +01:00
e5ad6ef2b7
* feat: update sentry mask adding controller props to improve error monitoring * fix:remove changes in chrome-driver dependency * Remove properties from mask * Add more values to mask * Sort the mask alphabetically * Add termsOfUseLastAgreed to mask * Fix test imports * Update policy gap test to compare UI mask * Reorganize tests under one describe block * Update snapshots * Mask another timestamp in state snapshots * Mask browser environment properties * Add missing UI field mask, and refactor field masking/removal * Eliminate remaining policy gaps * Simplify ganache options * Eliminate extra mask properties * Update mask to capture dynamic keys The mask now supports dynamic keys. This lets set more fine-grained rules for which data to include within dynamic data structures. The mask has been updated to include just top-level keys for various token-related data collections in state. This lets us see the chain IDs that users have tokens on. This will be useful in debugging Sentry reports of invalid keys in these data structures. * Add additional 'expected missing state' entries * Remove unnecessary properties from state snapshot * Add providerConfig.chainId to state snapshot * Update error state snapshots --------- Co-authored-by: Danica Shen <zhaodanica@gmail.com> Co-authored-by: Mark Stacey <markjstacey@gmail.com>
133 lines
3.9 KiB
JSON
133 lines
3.9 KiB
JSON
{
|
|
"data": {
|
|
"AlertController": {
|
|
"alertEnabledness": { "unconnectedAccount": true, "web3ShimUsage": true },
|
|
"unconnectedAccountAlertShownOrigins": "object",
|
|
"web3ShimUsageOrigins": "object"
|
|
},
|
|
"AnnouncementController": { "announcements": "object" },
|
|
"AppStateController": {
|
|
"browserEnvironment": {},
|
|
"nftsDropdownState": {},
|
|
"connectedStatusPopoverHasBeenShown": true,
|
|
"termsOfUseLastAgreed": "number",
|
|
"defaultHomeActiveTabName": null,
|
|
"fullScreenGasPollTokens": [],
|
|
"notificationGasPollTokens": [],
|
|
"popupGasPollTokens": [],
|
|
"qrHardware": {},
|
|
"recoveryPhraseReminderHasBeenShown": true,
|
|
"recoveryPhraseReminderLastShown": "number",
|
|
"showTestnetMessageInDropdown": true,
|
|
"trezorModel": null,
|
|
"usedNetworks": {
|
|
"0x1": true,
|
|
"0xe708": true,
|
|
"0x5": true,
|
|
"0x539": true
|
|
},
|
|
"snapsInstallPrivacyWarningShown": true
|
|
},
|
|
"CachedBalancesController": { "cachedBalances": "object" },
|
|
"CurrencyController": {
|
|
"conversionDate": "number",
|
|
"conversionRate": 1300,
|
|
"currentCurrency": "usd",
|
|
"nativeCurrency": "ETH",
|
|
"usdConversionRate": 1300
|
|
},
|
|
"GasFeeController": {
|
|
"estimatedGasFeeTimeBounds": {},
|
|
"gasEstimateType": "none",
|
|
"gasFeeEstimates": {}
|
|
},
|
|
"IncomingTransactionsController": {
|
|
"incomingTransactions": "object",
|
|
"incomingTxLastFetchedBlockByChainId": {
|
|
"0x1": null,
|
|
"0xe708": null,
|
|
"0x5": null,
|
|
"0xaa36a7": null,
|
|
"0xe704": null
|
|
}
|
|
},
|
|
"KeyringController": { "vault": "string" },
|
|
"MetaMetricsController": {
|
|
"eventsBeforeMetricsOptIn": "object",
|
|
"fragments": "object",
|
|
"metaMetricsId": "fake-metrics-id",
|
|
"participateInMetaMetrics": true,
|
|
"traits": "object"
|
|
},
|
|
"NetworkController": {
|
|
"networkId": "1337",
|
|
"networkStatus": "available",
|
|
"providerConfig": {
|
|
"chainId": "0x539",
|
|
"nickname": "Localhost 8545",
|
|
"rpcPrefs": "object",
|
|
"rpcUrl": "string",
|
|
"ticker": "ETH",
|
|
"type": "rpc",
|
|
"id": "networkConfigurationId"
|
|
},
|
|
"networkConfigurations": "object"
|
|
},
|
|
"OnboardingController": {
|
|
"completedOnboarding": true,
|
|
"firstTimeFlowType": "import",
|
|
"onboardingTabs": "object",
|
|
"seedPhraseBackedUp": true
|
|
},
|
|
"PermissionController": { "subjects": "object" },
|
|
"PreferencesController": {
|
|
"advancedGasFee": null,
|
|
"currentLocale": "en",
|
|
"dismissSeedBackUpReminder": true,
|
|
"featureFlags": { "showIncomingTransactions": true },
|
|
"forgottenPassword": false,
|
|
"identities": "object",
|
|
"infuraBlocked": false,
|
|
"ipfsGateway": "string",
|
|
"knownMethodData": "object",
|
|
"ledgerTransportType": "webhid",
|
|
"lostIdentities": "object",
|
|
"openSeaEnabled": false,
|
|
"preferences": {
|
|
"hideZeroBalanceTokens": false,
|
|
"showFiatInTestnets": false,
|
|
"showTestNetworks": false,
|
|
"useNativeCurrencyAsPrimaryCurrency": true
|
|
},
|
|
"selectedAddress": "string",
|
|
"theme": "light",
|
|
"useBlockie": false,
|
|
"useNftDetection": false,
|
|
"useNonceField": false,
|
|
"usePhishDetect": true,
|
|
"useTokenDetection": false,
|
|
"useCurrencyRateCheck": true,
|
|
"useMultiAccountBalanceChecker": true
|
|
},
|
|
"SmartTransactionsController": {
|
|
"smartTransactionsState": {
|
|
"fees": {},
|
|
"liveness": true,
|
|
"smartTransactions": "object"
|
|
}
|
|
},
|
|
"SubjectMetadataController": { "subjectMetadata": "object" },
|
|
"TokensController": {
|
|
"allDetectedTokens": {},
|
|
"allIgnoredTokens": {},
|
|
"allTokens": {},
|
|
"detectedTokens": "object",
|
|
"ignoredTokens": "object",
|
|
"tokens": "object"
|
|
},
|
|
"TransactionController": { "transactions": "object" },
|
|
"config": "object",
|
|
"firstTimeInfo": "object"
|
|
}
|
|
}
|