You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Considering that converting TokenDetectionController to BaseController v2 took longer than expected due to unforeseen changes, we want to be more conscientious about converting AccountTrackerController.
Figure out all of the changes we would want to make in upgrading this controller, outline those changes here and create new tickets if appropriate.
The text was updated successfully, but these errors were encountered:
desi
changed the title
(assets-controllers) AccountTrackerController
Convert AccountTrackerController from BaseControllerV1 to BaseControllerV2
Mar 18, 2024
## Explanation
In this PR, the `AccountTrackerController` has been updated to
`BaseControllerV2`. The upgrade involves the `AccountTrackerController`
now inheriting from `StaticIntervalPollingController` instead of
`StaticIntervalPollingControllerV1`. This change affects the constructor
by removing deprecated `config` properties, keeping only the `interval`
option as a constructor parameter. Additionally, the `provider` property
has been removed, as it is now directly retrieved by actions from
NetworkState.
## References
Fixes#4071
## Changelog
`@metamask/assets-controller`
### Added
- New types for `AccountTrackerController` messenger actions
- `AccountTrackerControllerGetStateAction`
- New types for `AccountTrackerController` messenger events
- `AccountTrackerControllerStateChangeEvent`
### Changed
- **BREAKING:** Changed superclass of `AccountTrackerController` from
StaticIntervalPollingControllerV1 to StaticIntervalPollingController
- **BREAKING:** Renamed `AccountTrackerState` to
`AccountTrackerControllerState`
### Removed
- **BREAKING:** Removed `AccountTrackerConfig` type
## 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
Considering that converting TokenDetectionController to BaseController v2 took longer than expected due to unforeseen changes, we want to be more conscientious about converting AccountTrackerController.
Figure out all of the changes we would want to make in upgrading this controller, outline those changes here and create new tickets if appropriate.
The text was updated successfully, but these errors were encountered: