1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 09:23:21 +01:00
metamask-extension/shared/modules
Pedro Figueiredo 827c2fb741
feat: Add more state props from controllers to Sentry mask (#20595)
* 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>
2023-08-29 20:47:58 -02:30
..
browser-runtime.utils.js MV3: Update service worker restart logic and keep-alive logic for dapp support (#16075) 2022-11-15 00:18:08 +07:00
browser-runtime.utils.test.js Jest: Add browser.runtime (webextension-polyfill) utils tests (#16483) 2022-11-16 01:32:31 +07:00
buffer-utils.js Add JSDoc ESLint rules (#12112) 2022-01-07 12:27:33 -03:30
buffer-utils.test.js Using expect in jest unit tests under /shared (#11413) 2021-06-29 10:50:18 -07:00
contract-utils.test.js update prettier (#15360) 2022-07-31 13:26:40 -05:00
contract-utils.ts feature: convert shared/modules/contract-utils.test.js to typescript (#17435) 2023-01-26 17:59:49 +00:00
conversion.utils.test.js Complete level 36 migration of TypeScript by converting conversion.utils.js and deprecate old conversion util (#17262) 2023-01-24 12:49:26 -06:00
conversion.utils.ts Complete level 36 migration of TypeScript by converting conversion.utils.js and deprecate old conversion util (#17262) 2023-01-24 12:49:26 -06:00
declare-modules.d.ts feat(mme-17214): migrate L33 files to typescript (#17372) 2023-01-31 12:01:10 +00:00
error.test.ts Ensure that TS files in shared/modules are linted (#18367) 2023-03-30 12:42:38 -06:00
error.ts Add error module for safely handling errors (#17511) 2023-02-02 13:30:57 -06:00
fetch-with-timeout.test.ts Convert shared/modules/fetch-with-timeout to TS (#18351) 2023-03-31 10:52:33 -06:00
fetch-with-timeout.ts Convert shared/modules/fetch-with-timeout to TS (#18351) 2023-03-31 10:52:33 -06:00
gas.utils.js Refactor usages of conversion util in the app folder and shared folder in favor of Numeric (#17331) 2023-01-23 11:41:01 -06:00
gas.utils.test.js Refactor usages of conversion util in the app folder and shared folder in favor of Numeric (#17331) 2023-01-23 11:41:01 -06:00
hash.utils.ts [MMI] interactive replacement token notification (#18620) 2023-04-21 09:58:03 +01:00
hexstring-utils.test.js Format shared/modules/*.tests to use jest arrow functions and use stricter comparative matcher (#12908) 2021-11-30 12:09:46 -06:00
hexstring-utils.ts Fix contract interaction recipient and contract address (#18855) 2023-05-18 18:19:40 +01:00
i18n.test.ts Support translation in background code (#19650) 2023-06-20 13:44:11 +01:00
i18n.ts Support translation in background code (#19650) 2023-06-20 13:44:11 +01:00
mv3.utils.js Refactoring isManifestV3 variable (#15568) 2022-08-16 20:51:42 +05:30
network.utils.test.ts Enable token detection for the Aurora network, fix primary token for Aurora, update a URL (#19009) 2023-05-16 17:57:04 +02:00
network.utils.ts feat: add new linea mainnet network (#19326) 2023-06-16 14:05:33 -02:30
Numeric.test.ts Ensure that TS files in shared/modules are linted (#18367) 2023-03-30 12:42:38 -06:00
Numeric.ts Fix for error during sending to multisig address (#17651) 2023-02-09 10:49:39 -06:00
object.utils.js feat: Add more state props from controllers to Sentry mask (#20595) 2023-08-29 20:47:58 -02:30
provider-injection.js Fix injection blocklist regex (#20584) 2023-08-24 16:01:04 +02:00
random-id.js fix: replace dnode background with JSON-RPC (#10627) 2021-03-18 11:23:46 -07:00
rpc.utils.js Set default getFetchWithTimeout default timeout value (#14218) 2022-07-19 11:13:45 -05:00
security-provider.utils.test.ts Security Provider cleanup (#19694) 2023-06-23 20:08:22 +02:00
security-provider.utils.ts Security Provider cleanup (#19694) 2023-06-23 20:08:22 +02:00
siwe.js feat: use siwe detection from @metamask/controller-utils (#18409) 2023-04-04 17:25:57 +02:00
string-utils.test.js feat(mme-17212): convert shared/module/string-utils.js -> Typescript (#17320) 2023-01-20 17:40:48 +00:00
string-utils.ts feat(mme-17212): convert shared/module/string-utils.js -> Typescript (#17320) 2023-01-20 17:40:48 +00:00
swaps.utils.js Swaps support for local testnet (#10658) 2021-03-18 07:50:06 -02:30
transaction.utils.js Add edge case handling for tx utilities (#19907) 2023-07-06 21:18:38 -02:30
transaction.utils.test.js Add edge case handling for tx utilities (#19907) 2023-07-06 21:18:38 -02:30
updateTxData.js Feature/mmi 3009 confirm transaction base code fences (#19335) 2023-06-07 08:43:28 +02:00
updateTxData.test.js Feature/mmi 3009 confirm transaction base code fences (#19335) 2023-06-07 08:43:28 +02:00