Open
Description
We are considering building a "MetaMask Wallet" framework, which would encapsulate all shared functionality of the extension and mobile projects. Both projects could use this library instead of importing and setting up each controller independently. This library would also include services, a shared JSON-RPC pipeline, etc.
This issue is for writing a technical proposal for this idea, and for any related architectural changes.
See here for an earlier planning phase: https://github.com/MetaMask/MetaMask-planning/issues/1861
See here for an example type declaration and unit tests: #4105