core icon indicating copy to clipboard operation
core copied to clipboard

feat: add NetworkController NetworkConfiguration actions and events

Open Prithpal-Sooriya opened this issue 1 year ago • 0 comments

Explanation

This adds and exposes actions and events when adding, updating, or removing a NetworkConfiguration.

Events:

  • NetworkController:networkAdded
  • NetworkController:networkUpdated
  • NetworkController:networkRemoved

Actions

  • NetworkController:addNetwork
  • NetworkController:updateNetwork
  • NetworkController:removeNetwork

References

https://consensyssoftware.atlassian.net/browse/NOTIFY-1089

Changelog

@metamask/network-controller

  • ADDED: add events NetworkController:networkAdded; NetworkController:networkUpdated; NetworkController:networkRemoved
  • ADDED: add actions NetworkController:addNetwork; NetworkController:updateNetwork; NetworkController:removeNetwork

Checklist

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

Prithpal-Sooriya avatar Sep 13 '24 12:09 Prithpal-Sooriya