Skip to content

Releases: MetaMask/core

421.0.0

03 Jun 13:42
396e61e
Compare
Choose a tag to compare

@metamask/earn-controller 1.0.0

Added

  • BREAKING: Added addTransactionFn option to the controller contructor which accepts the TransactionController addTransaction method (#5828)
  • Added @ethersproject/bignumber as a dependency (#5828)
  • Added reselect as a dependency (#5828)
  • Added new lending-related types: (#5828)
    • LendingMarketWithPosition
    • LendingPositionWithMarket
    • LendingPositionWithMarketReference
  • Added new lending-related selectors: (#5828)
    • selectLendingMarkets
    • selectLendingPositions
    • selectLendingMarketsWithPosition
    • selectLendingPositionsByProtocol
    • selectLendingMarketByProtocolAndTokenAddress
    • selectLendingMarketForProtocolAndTokenAddress
    • selectLendingPositionsByChainId
    • selectLendingMarketsByChainId
    • selectLendingMarketsByProtocolAndId
    • selectLendingMarketForProtocolAndId
    • selectLendingPositionsWithMarket
    • selectLendingMarketsForChainId
    • selectIsLendingEligible
    • selectLendingPositionsByProtocolChainIdMarketId
    • selectLendingMarketsByTokenAddress
    • selectLendingMarketsByChainIdAndOutputTokenAddress
    • selectLendingMarketsByChainIdAndTokenAddress
  • Added exports from @metamask/stake-sdk: (#5828)
    • isSupportedLendingChain
    • isSupportedPooledStakingChain
    • CHAIN_ID_TO_AAVE_POOL_CONTRACT
  • Added new lending-related methods to EarnController: (#5828)
    • refreshLendingMarkets
    • refreshLendingPositions
    • refreshLendingEligibility
    • refreshLendingData
    • getLendingPositionHistory
    • getLendingMarketDailyApysAndAverages
    • executeLendingDeposit
    • executeLendingWithdraw
    • executeLendingTokenApprove
    • getLendingTokenAllowance
    • getLendingTokenMaxWithdraw
    • getLendingTokenMaxDeposit
  • BREAKING: Added lending key to the controller state to replace stablecoin_lending (#5828)
  • Added optional env option which accepts an EarnEnvironments enum (#5828)
  • Added async lending state data update on constructor initialization (#5828)
  • Added refresh of lending positions and market data when the network state is updated (#5828)
  • Added refresh of lending positions when the user account address is updated (#5828)
  • Added refresh of lending positions when a transaction matching lending type is confirmed (#5828)

Changed

  • BREAKING: Updated refreshPooledStakingVaultDailyApys method to take chain id as its first param (#5828)
  • BREAKING: bump @metamask/accounts-controller peer dependency to ^30.0.0 (#5888)
  • BREAKING: updates controller state to allow pooled staking data to be stored per supported chain id (#5828)
  • Updated refreshPooledStakingData to refresh pooled staking data for all supported chains (#5828)
  • Updated these methods to take an optional chain id to control which chain data is fetched for (#5828)
    • refreshPooledStakingVaultMetadata
    • refreshPooledStakes
    • refreshPooledStakingVaultDailyApys
    • refreshPooledStakingVaultApyAverages
  • Updated refreshStakingEligibility to update the eligibility in the lending state scope as well pooled staking (#5828)
  • Updated refreshPooledStakes method to take an optional chain id to control which chain data is fetched for (#5828)
  • Updated to refresh pooled staking data for all chains when the network state is updated (#5828)
  • Bump @metamask/controller-utils to ^11.9.0 (#5812)
  • Bump @metamask/stake-sdk dependency to ^3.2.0 (#5828)

Removed

  • BREAKING: Removed lending-related types: (#5828)
    • StablecoinLendingState
    • StablecoinVault
  • BREAKING: Removed stablecoin_lending key from the controller state to replace with lending (#5828)

420.0.0

03 Jun 04:52
826c3af
Compare
Choose a tag to compare

@metamask/seedless-onboarding-controller 1.0.0

Added

  • Initial release of the seedless onboarding controller (#5874, #5875, #5880)
    • This controller allows MM extension and mobile users to login with google, apple accounts. This controller communicates with web3auth nodes + relies on toprf sdk (unreleased) to perform CRU operations related to backing up srps.
    • The controller contains the following methods:
      • authenticate: Authenticate OAuth user, generate Valid Authentication Token to interact with TOPRF Services and determine if the user has already registered or not.
      • createToprfKeyAndBackupSeedPhrase: Create a new TOPRF encryption key using given password, encrypt the Seed Phrase and store the encrypted data in the metadata store.
      • addNewSeedPhraseBackup: Add and encrypt a new seed phrase backup to the metadata store without create a new TOPRF encryption key.
      • fetchAllSeedPhrases: Retrieve the encrypted backed-up Seed Phrases from the metadatastore and return decrypted Seed Phrases.
      • changePassword: Update the password of the seedless onboarding flow
      • updateBackupMetadataState: Update the backup metadata state of the controller.
      • verifyVaultPassword: Verify the password validity by decrypting the vault
      • getSeedPhraseBackupHash: Get the hash of the seed phrase backup for the given seed phrase from the state.
      • submitPassword: Validate a password and unlock the controller.
      • setLocked: Remove secrets from state and set the controller status to locked.
      • syncLatestGlobalPassword: Sync the latest global password to the controller. This is useful for syncing the password change update across multiple devices.
      • recoverCurrentDevicePassword:
        • Recover the vault which is encrypted with the outdated password with the new password.
        • This is useful when user wants to sync the current device without logging out.
        • e.g. User enters the new password, decrypts the current vault (which was initially encrypted with old password) using the new password and recover the Key data.
      • checkIsPasswordOutdated: Check if the password is current device is outdated, i.e. user changed password in another device.
      • clearState: Reset the state of the controller to the defaults.

419.0.0

02 Jun 19:25
23eb870
Compare
Choose a tag to compare

@metamask/bridge-controller 32.0.0

Added

  • BREAKING: Add required property minimumBalanceForRentExemptionInLamports to BridgeState (#5827)
  • Add selector selectMinimumBalanceForRentExemptionInSOL (#5827)

Changed

  • Add new dependency uuid (#5827)

@metamask/bridge-status-controller 29.0.0

Changed

  • BREAKING: Bump @metamask/bridge-controller peer dependency to ^32.0.0 (#5896)

418.0.0

02 Jun 09:44
7c7632b
Compare
Choose a tag to compare

@metamask/assets-controllers 68.0.0

Changed

  • BREAKING: Update NftController and NftDetectionController to eliminate the dependency on the current chain (#5622)
    • All functions that previously accepted networkClientId as an optional parameter now require it as a mandatory parameter.
  • BREAKING: Add NetworkController:findNetworkClientIdByChainId to allowed actions in NftController (#5622)
  • BREAKING: Add NetworkController:findNetworkClientIdByChainId to allowed actions in NftDetectionController (#5622)

@metamask/bridge-controller 31.0.0

Added

  • Add SEI network support (#5695)
    • Add SEI into constants ALLOWED_BRIDGE_CHAIN_IDS, SWAPS_TOKEN_OBJECT and NETWORK_TO_NAME_MAP

Changed

  • BREAKING: Bump @metamask/assets-controller peer dependency to ^68.0.0 (#5894)

@metamask/bridge-status-controller 28.0.0

Changed

  • BREAKING: Bump @metamask/bridge-controller peer dependency to ^31.0.0 (#5894)

417.0.0

30 May 16:45
7ff8785
Compare
Choose a tag to compare

@metamask/accounts-controller 30.0.0

Changed

  • BREAKING: Bump @metamask/providers peer dependency from ^21.0.0 to ^22.0.0 (#5871)
  • BREAKING: Bump @metamask/snaps-controllers peer dependency from ^11.0.0 to ^12.0.0 (#5871)

@metamask/assets-controllers 67.0.0

Changed

  • BREAKING: Bump @metamask/accounts-controller peer dependency to ^30.0.0 (#5888)
  • BREAKING: Bump @metamask/transaction-controller peer dependency to ^57.0.0 (#5888)
  • BREAKING: Bump @metamask/providers peer dependency from ^21.0.0 to ^22.0.0 (#5871)
  • BREAKING: Bump @metamask/snaps-controllers peer dependency from ^11.0.0 to ^12.0.0 (#5871)
  • Remove sei from constants SUPPORTED_CURRENCIES (#5883)

@metamask/bridge-controller 30.0.0

Changed

  • BREAKING: Bump @metamask/assets-controller peer dependency to ^67.0.0 (#5888)
  • BREAKING: Bump @metamask/accounts-controller peer dependency to ^30.0.0 (#5888)
  • BREAKING: Bump @metamask/transaction-controller peer dependency to ^57.0.0 (#5888)
  • BREAKING: Bump @metamask/snaps-controllers peer dependency from ^11.0.0 to ^12.0.0 (#5871)
  • Bump @metamask/keyring-api dependency from ^17.4.0 to ^18.0.0 (#5871)

@metamask/bridge-status-controller 27.0.0

Changed

  • BREAKING: Bump @metamask/accounts-controller peer dependency to ^30.0.0 (#5888)
  • BREAKING: Bump @metamask/bridge-controller peer dependency to ^30.0.0 (#5888)
  • BREAKING: Bump @metamask/transactions-controller peer dependency to ^57.0.0 (#5888)
  • BREAKING: Bump @metamask/multichain-transactions-controller peer dependency to ^2.0.0 (#5888)
  • BREAKING: Bump @metamask/snaps-controllers peer dependency from ^11.0.0 to ^12.0.0 (#5871)
  • Bump @metamask/keyring-api dependency from ^17.4.0 to ^18.0.0 (#5871)

@metamask/delegation-controller 0.4.0

Changed

  • BREAKING: bump @metamask/accounts-controller peer dependency to ^30.0.0 (#5888)

@metamask/earn-controller 0.15.0

Changed

  • BREAKING: bump @metamask/accounts-controller peer dependency to ^30.0.0 (#5888)
  • Bump @metamask/controller-utils to ^11.9.0 (#5812)

@metamask/keyring-controller 22.0.1

Changed

  • Bump @metamask/keyring-api dependency from ^17.4.0 to ^18.0.0 (#5871)
  • Bump @metamask/keyring-internal-api dependency from ^6.0.1 to ^6.2.0 (#5871)

@metamask/multichain-network-controller 0.8.0

Changed

  • BREAKING: Bump @metamask/accounts-controller peer dependency to ^30.0.0 (#5888)
  • Bump @metamask/keyring-api dependency from ^17.4.0 to ^18.0.0 (#5871)
  • Bump @metamask/keyring-internal-api dependency from ^6.0.1 to ^6.2.0 (#5871)
  • Bump @metamask/controller-utils to ^11.9.0 (#5812)

@metamask/multichain-transactions-controller 2.0.0

Changed

  • BREAKING: Bump @metamask/accounts-controller peer dependency to ^30.0.0 (#5888)
  • BREAKING: Bump @metamask/snaps-controllers peer dependency from ^11.0.0 to ^12.0.0 (#5871)
  • Bump @metamask/keyring-api peer dependency from ^17.4.0 to ^18.0.0 (#5871)
  • Bump @metamask/keyring-internal-api dependency from ^6.0.1 to ^6.2.0 (#5871)
  • Bump @metamask/keyring-snap-client dependency from ^4.1.0 to ^5.0.0 (#5871)
  • Bump @metamask/snaps-sdk dependency from ^6.22.0 to ^7.0.0 (#5871)
  • Bump @metamask/snaps-utils dependency from ^9.2.0 to ^9.4.0 (#5871)

@metamask/notification-services-controller 9.0.0

Changed

  • BREAKING: bump @metamask/profile-sync-controller peer dependency to ^16.0.0 (#5802)
  • Bump @metamask/controller-utils to ^11.9.0 (#5812)

@metamask/profile-sync-controller 16.0.0

Changed

  • BREAKING: bump @metamask/accounts-controller peer dependency to ^30.0.0 (#5888)
  • BREAKING: bump @metamask/snaps-controllers peer dependency to ^12.0.0 (#5871)
  • BREAKING: bump @metamask/providers peer dependency to ^22.0.0 (#5871)

@metamask/signature-controller 30.0.0

Changed

  • BREAKING: bump @metamask/accounts-controller peer dependency to ^30.0.0 (#5888)
  • Bump @metamask/controller-utils to ^11.9.0 (#5812)

@metamask/transaction-controller 57.0.0

Changed

  • BREAKING: bump @metamask/accounts-controller peer dependency to ^30.0.0 (#5888)

@metamask/user-operation-controller 36.0.0

Changed

  • BREAKING: bump @metamask/transaction-controller peer dependency to ^57.0.0 (#5802)
  • Bump @metamask/controller-utils to ^11.9.0 (#5812)

416.0.0

30 May 09:33
b309158
Compare
Choose a tag to compare

@metamask/accounts-controller 29.0.1

Fixed

  • Prevent use of undefined Snap during SnapController:stateChange (#5884)
    • We were assuming that the Snap will always be defined, but this might not always be true.
  • Populate .options.entropySource for new InternalAccounts before publishing :accountAdded (#5841)

415.0.0

29 May 22:15
f3f8a3e
Compare
Choose a tag to compare

@metamask/error-reporting-service 1.0.0

Added

  • Initial release (#5882)

@metamask/network-controller 23.5.1

Changed

  • Block tracker errors will no longer be wrapped under "PollingBlockTracker - encountered an error while attempting to update latest block" (#5860)
  • Bump dependencies (#5867, #5860)
    • Bump @metamask/eth-block-tracker to ^12.0.1
    • Bump @metamask/eth-json-rpc-infura to ^10.2.0
    • Bump @metamask/eth-json-rpc-middleware to ^17.0.1

Fixed

  • Rather than throwing an error, NetworkController now corrects an invalid initial selectedNetworkClientId to point to the default RPC endpoint of the first network sorted by chain ID (#5851)
  • Fix the block tracker so that it will now reject if an error is thrown while making the request instead of hanging (#5860)

414.0.0

29 May 15:44
eb04c53
Compare
Choose a tag to compare

@metamask/transaction-controller 56.3.0

Added

  • Include origin for wallet_sendCalls requests to the security alerts API (#5876)
    • Extend ValidateSecurityRequest with origin property.
    • Send origin via validateSecurity callback.
  • Add optional approval request when calling addTransactionBatch (#5793)
    • Add transactionBatches array to state.
    • Add TransactionBatchMeta type.

Fixed

  • Support leading zeroes in authorizationList properties (#5830)

413.0.0

29 May 07:29
a21e531
Compare
Choose a tag to compare

@metamask/assets-controllers 66.0.0

Added

  • Add optional parameter to track DeFi metrics when positions are being fetched (#5868)
  • Add phishing protection for NFT metadata URLs in NftController (#5598)
    • NFT metadata URLs are now scanned for malicious content using the PhishingController
    • Malicious URLs in NFT metadata fields (image, externalLink, etc.) are automatically sanitized

Changed

  • BREAKING: Add peer dependency on @metamask/phishing-controller ^12.5.0 (#5598)

@metamask/bridge-controller 29.0.0

Changed

  • BREAKING: Bump @metamask/assets-controller peer dependency to ^66.0.0 (#5872)

@metamask/bridge-status-controller 26.0.0

Changed

  • BREAKING: Bump @metamask/bridge-controller peer dependency to ^29.0.0 (#5872)

412.0.0

28 May 12:43
be41971
Compare
Choose a tag to compare

@metamask/preferences-controller 18.1.0

Added

  • Add dismissSmartAccountSuggestionEnabled preference (#5866)

Changed

  • Bump @metamask/controller-utils to ^11.9.0 (#5812)