Skip to content

800.0.0

Choose a tag to compare

@github-actions github-actions released this 09 Feb 14:14
78fe98b

@metamask/assets-controller 1.0.0

Added

  • Add balance selectors getAggregatedBalanceForAccount, getGroupIdForAccount, and getInternalAccountsForGroup with types AggregatedBalanceEntry, AggregatedBalanceForAccount, EnabledNetworkMap, and AccountsById for aggregated portfolio balance (optionally by account group), fiat total, and portfolio-weighted 1d price change (#7864)

Changed

  • BREAKING: Require previousChains in handleActiveChainsUpdate(dataSourceId, activeChains, previousChains) and in the onActiveChainsUpdated callback used by data sources; the third parameter is no longer optional. Callers and data sources must pass the previous chain list for correct added/removed chain diff computation (#7867)
  • Bump @metamask/account-tree-controller from ^4.0.0 to ^4.1.0 (#7869)

Removed

  • BREAKING: Remove initDataSources and related exports (InitDataSourcesOptions, DataSources, DataSourceActions, DataSourceEvents, DataSourceAllowedActions, DataSourceAllowedEvents, RootMessenger). Initialize assets by creating AssetsController with queryApiClient; the controller instantiates all data sources internally (#7859)