MetaMask / MetaMask/metamask-extension
Metamask Saving Data From Network Form
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
I do realize this may not be a issue technically, but I opened a support ticket without any response and couldn't find any other channel for communication/ Thus posting here.
So basically I am trying to do some changes on the metamask extension, add a new field to the Network Settings, a checkbox specifically.
So I managed to add this checkbox on the screen (use the appropriate storybook component, etc). However, I am now struggling to figure out how metamask persists its data permanently and loads them.
Basically I added a new field, that field is visible to the user, it also gets sent as part of the `UPDATE_METAMASK_STATE`. It is a sibling field of `blockExplorerUrl`, so I sort of modeled it after that. However the value does not seem to get saved to the store that persists the data. So my question is
1. How do I persist data in general and when a new field is added to the `network-form.component.js`
2. How is data persisted and loaded into metamask (data like settings, list of custom networks)
Also is there a slack or anything that is available for community devs?
Contributor guide
Research direction
Start with network-form.component.js and trace the UPDATE_METAMASK_STATE flow into the store persistence and loading paths. Check how sibling data such as blockExplorerUrl is handled. Done means the new checkbox value is persisted across reloads and restored when the network form loads.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100