Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.

7.0.0

Choose a tag to compare

@github-actions github-actions released this 23 Feb 08:35
· 101 commits to main since this release
568c179

Changed

  • BREAKING: Bump @metamask/controllers from 26.0.0 to 33.0.0 (#139)
    • This is breaking because it changes the type of the state property usedGasEstimate. Specifically, it is now possible for the historicalBaseFeeRange, baseFeeTrend, latestPriorityFeeRange, historicalPriorityFeeRange, priorityFeeTrend, and networkCongestion properties in this object to be null.
  • BREAKING: Change chainId and supportedChainIds config options so that they must be 0x-prefixed hex strings (#184)
  • BREAKING: Change fetchEstimatedMultiLayerL1Fee constructor option so that the chainId option must be an 0x-prefixed hex string (#184)
  • BREAKING: Change getNewChainCache method so that chainId must be an 0x-prefixed hex string (#184)
  • BREAKING: Change chainId setter so that the value must be an 0x-prefixed hex string (#184)
  • BREAKING: Change chainCache state property so that it is keyed by a 0x-prefixed chain ID (#184)
  • BREAKING: Change various utility functions so that their chainId argument must be an 0x-prefixed hex string (#184)
    • getNativeSwapsToken
    • getSwapsContractAddress
    • isValidContractAddress
    • shouldEnableDirectWrapping
    • getBaseApiURL
    • getTokenMetadataURL
    • fetchTradesInfo
    • fetchTokens
    • fetchAggregatorMetadata
    • fetchTopAssets
    • fetchSwapsFeatureLiveness
    • fetchGasPrices
  • BREAKING: Bump minimum Node version to 18 (#186)
  • Update Gas API base URL from https://gas.metaswap.codefi.network to https://gas.api.cx.metamask.io (#185)