core icon indicating copy to clipboard operation
core copied to clipboard

Wallet framework prototype [WIP]

Open Gudahtt opened this issue 1 year ago • 3 comments

Explanation

This is a "wallet framework" prototype. Used for API design exploration.

References

Related to https://github.com/MetaMask/core/issues/4127

Changelog

None

Checklist

  • [ ] I've updated the test suite for new or updated code as appropriate
  • [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • [ ] I've highlighted breaking changes using the "BREAKING" category above as appropriate

Gudahtt avatar Jun 24 '24 11:06 Gudahtt

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@metamask/[email protected] None 0 0 B

View full report↗︎

socket-security[bot] avatar Jun 24 '24 11:06 socket-security[bot]

Things to test:

  • We can use all defaults (no additional controllers, middleware, or permissions)
  • We can extend by adding new controllers, middleware, or permissions
  • We can override default permissions

Gudahtt avatar Jun 24 '24 12:06 Gudahtt

TODO: Consider how to refactor this class to break out some responsibilities into separate modules.

For example, we can definitely move the middleware to a separate file.

Gudahtt avatar Jun 24 '24 12:06 Gudahtt