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
{{ message }}
Repository navigation
Convert TokenRatesController from BaseControllerV1 to BaseControllerV2 #4076
Considering that converting TokenDetectionController to BaseController v2 took longer than expected due to unforeseen changes, we want to be more conscientious about converting TokenRatesController.
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.
changed the title [-](`assets-controllers`) TokenRatesController[/-][+]Convert TokenRatesController from BaseControllerV1 to BaseControllerV2[/+]on Mar 18, 2024
Activity
[-](`assets-controllers`) TokenRatesController[/-][+]Convert TokenRatesController from BaseControllerV1 to BaseControllerV2[/+]mikesposito commentedon Apr 17, 2024
TokenRatesControllerclass can extend theStaticIntervalPollingController“mixin” type, which extends BaseControllerV2.StaticIntervalPollingControllerwill accept type parameters needed for BaseControllerV2 (name, state and messenger types)TokenRatesConfigtoTokenRatesControllerConfigTokenRatesStatetoTokenRatesControllerStateTokenRatesControllermessengersstartand astopaction to toggle the pollinggetNetworkClientByIdonPreferencesStateChangeonTokensStateChangeonNetworkStateChangewithControllerhelper to make tests more readable and easier to be maintainedupgrade TokenRatesController to BaseControllerV2 (#4314)