1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 03:20:23 +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
browser-runtime.utils.test.js
buffer-utils.js
buffer-utils.test.js
contract-utils.test.js
contract-utils.ts
conversion.utils.test.js
conversion.utils.ts
declare-modules.d.ts
error.test.ts
error.ts
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
gas.utils.test.js
hash.utils.ts [MMI] interactive replacement token notification (#18620) 2023-04-21 09:58:03 +01:00
hexstring-utils.test.js
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
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
Numeric.ts
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
rpc.utils.js
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
string-utils.ts
swaps.utils.js
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