mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-01 21:57:06 +01:00
20e16d41be
* Improve Sentry state pre-initialization Previously the masked state snapshot sent to Sentry would be blank for errors that occured during initialization. Instead we'll now include some basic information in all cases, and a masked copy of the persisted state if it happens after the first time the persisted state is read. * Add test * Fix crash when persisted state not yet fetched * Add descriptions for initial state hooks * Update comments to reflect recent changes * Re-order imports to follow conventions * Move initial state hooks back to module-level The initial state hooks are now setup at the top-level of their module. This ensures that they're setup prior to later imports. Calling a function to setup these hooks in the entrypoint module wouldn't accomplish this even if it was run "before" the imports because ES6 imports always get hoisted to the top of the file. The `localStore` instance wasn't available statically, so a new state hook was introduced for retrieving the most recent retrieved persisted state. * Fix error e2e tests
113 lines
3.5 KiB
JSON
113 lines
3.5 KiB
JSON
{
|
|
"data": {
|
|
"AlertController": {
|
|
"alertEnabledness": { "unconnectedAccount": true, "web3ShimUsage": true },
|
|
"unconnectedAccountAlertShownOrigins": "object",
|
|
"web3ShimUsageOrigins": "object"
|
|
},
|
|
"AnnouncementController": "object",
|
|
"AppStateController": {
|
|
"browserEnvironment": "object",
|
|
"nftsDropdownState": "object",
|
|
"connectedStatusPopoverHasBeenShown": true,
|
|
"termsOfUseLastAgreed": "number",
|
|
"defaultHomeActiveTabName": null,
|
|
"fullScreenGasPollTokens": "object",
|
|
"notificationGasPollTokens": "object",
|
|
"popupGasPollTokens": "object",
|
|
"qrHardware": "object",
|
|
"recoveryPhraseReminderHasBeenShown": "boolean",
|
|
"recoveryPhraseReminderLastShown": "number",
|
|
"showTestnetMessageInDropdown": "boolean",
|
|
"trezorModel": "object",
|
|
"usedNetworks": "object",
|
|
"snapsInstallPrivacyWarningShown": "boolean"
|
|
},
|
|
"CachedBalancesController": "object",
|
|
"CurrencyController": {
|
|
"conversionDate": 1665507600,
|
|
"conversionRate": 1300,
|
|
"currentCurrency": "usd",
|
|
"nativeCurrency": "ETH",
|
|
"usdConversionRate": "number"
|
|
},
|
|
"GasFeeController": "object",
|
|
"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",
|
|
"selectedNetworkClientId": "string",
|
|
"networksMetadata": "object",
|
|
"providerConfig": {
|
|
"chainId": "string",
|
|
"nickname": "Localhost 8545",
|
|
"rpcPrefs": "object",
|
|
"rpcUrl": "string",
|
|
"ticker": "ETH",
|
|
"type": "rpc",
|
|
"id": "string"
|
|
},
|
|
"networkConfigurations": "object"
|
|
},
|
|
"OnboardingController": {
|
|
"completedOnboarding": true,
|
|
"firstTimeFlowType": "import",
|
|
"onboardingTabs": "object",
|
|
"seedPhraseBackedUp": true
|
|
},
|
|
"PermissionController": "object",
|
|
"PreferencesController": {
|
|
"advancedGasFee": "object",
|
|
"currentLocale": "en",
|
|
"dismissSeedBackUpReminder": "boolean",
|
|
"featureFlags": { "showIncomingTransactions": true },
|
|
"forgottenPassword": false,
|
|
"identities": "object",
|
|
"infuraBlocked": "boolean",
|
|
"ipfsGateway": "dweb.link",
|
|
"knownMethodData": "object",
|
|
"ledgerTransportType": "string",
|
|
"lostIdentities": "object",
|
|
"openSeaEnabled": "boolean",
|
|
"preferences": {
|
|
"hideZeroBalanceTokens": false,
|
|
"showFiatInTestnets": false,
|
|
"showTestNetworks": false,
|
|
"useNativeCurrencyAsPrimaryCurrency": true
|
|
},
|
|
"selectedAddress": "string",
|
|
"theme": "string",
|
|
"useBlockie": false,
|
|
"useNftDetection": "boolean",
|
|
"useNonceField": false,
|
|
"usePhishDetect": true,
|
|
"useTokenDetection": "boolean",
|
|
"useCurrencyRateCheck": "boolean",
|
|
"useMultiAccountBalanceChecker": "boolean"
|
|
},
|
|
"SmartTransactionsController": "object",
|
|
"SubjectMetadataController": "object",
|
|
"TokensController": "object",
|
|
"TransactionController": "object",
|
|
"config": "object",
|
|
"firstTimeInfo": "object"
|
|
},
|
|
"meta": { "version": 74 }
|
|
}
|