1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00
metamask-extension/shared/constants
Erik Marks fc1ffae406
Add subject types (#13026)
This PR introduces the concept of subject _types_ to be associated with each subject in the `SubjectMetadataController`, and used for control flow in our RPC stack (`setupProviderEngine` and so forth).

We already differentiate between "types" of subjects in various places on an ad hoc basis via boolean flags (e.g. `isInternal` in our RPC stack) or the presence/absence of certain values in the subject's metadata (specifically `metadata.extensionId`). The status quo is manageable if not ideal, but will start to become untenable with the introduction of Snaps in the near future.

Therefore, this PR establishes a `SUBJECT_TYPES` enum and adds the `subjectType` property to the metadata of each subject. A new migration is added to accomplish this. Finally, we specify and `INTERNAL` subject type to distinguish internal from external requests.
2021-12-08 15:37:29 -08:00
..
alerts.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
app.js Add subject types (#13026) 2021-12-08 15:37:29 -08:00
gas.js Edit gas fee modal more changes (#12660) 2021-11-19 00:38:29 +05:30
hardware-wallets.js Introduce QR based signer into MetaMask (#12065) 2021-11-23 13:58:39 -03:30
labels.js Fixing address truncation papercuts (#12330) 2021-10-13 12:54:48 -05:00
metametrics.js Reject popup confirmations on close (#12643) 2021-11-15 17:13:51 +01:00
network.js Revert "Feat/collectibles display (#12873)" (#12934) 2021-12-01 17:46:26 -06:00
permissions.js Permission System 2.0 (#12243) 2021-12-06 19:16:49 -08:00
swaps.js Send all swaps requests to api2, remove useNewSwapsApi boolean (#12792) 2021-11-30 19:56:28 +01:00
time.js Adding periodic reminder modal for backing up recovery phrase (#11021) 2021-06-04 23:33:58 -07:00
tokens.js @metamask/eslint config@5.0.0 (#10358) 2021-02-04 10:15:23 -08:00
transaction.js Replace hardcoded sent ether label on confirm screen (#11802) 2021-09-15 16:54:51 -05:00