All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Add clear function for NotificationController (#943)
- BREAKING: Rename "Collectible" to "NFT" (#934)
- Rename
CollectiblesController
toNftController
, and rename all methods, controller properties, types, constants, and state properties to use the term "NFT" instead of "collectible". - Rename
CollectibleDetectionController
toNftDetectionController
, and rename all methods, controller properties, types, constants, and state properties to use the term "NFT" instead of "collectible". - Rename
AssetsContractController
methodgetERC721CollectibleTokenId
togetERC721NftTokenId
. - Rename
assetsUtil
methodcompareCollectiblesMetadata
tocompareNftMetadata
. - Rename constant
ASSET_TYPES.COLLECTIBLE
toASSET_TYPES.NFT
- Rename
PreferencesController
state propertyuseCollectibleDetection
touseNftDetection
- Rename
PreferenceController
methodsetUseCollectibleDetection
tosetUseNftDetection
- Rename
- Fix NetworkController
lookupNetwork
deadlock (#948) - Fix invalid
rpcTarget
andnickname
network state after switching from custom network to Infura network usingsetProviderType
(#947)
- Fix issue introduced in v32.0.1 where EthQuery is not instantiated correctly on GasFeeController when constructed (#936)
- Make both callback and messaging system options for
TokenListController
&GasFeeController
when listening toNetworkController
(#932) - Add error handling when eth_estimateGas fails in TransactionController (#920)
- Add
isOutOfDate
to the PhishingController, for checking whether the phishing lists are out-of-date. (#929)
- BREAKING: Make the PhishingController
test
synchronous (#929)- Rather than being polled regularly (as it was pre-v31), or updated on fetch (as in v31), the phishing lists are no longer updated automatically at all. You will need to manually call
isOutOfDate
to check whether they are out-of-date, and then callupdatePhishingLists
to update them.
- Rather than being polled regularly (as it was pre-v31), or updated on fetch (as in v31), the phishing lists are no longer updated automatically at all. You will need to manually call
- BREAKING: Migrate NetworkController to BaseControllerV2 (#903)
- There is no more "controller configuration" with BaseControllerV2. Instead configuration is set by constructor parameters.
- The constructor accepts a single "options" object rather than separate parameters. The initial state is now passed as part of this options object, via the
state
property. - The constructor must be passed the
infuraProjectId
andmessenger
options. The messenger should be a restricted controller messenger. - Controller subscriptions must be registered through the controller messenger, rather than through the controller directly.
- A
providerChange
event has been added. This is dispatched when the provider instance variable is updated.- When there is a network switch, this is dispatched after the network has been fully initialized.
- A new
getEthQuery
action has been added, for obtaining anEthQuery
instance that is already setup with the current provider- Note that it will stop working when the provider changes, so you should call this again each time the
providerChange
event is dispatched.
- Note that it will stop working when the provider changes, so you should call this again each time the
- Prevent parallel phishing configuration updates (#930)
- Fix issues with empty responses in ERC20Standard (#927)
- Calling
getTokenSymbol
andgetTokenDecimals
on contracts that return empty values (0x
) forsymbol()
anddecimals()
will now throw an error.
- Calling
- Update phishing configuration update URL to reduce cache delay (#915)
- Update
@keystonehq/metamask-airgapped-keyring
from^0.3.0
to^0.6.1
(#913)
- Allow Optimism & Optimism Testnet to be added via
wallet_addEthereumChain
(#910) - Fix regression where a phishing configuration update network failure would cause the
test
method to fail (#915) - Prevent duplicate phishing configuration update network requests (#915)
- Add new error type -
ApprovalRequestNotFoundError
(#909)
- Replace
ethers
with submodules (@ethersproject/**
) (#907)
- Add support for caveats on endowment permissions (#878)
- BREAKING: Bump to Node 14 (#893)
- BREAKING: PhishingController is now async (#897)
PhishingController.test
now returns a PromisePhishingController.setRefreshInterval
should now be used to change the polling interval
- Changed TokenController._createEthersContract to no longer be async (#895)
- Add new functionality to the CollectiblesController to verify the transaction state of a collectible (#762).
- Add new method to the CollectiblesController to search a Collectible by smart contract address and token ID (
findCollectibleByAddressAndTokenId
). - Add new method to the CollectiblesController to update the state of a Collectible (
updateCollectible
). - Add new method to the CollectiblesController to reset the transaction status of a Collectible (
resetCollectibleTransactionStatusByTransactionId
).
- Add new method to the CollectiblesController to search a Collectible by smart contract address and token ID (
- Add new method
validatePassword
to KeyringController to validate the password (#884) - Add
formatIconUrlWithProxy
function for formatting iconUrl Proxy for tokens from Swaps API (#889)
- Updated the Testnet Ticker string format to be prefixed with the network name (e.g. ETH) (#868)
- Allow clients to avoid third party tokenlist polling (#861):
- Added a new configuration property
preventPollingOnNetworkRestart
is added to TokenListController. - Added a method to update the new preventPollingOnNetworkRestart property value.
- Added a method to reset the
tokenList
andtokensChainsCache
properties in state.
- Added a new configuration property
- Adds method
isTokenListSupportedForNetwork
which returnsSupportedTokenDetectionNetworks
plus the local ganache network chainId. Then changes TokenListController to use this method to check whether or not to start polling, so that polling can occur on ganache networks to allow for e2e testing (#855)
- Change
formatIconUrlWithProxy
to accept hex strings forchainId
(#851) - This change fixes an issue introduced in v30.0.0 for metamask-extension where the
chainId
is currently represented as a hexadecimal in the TokensController and was, as a result, getting invalid URL responses fromformatIconUrlWithProxy
which previously expected itschainId
argument to be in decimal format.
- BREAKING: Introduce
getNetworkState
,getPreferencesState
, andonTokenListStateChange
to the TokenDetectionController constructor options object (#808)getPreferencesState
provides the default value foruseTokenDetection
from the PreferencesController state.getNetworkState
provides the default value forchainId
from the NetworkController state.onTokenListStateChange
listener triggers a detect action whenever the TokenListController finishes fetching a token list.
- BREAKING: Update AssetsContractController to keep track of the current network (accessible via config.chainId) as well as whether the network supports token detection (#809)
- Consumers will need to pass listener method
onNetworkStateChange
in AssetsContractController constructor options object. This method should be called with network/provider details when network changes occur.
- Consumers will need to pass listener method
- Add
onCollectibleAdded
event handler to the CollectiblesController constructor (#814)- This event handler was added to allow us to capture metrics.
- BREAKING: Rename
addTokens
on the TokenDetectionController constructor options object toaddDetectedTokens
(#808)- We are no longer automatically adding detected tokens to the wallet. This will provide users with the ability to manually import or ignore detected tokens.
- BREAKING: Rename
useStaticTokenList
touseTokenDetection
on the PreferencesController constructor options object and set the value to be true by default (#808)- Token detection will now be enabled by default.
- BREAKING: Append phishfort blocklist to list used by PhishingController (#715)
- The
test
method onPhishingController
no longer returns a boolean, it now returns an object matching theEthPhishingDetectResult
interface (defined inPhishingController.ts
). - Designs may need to be updated to account for the fact that sites may now be blocked by Phishfort. We should ensure users are not directed to the
eth-phishing-detect
repository to dispute Phishfort blocks, because we will not be able to help them.
- The
- BREAKING: Rename
convertPriceToDecimal
function name toconvertHexToDecimal
(#808) - Rename
fetchFromDynamicTokenList
tofetchTokenList
(#806)- No need to mention dynamic in the naming since there is only one way to fetch the token list.
- Update
fetchFromCache
in TokenListController to returnTokenListMap | null
instead ofTokenListToken[] | null
(#806)- This allows us to remove some unnecessary mapping when working with cached tokens and token list.
- Update
TokenListToken
in TokenListController to includeaggregators
property (#806)- This allows us to show the aggregator names for a token.
- Update TokensController to support detected tokens (#808)
- Introduce
detectedTokens
to the config object to track detected tokens, which is updated by callingaddDetectedTokens
whenever TokenDetectionController detects new tokens. - Added
fetchTokenMetadata
private method to fetch token metadata whenever adding individual tokens. This is currently used to populate aggregator information.
- Introduce
- Append
detectedTokens
to both TokenBalancesController & TokenRatesControllertokens
config object within theironTokensStateChange
listener methods (#808)- This change ensures that we are populating both balances and rates for detected tokens.
- Update CollectibleDetectionController to place a proxy API (provided by Codefi) in front of OpenSea requests (#805)
- All NFT related queries that were routed to OpenSea will now first route to a proxy server owened by Codefi. If this first request fails, and an OpenSea API key has been set, the query will re-route to OpenSea as a fallback.
- Update CurrencyRateController to use ETH exchange rate for preloaded testnets native currency (Rinkeby, Ropsten, Goerli, Kovan) (#816)
- Update ERC721Standard to query for name and symbol values on ERC721 contracts even when the contract does not support the metadata interface (#834)
- Increase polling interval for TokenListController and require minimum of 3 occurrences across our aggregated public token lists for use in the dynamic token list (#836)
- BREAKING: Remove
removeAndIgnoreToken
from TokensController (#808)- The logic for removing token(s) is now consolidated in a new method named
ignoredTokens
. Consumers will need to update instances ofremoveAndIgnoreToken
to useignoredTokens
instead.
- The logic for removing token(s) is now consolidated in a new method named
- BREAKING: Remove
onTokensStateChange
from the TokenDetectionController constructor options object (#808)- This was previously used to update the
tokens
property in the controller's configuration object. This is not needed since those tokens are managed by the TokensController.
- This was previously used to update the
- BREAKING: Remove
useStaticTokenList
andonPreferencesStateChange
from TokenListController constructor options object (#806)useStaticTokenList
was previously used to determined if this controller fetched against a static vs dynamic token list andonPreferencesStateChange
was used to updateuseStaticTokenList
.- The controller now always fetches from a dynamic token list.
- BREAKING: Remove snap-specific network-access endowment (#820)
- Consumers who still require this endowment should import from
@metamask/snap-controllers
minimum version 0.13.0.
- Consumers who still require this endowment should import from
- Update AssetsContractController to fix issues parsing non-standard ERC-20 responses (#830)
- Now correctly reads token contract values for decimals and symbol with solidity return type
bytes32
.
- Add SupportedTokenDetectionNetworks enum and util for token detection support. (#811)
- Fix bug introduced in v29.0.0 where
createNewVaultAndRestore
would crash with a validation failure. (#819)
- Reintroduce NotificationController for in-app notifications (#709)
- Add optional token service timeout parameter(#793)
- BREAKING: Bump eth-keyring-controller to 7.0.1 (#802)
- Mnemonics in keyrings of type
HD Key Tree
are always serialized as arrays of numbers.exportSeedPhrase
now returns a buffer rather than a string, consumers will need to adapt to this new return type accordingly.
- Mnemonics in keyrings of type
- Add GrantPermissions action to PermissionsController (#780)
- Add
PermissionController.revokePermissionForAllSubjects
action (#764)
- BREAKING: Rename NotificationController to AnnouncementController (#697)
- The
NotificationController
class is nowAnnouncementController
. - The controller
notifications
state has been renamed toannouncements
. - All other exported types including the word "notification" have been updated to use the word "announcement" instead.
- The
- Move
@keystonehq/metamask-airgapped-keyring
to dependencies (#757)
27.1.0 [DEPRECATED]
- Now the
KeyringController
supports theQRKeyring
from@keystonehq/metamask-airgapped-keyring
. Developers can enable the import of accounts from a QR hardware wallet. A new optional parameter,setAccountLabel
from thePreferencesController
, should be passed to theKeyringController
to enable this new functionality. (#685)- UPDATE: This is broken. Consumers are encouraged to upgrade to 27.1.1.
- Bump
eth-phishing-detect
version from 1.1.14 to 1.1.16 (#742) - Bump
@metamask/contract-metadata
from 1.31.0 to 1.33.0 (#730)
- Improve error message when attempting to import an invalid private key (#739)
- BREAKING: Further reduce load on Infura by removing non-critical data from the fallback implementation of the Gas API (#712)
- In GasFeeEstimates – the type of the object returned by
fetchGasEstimatesViaEthFeeHistory
as well as type ofgasFeeEstimates
stored in GasFeeController —historicalBaseFeeRange
,baseFeeTrend
,latestPriorityFeeRange
,historicalPriorityFeeRange
,priorityFeeTrend
, andnetworkCongestion
can now be null. You should update your code to account for this. - The ExistingFeeHistoryBlock and NextFeeHistoryBlock types were inconvenient to use and are no longer public. You should use FeeHistoryBlock instead.
- The BlockFeeHistoryDatasetFetcher class has been removed. There is no replacement.
- The
calculateBaseFeeRange
,calculateBaseFeeTrend
,calculateNetworkCongestion
,calculatePriorityFeeRange
, andcalculatePriorityFeeTrend
functions have been removed. There are no replacements.
- In GasFeeEstimates – the type of the object returned by
- Update AssetsContractController to make
userAddress
ofgetTokenStandardAndDetails
optional (#717)
- Fix RateLimitController so that the rate limit is not reset aggressively (#716)
- Add PermissionController and SubjectMetadataController (#692)
- Add RateLimitController (#698)
- Add
revokePermissions
to PermissionController actions (#708)
- BREAKING: Fetch and return token image as part of
getDetails
calls on ERC721Standard and ERC1155Standard (#702)- This change is breaking because it requires that the AssetsContractController (on which the ERC721Standard and ERC1155Standard are instantiated) be passed a listener for onPreferencesStateChange from the PreferencesController so that it can use the user's preferred IPFSGateway to fetch any images hosted on IPFS. Consumers will have to pass onPreferencesStateChange in an options object (first arg) to the AssetsContractController constructor when initializing.
- Reduce load on Infura in gas estimate API fallback (#705)
- Update
fetchBlockFeeHistory
to account for nonexistentbaseFeePerGas
(#703) - Update
fetchBlockFeeHistory
to account for test chains with a few number of blocks (#699) - Expose
WebSocket
via endowments for network access (#696) - Bump
@metamask/metamask-eth-abis
from ^2.1.0 to 3.0.0 (#681)
- Make the userAddress argument to the getDetails method on the ERC20Standard class optional. (#674)
- Add optional third argument to method
checkAndUpdateSingleCollectibleOwnershipStatus
on CollectiblesController, which contains the userAddress and chainId to check asset ownership against. If not included, the method will still check against the currently configured selectedAddress and chainId configured in the CollectiblesController (#672) - Add
getTokenStandardAndDetails
method on AssetsContractController which determines whether the input contract conforms to particular known token standard (ERC20
,ERC721
orERC1155
) and returns the detected standard along with some key values/details about that the contract and/or specified token within that contract (#667)
-
- BREAKING - Standardize ERC721/1155/20 method names (#667)
- Renames many methods on the AssetsContractController to include the contract type they are used by in the name in a standardized structure (i.e.
getAssetName
->getERC721AssetName
andbalanceOfERC1155Collectible
->getERC1155BalanceOf
). - Consumers will need to look at the AssetsContractController for any methods they consume and adapt names accordingly.
- Add
checkAndUpdateSingleCollectibleOwnershipStatus
method (#669)
-
- BREAKING: Rename
checkAndUpdateCollectibleOwnershipStatus
tocheckAndUpdateAllCollectibleOwnershipStatus
(#669) - Previously incorrectly released as minor version bump 23.1.0.
- Consumers who used
checkAndUpdateCollectibleOwnershipStatus
must update it's name tocheckAndUpdateAllCollectibleOwnershipStatus
.
- BREAKING: Rename
23.1.0 [DEPRECATED]
- Add checkAndUpdateSingleCollectibleOwnershipStatus method (#669)
- Add method to check and update collectible ownership state (#664)
- Add method to set a collectible as favorite (#623)
- Update GasFeeController to use
eth_feeHistory
to compute gas fee recommendations when MetaSwap API is down (#614) - Update GasFeeController to expose additional data sourced from the MetaSwap API in support of design updates to "edit gas fee" functionality in extension (#632), (#646, #660)
- Breaking Add caller-specified error for ApprovalController.clear (#656)
- The new caller-specified error is mandatory. Consumers must add this error when calling the clear method for method to function properly.
- Fix polling initialization for collectibles (#662)
- BREAKING: Change IPFS URL generation to use subdomains and cidV1s over cidV0s, in order to enhance origin based security in our use of IPFS assets (#655)
- Consumers using an IPFS gateway(s) which does not support IPFS subdomain formats will need to set the new config value 'useIPFSSubdomains' on CollectiblesController to false in order to have continued IPFS resolution support.
- BREAKING: remove chainid normalization (#651)
- This is breaking for anyone who adapted consumption of CollectiblesController to make use of v21.0.0. The chainId in the collectibles state shape is no longer normalized to decimal.
- Fix collectibles collection images (#650)
- Fix issue where chainId key in AllCollectibles & AllCollectibleContracts is formatted differently in manual collectible add and detection add flows. (#648)
- BREAKING: Add openSeaEnabled preference (#645)
- Consumers of the collectibleDetectionController and collectibleController who wish to continue use of OpenSea's API and AutoDetection will either need to configure openSeaEnabled to true after instantiating the controller now or expose a toggle for users to change the openSeaEnabled state in the preferences controller.
- Change expected shape of OpenSea contract API to use collections (#628)
- Modify requirements for adding OpenSea detected contract (#644)
- BREAKING: Add detection params (userAddress, chainId) and remove duplicate source of truth (#636)
- Both collectibles and collectibleContracts are removed from CollectiblesController state.
- Consumers who use these pieces of state will need to migrate to use the AllCollectibles and AllCollectiblesContracts state instead.
- Add new method
addCollectibleVerifyOwnership
to CollectiblesController (#635) - Add setting in PreferencesController to enable/disable collectible autoDetection and check against it in CollectibleDetectionController (#638)
- Use user preferred ipfs gateway, as set in PreferencesController, to resolve ipfs based assets in CollectiblesController (#637)
- BREAKING: Remove polling start call in detection controllers' constructors (#629)
- Consumers of either of the TokenDetection and CollectibleDetection controllers who wish to immediately start polling upon instantiation will need to call the start method on the controller immediately after instantiation.
- Remove ApprovalController.has signature overloads (#624)
- BREAKING: Split AssetsDetectionController into CollectiblesDetectionController and TokenDetectionController (#619)
- Consumers of the AssetsDetectionController will have to now import both TokenDetectionController and CollectibleDetectionController and split up the calling of any methods accordingly.
- BREAKING: Set the
CurrencyRateController
propertyconversionDate
tonull
if fetching the data fails. (#621)- Consumers of the
CurrencyRateController
will need to ensure their code anticipates thatconversionDate
will sometimes be set tonull
.
- Consumers of the
- BREAKING: ERC1155 support (#615)
CollectiblesController
requiresgetOwnerOf
,balanceOfERC1155Collectible
anduriERC1155Collectible
properties in the constructor which are methods fromAssetsContractController
.
- Add support for custom networks by querying the blockchain as default and add support for IPFS metadata URIs (#616)
- Bump @metamask/contract-metadata from 1.29.0 to 1.30.0 (#607)
- Add client id header to GasFeeController (#597)
- Improve transaction state management for custom networks (#598)
- Make TokenRatesController support fiat conversion for more networks (#585)
- BREAKING: Simplify type of BaseControllerV2 state (#496)
- Controllers based upon BaseControllerV2 might need to update their types.
- Custom interfaces/classes will no longer be allowed in the controller state. Simple objects only.
- Enable HTTP caching for the dynamic token list managed by the TokenListController (#594)
- BREAKING: Remove
syncTokens
method from the TokenListController (#590)
- Fix bug that allowed
getGasFeeEstimatesAndStartPolling
to initiate multiple simultaneous fetch requests (#586) - Fix bug that cause an invalid tokenList to be in controller state when active network is not supported by our tokenList API (#588)
- Improve transaction state management (#582)
- TransactionController improvement to reconcile the data between local and remote sources (Etherscan) and avoid misleading display of gas and/or status information.
- Bump immer from 8.0.1 to 9.0.6 (#581)
- Change AbortController to default import (#579)
- Fix error thrown when polyfilled AbortController is instantiated as a named import.
- Add AbortController polyfill (#575)
- 15.0.0 introduced the use of the global AbortController to this package. The global AbortController was first introduced in Node 15, so this unintentionally broke support for the minimum Node version this package should support, which is Node 12. By polyfilling the AbortController, we restore Node 12 support.
- BREAKING: Update TokensController allTokens state structure to make network/chainID parent of account (#572)
- The shape of allTokens state field on TokensController has been reorganized. Consumers of the TokensController will have to migrate existing token state to new shape.
- BREAKING: ignoredTokens changed to allIgnoredTokens (#570)
- a new state field on the TokensController - allIgnoredTokens - now manages ignoredTokens by network and accountAddress, ignoredTokens is now the array of token address strings (previously an array of full token objects) that have been hidden by the user for the currently active network and accountAddress pair. Consumers of the TokensController will have to migrate existing ignoredTokens array to allIgnoredTokens object.
- BREAKING: Improve BaseControllerV2 messenger type (#556)
- This is a breaking change, because anyone extending BaseControllerV2 will now be required to supply an additional generic parameter.
- BREAKING: Remove redundant default export from util.ts (#574)
- This is breaking for consumers who use the default import of the utils module, and will require using named imports instead.
- BREAKING: Removing aggregator from TokenListToken (#564)
- This is breaking because the the DynamicToken and TokenListToken types no longer contain an aggregators field. Consumers will have to remove aggregators for objects using this type.
- BREAKING: Migrate ApprovalController to BaseControllerV2 (#555)
- This is a breaking change because the BaseControllerV2 migration is breaking, and the 'resolve' method has been renamed to 'accept'.
- Speed up token detection for most popular 1000 tokens (#568)
- Cancel inflight request during chainId change and useStaticTokenList flag change (#571)
- Update the token list API host (#563)
- Bump @metamask/contract-metadata from 1.28.0 to 1.29.0 (#569)
- Reduce frequency of token list updates (#561)
- Previously it would update the token list upon any preference or network configuration change. Now it only restarts polling when the network switches or when the
useStaticTokenList
flag changes.
- Previously it would update the token list upon any preference or network configuration change. Now it only restarts polling when the network switches or when the
- Added the ability to limit the number of transactions stored (default is 40) (#550)
- Added the ability to speedUp and stop based on provided gasValues from consumer (#535)
- Consolidate token list controller data. (#527)
- Adds 3 fields:
address
,aggregators
, andoccurrences
to static tokens
- Adds 3 fields:
- Controller messenger selector subscriptions (#551)
14.0.2 - 2021-07-28
- Fix
resetPolling
functionality (#546)- This fix addresses a bug that was discovered in
resetPolling
inGasFeeController
functionality being called too frequently.
- This fix addresses a bug that was discovered in
- Improve token list API error handling (#541)
14.0.1 - 2021-07-28 [DEPRECATED]
- Ensure gas estimate fetching in gasFeeController correctly handles responses with invalid number of decimals (#544)
- Bump @metamask/contract-metadata from 1.27.0 to 1.28.0 (#540)
14.0.0 - 2021-07-27 [DEPRECATED]
- BREAKING Add EIP1559 support including
speedUpTransaction
andstopTransaction
(#521)- The breaking change here is that consumers of this repo now have to check if the transaction object includes a gas price and fetch and add it themselves (if need be).
- Make equality comparisons for token and collectible addresses in TokensController and CollectiblesController case insensitive (#537)
- Reset gas fee estimate polling onNetworkStateChange in the gasFeeController (#534)
- Update AssetDetectionController to handle new fetch limits for the OpenSea collectibles api (#536)
- Add options to GasFeeController fetchGasFeeEstimates (#526)
13.0.0 - 2021-07-12
- BREAKING: Remove AssetsController and add CollectiblesController and TokensController in its place (#518)
12.1.0 - 2021-07-09
- Support for custom network and gas estimation (#505)
- A fallback for the token list API service based on user preference (#517)
12.0.0 - 2021-07-07
- Add GasFeeController to provide gas fee estimates #494
- BREAKING: Add chainId support to TokenRatesControllers #476
- The breaking change here is that TokenRatesController constructor now requires a onNetworkStateChange listener
- Add iconUrl to Token type in TokenListController #512
11.0.0 - 2021-07-02
- We accidentally shipped a breaking change in v10.2.0. The changelog has been updated to explain the breaking change, and it has been republished as v11.0.0.
10.2.0 - 2021-06-30 [DEPRECATED]
- BREAKING: Add TokenListController to fetch the token list from token services API (#478)
- The breaking change here is that
AssetsDetectionController
now requiresgetTokenListState
as a constructor parameter.
- The breaking change here is that
- Update
@ethereumjs-tx
to@ethereumjs/tx
and add@ethereumjs/common
to support EIP1559 compliant transactions (#489)
10.1.0 - 2021-06-07
- Export BaseControllerV2 Json type (#482)
- Skip token detection for tokens that are already tracked (#480)
- BREAKING: Fix stale conversionRate after switching network (#465)
- The breaking change is the change in type of the
conversionRate
state of theCurrencyRateController
- it's now nullable.
- The breaking change is the change in type of the
9.1.0 - 2021-05-20
- Add support for unicode domains to PhishingController (#471)
- AssetsController collectibles metadata improvements (#454)
- Add
getState
action to BaseControllerV2 (#457)
- BREAKING: Migrate CurrencyRateController to BaseControllerV2 (#372)
- Add BaseControllerV2 support to ComposableController (#447)
- Update eth-keyring-controller (#460)
- Export BaseControllerV2 and ControllerMessenger (#462)
- Improve restricted messenger types for controllers (#461)
- Document all ControllerMessenger generic parameters (#456)
- Bump @metamask/contract-metadata from 1.24.0 to 1.25.0 (#444)
8.0.0 - 2021-04-15
- Add restricted controller messenger (#378)
- BREAKING: Update minimum Node.js version to v12 (#441)
- BREAKING: Replace controller context (#387)
- Bump @metamask/contract-metadata from 1.23.0 to 1.24.0 (#440)
- Update lint rules (#442, #426)
- Don't remove collectibles during auto detection (#439)
7.0.0 - 2021-04-06
- Ability to indicate if a transaction was added from the users local device and account creation time (#436)
- BREAKING: Organize assets by chainid (#435)
- Support longer token symbols via wallet_watchAsset (#433)
6.2.1 - 2021-03-23
- Restore BN export (#428)
6.2.0 - 2021-03-23 [WITHDRAWN]
- Add the Notification Controller (to support "what's new" type announcements in-app) (#329)
- Add support for specifying a custom nonce (#381)
- Explicitly add ethereumjs-tx as a package.json dependency (#392)
- Add
types
manifest field to package.json (#391) - Use "options bag" for parameters for BaseControllerV2 constructor (#388)
- Ensure
uuid
dependency is type-checked (#403) - Update TypeScript to v4.2 (#369)
- Asset metadata type conditionally requires error field, disallows for non-errors (#395)
- Improve TransactionMeta type:
status
now an enum, error conditional on status, default error added for failed etherscan transaction (#406) NetworkController
no longer a required controller ofTypedMessageManager
(#416)- Update
selectedAddress
when identities are updated inPreferencesController.updateIdentities
(#415) - Add contract address validation to
AssetsContractController.getCollectibleTokenURI
(#414) - Add descriptive error messages to empty
toThrow
call (#422)
- Fix
signTransaction
transaction parameter type (#400) - [BREAKING] Consistently use BN type for token balances (#398)
6.1.1 - 2021-03-12
- Add controller messaging system (#377)
6.1.0 - 2021-03-10
- Add Base Controller v2 (#358)
- Add
babel-runtime
dependency required byethjs-query
(#341) - Add Dependabot config (#343)
- Add chainId to every transaction (#349)
- Add normalizeTokenTx for incoming transactions (#380)
- Bump elliptic from 6.5.3 to 6.5.4 (#383)
- Update prettier from v2.1.1 to v2.2.1 (#376)
- Remove AlethioTransactionMeta (#374)
- Improve JSON types (#373)
- Add BaseControllerV2 state metadata (#371)
- Update to TypeScript 4.1 (#370)
- Constrain BaseController state to be valid JSON (#366)
- Update ESLint config to v5 (#368)
- Use
unknown
rather thanany
for BaseController state (#365) - BaseController send patches to state subscribers (#363)
- TransactionController gas and approve transaction improvements (#350)
- Extract CryptoCompare API to a separate module (#353)
- Move tests alongside code under test (#354)
- Bump @metamask/contract-metadata from 1.22.0 to 1.23.0 (#357)
- Remove Alethio to get incoming token transactions, using etherscan instead (#351)
- Prevent
ApprovalController
counting mismatch (#356) - Update
sinon
and@types/sinon
to latest versions (#352) - Fix
tsconfig.json
indentation (#355) - Replace
fetch-mock
withnock
(#340) - Update
ethereumjs-wallet
from v0.6.5 to v1.0.1 (#347) - Update
@metamask/eslint-config
from v3 to v4.1.0 (#344) - Update
uuid
fromv3.3.3
tov8.3.2
(#346) - Update approval controller test import (#339)
- Update
typedoc
(#342) - Remove unused test module (#338)
- Replace
await-semaphore
withasync-mutex
(#334) - Update
eth-json-rpc-filters
in lockfile (#336)
- Fix AbstractMessageManager error (#367)
- Enforce the usage of
chainId
instead ofnetworkId
inNetworkController
(#324)
6.0.1 - 2021-02-05
- Update
typedoc
from v0.15 to v20.20 (#333) - Update
@metamask/contract-metadata
from v1.19 to v1.22 (#332) - Bump node-notifier from 8.0.0 to 8.0.1 (#323)
- Add
safelyExecuteWithTimeout
foraccountTracker.refresh
(#331) - Add try/catch for
assetsContract.getBalanceOf
(#328)
6.0.0 - 2021-01-19
- Remove default approval controller type (#321)
- Enforce the usage of
chainId
instead ofnetworkId
inNetworkController
(#324)
5.1.0 - 2020-12-02
- Updated automatically detected assets (#318)
- Robustified
wallet_watchAssets
params validation, and improved errors (#317)
5.0.0 - 2020-11-19
ApprovalController
(#309)- Add user-defined default type
- Add
Date.now()
timestamps to request (approval.time
) - Enable
has
lookups bytype
only
- Breaking:
ApprovalController
: Require types for all requests (#309) ApprovalController
: RenameApprovalInfo
interface toApproval
(#309)PhishingController
: Makeno-cache
fetch option explicit (#297)- Make package compatible with Node 12 (#287)
ApprovalController
: Fix faultyorigin
parameter type check (#309)- The type check was too loose, and would've permitted some invalid origins.
4.2.0 - 2020-11-13
- Expose
ApprovalController
count state (#306) KeyringController
onLock
/onUnlock
event handlers (#307)
- Properly initialize
ApprovalController
(#306)
4.1.0 - 2020-11-10
ApprovalController
approval count methods (#304)
4.0.2 - 2020-11-09
- Unpin
eth-sig-util
dependency (#302)
4.0.1 - 2020-11-09
- Fix
ApprovalController
export (#300)
4.0.0 - 2020-11-09
- Add
ApprovalController
(#289)
- Allow configuring
CurrencyController
to always fetch USD rate (#292)
- BREAKING: Remove
NetworkStatusController
(#298)
3.2.0 - 2020-10-21
- Add
addNewAccountWithoutUpdate
method (#288)
3.1.0 - 2020-09-23
- Update various dependencies
3.0.1 - 2020-09-15
- Remove
If-None-Match
header from phishing config requests (#277)
3.0.0 - 2020-09-11
- Use Infura v3 API (#267)
2.0.5 - 2020-08-18
- Add prepublishOnly build script (#260)
2.0.4 - 2020-08-18
- Use jsDelivr instead of the GitHub API for content (#256)
- Lower phishing config poll rate to 1 req/hr (#257)
- Use renamed
eth-rpc-error
package (#252)
2.0.3 - 2020-07-27
- TransactionsController: Bugfix cancel / speedup transactions (#248)
2.0.2 - 2020-07-14
- TransactionsController: Fetch incoming token transactions (#247)
2.0.1 - 2020-06-18
- Update
PhishingController
endpoint to use GitHub API (#244)
2.0.0 - 2020-05-07
- Rebrand as
@metamask/controllers
(#226) - Use yarn & drop
npm-shrinkwrap.json
(#193)
- Remove shapeshift controller (#209)