Skip to content

1291.0.0

Choose a tag to compare

@github-actions github-actions released this 25 Sep 16:20
30d0b04

@metamask/assets-controller 17.0.0

Added

  • Add getZeroNativeAssetBalance and getZeroTokenAssetBalance so Stellar native zeros include spendable/reserve metadata and Stellar token zeros include empty trustline metadata. getZeroAssetBalance picks between them with isNativeAssetId

Changed

  • BREAKING: Split asset fetching into two paths behind assetsAccountsApiV6 (#9651)
    • Architecture: The v5 path keeps production behavior — the API decides the returned set, and results are merged. The v6 path has the client declare the visible set (includeAssetIds / excludeAssetIds) and write an authoritative full snapshot for covered chains. Visibility is computed from controller state and shared by Accounts API, Snap, RPC, and RPC fallback. The flag is read only in AssetsController and injected as isBalanceV6Enabled. Hide/unhide re-evaluates live subscriptions so the next poll uses the new set.
    • Why this is breaking:
      • 'update' is removed from AssetsUpdateMode; use 'full' or 'merge'
      • getAssets no longer accepts updateMode; the data source sets it on the response
      • getAssetsState is removed from pipeline Context, SubscriptionRequest, and PriceDataSource.fetch; inject it on data-source and middleware constructors instead
      • getAssetsState and getAssetVisibility are required on Accounts API, Snap, and RPC data sources
      • isBalanceV6Enabled is required on SnapDataSource
      • unhideAsset is now async and force-fetches the asset's chain, matching addCustomAsset
  • Bump @metamask/transaction-controller from ^72.0.0 to ^72.0.1 (#10462)

Fixed

  • Treat assetsAccountsApiV6 as enabled when it is true, not a nested { value } object (#9651)

@metamask/bridge-controller 81.3.3

Changed

  • Bump @metamask/transaction-controller from ^72.0.0 to ^72.0.1 (#10462)
  • Bump @metamask/assets-controller from ^16.1.2 to ^17.0.0 (#10474)

@metamask/bridge-status-controller 76.3.3

Changed

  • Bump @metamask/transaction-controller from ^72.0.0 to ^72.0.1 (#10462)
  • Bump @metamask/bridge-controller from ^81.3.2 to ^81.3.3 (#10474)

@metamask/transaction-pay-controller 29.2.2

Changed

  • Bump @metamask/assets-controller from ^16.1.1 to ^17.0.0 (#10459, #10474)
  • Bump immer from ^9.0.21 to ^11.1.18 (#10382)
  • Bump @metamask/assets-controllers from ^112.0.3 to ^112.0.4 (#10459)
  • Bump @metamask/ramps-controller from ^25.1.0 to ^25.1.1 (#10459)
  • Bump @metamask/transaction-controller from ^72.0.0 to ^72.0.1 (#10462)