MetaMask / core

This monorepo is a collection of packages used across multiple MetaMask clients
MIT License
293 stars 188 forks source link

feat: Update `PreferencesController` with `tokenNetworkFilter` #4875

Open gambinish opened 3 weeks ago

gambinish commented 3 weeks ago

Explanation

Adds tokenNetworkFilter setting. Required for: https://github.com/MetaMask/metamask-mobile/pull/11808

References

https://github.com/MetaMask/metamask-mobile/pull/11808

Changelog

Adds tokenNetworkFilter with a default value of {} type Record<string, boolean>

@metamask/preferences-controller

Checklist

cryptodev-2s commented 3 weeks ago

@Gambinish, could you please add some unit tests? You can use as an example how the other preferences are tested for reference.