Skip to content

1212.0.0

Choose a tag to compare

@github-actions github-actions released this 26 Aug 20:06
ac3212f

@metamask/bridge-controller 80.0.0

Added

  • Export QuoteMetadataMigrationPhase ('1' | '1.5' | '2') (#9744)
  • Export isQuoteResponseV2, a type guard that's true when quote.quote has a src property (#9744)

Changed

  • BREAKING: Require migrationPhase on selectBridgeQuotes / selectBatchSellQuotes client params (#9744)
    • V1Data ('1'): omit API V2 currency metadata; serve legacy calcQuoteMetadata
    • V2WithV1Fallback ('1.5'): prefer API V2 metadata (plus fiat from usd); fall back to legacy
    • V2Only ('2'): API V2 metadata only
  • BREAKING: mergeQuoteMetadata only accepts QuoteResponse V2, and takes optional migrationPhase and currencyValues (#9744)

Fixed

  • toQuoteMetadataV2 and toQuoteResponseV2 omit empty feeData / priceData objects (#9744)

@metamask/bridge-status-controller 75.3.0

Changed

  • Add optional migrationPhase to submitTx, submitIntent, and submitBatchSell, used by toQuoteMetadataV1 to convert V2 quotes. Defaults to V1Data ('1') if omitted (#9744)
  • Bump @metamask/bridge-controller from ^79.3.1 to ^80.0.0 (#9978)