Skip to content

Commit

Permalink
Merge branch 'main' into remove-provider-config-from-assets-contract-…
Browse files Browse the repository at this point in the history
…controller
  • Loading branch information
legobeat committed May 30, 2024
2 parents 94c9359 + 50efa9c commit cbddd6b
Show file tree
Hide file tree
Showing 46 changed files with 2,063 additions and 1,867 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/core-monorepo",
"version": "156.0.0",
"version": "157.0.0",
"private": true,
"description": "Monorepo for packages shared between MetaMask clients",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/address-book-controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"dependencies": {
"@metamask/base-controller": "^5.0.2",
"@metamask/controller-utils": "^9.1.0",
"@metamask/controller-utils": "^10.0.0",
"@metamask/utils": "^8.3.0"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class AddressBookController extends BaseControllerV1<
/**
* Name of this controller used during composition
*/
override name = 'AddressBookController';
override name = 'AddressBookController' as const;

/**
* Creates an AddressBookController instance.
Expand Down
35 changes: 25 additions & 10 deletions packages/assets-controllers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Uncategorized

- **BREAKING:** The NftController messenger must now allow the `NetworkController:getNetworkClientById` action ([#4305](https://github.com/MetaMask/core/pull/4305))
- NftControllerMessenger now makes use of `selectedNetworkClientId` when responding to changes in NetworkController state to capture the currently selected chain rather than `providerConfig` ([#4305](https://github.com/MetaMask/core/pull/4305))
- This should be functionally equivalent, but is being noted anyway.
- NftDetectionController now makes use of `selectedNetworkClientId` when responding to changes in NetworkController state to capture the currently selected chain rather than `providerConfig` ([#4307](https://github.com/MetaMask/core/pull/4307))
- This should be functionally equivalent, but is being noted anyway.
- TokenRatesController now makes use of `selectedNetworkClientId` when responding to changes in NetworkController state to capture the currently selected chain rather than `providerConfig` ([#4317](https://github.com/MetaMask/core/pull/4317))
- This should be functionally equivalent, but is being noted anyway.
- AssetsContractController now makes use of `selectedNetworkClientId` when responding to changes in NetworkController state to capture the currently selected chain rather than `providerConfig` ([#4315](https://github.com/MetaMask/core/pull/4315))
- This should be functionally equivalent, but is being noted anyway.

## [30.0.0]

### Added

- Adds a new field `marketData` to the state of `TokenRatesController` ([#4206](https://github.com/MetaMask/core/pull/4206))
- Adds a new `RatesController` to manage prices for non-EVM blockchains ([#4242](https://github.com/MetaMask/core/pull/4242))

### Changed

- **BREAKING:** Changed price and token API endpoints from `*.metafi.codefi.network` to `*.api.cx.metamask.io` ([#4301](https://github.com/MetaMask/core/pull/4301))
- When fetching token list for Linea Mainnet, use `occurrenceFloor` parameter of 1 instead of 3, and filter tokens to those with a `lineaTeam` aggregator or more than 3 aggregators ([#4253](https://github.com/MetaMask/core/pull/4253))
- **BREAKING:** The NftController messenger must now allow the `NetworkController:getNetworkClientById` action ([#4305](https://github.com/MetaMask/core/pull/4305))
- **BREAKING:** Bump dependency and peer dependency `@metamask/network-controller` to `^18.1.2` ([#4332](https://github.com/MetaMask/core/pull/4332))
- Bump `@metamask/keyring-api` to `^6.1.1` ([#4262](https://github.com/MetaMask/core/pull/4262))

### Removed

- **BREAKING:** Removed `contractExchangeRates` and `contractExchangeRatesByChainId` from the state of `TokenRatesController` ([#4206](https://github.com/MetaMask/core/pull/4206))

### Fixed

- Only update NFT state when metadata actually changes ([#4143](https://github.com/MetaMask/core/pull/4143))

## [29.0.0]

### Added
Expand Down Expand Up @@ -785,7 +799,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Use Ethers for AssetsContractController ([#845](https://github.com/MetaMask/core/pull/845))

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@29.0.0...HEAD
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@30.0.0...HEAD
[30.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@29.0.0...@metamask/assets-controllers@30.0.0
[29.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@28.0.0...@metamask/assets-controllers@29.0.0
[28.0.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@27.2.0...@metamask/assets-controllers@28.0.0
[27.2.0]: https://github.com/MetaMask/core/compare/@metamask/assets-controllers@27.1.0...@metamask/assets-controllers@27.2.0
Expand Down
4 changes: 2 additions & 2 deletions packages/assets-controllers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/assets-controllers",
"version": "29.0.0",
"version": "30.0.0",
"description": "Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs)",
"keywords": [
"MetaMask",
Expand Down Expand Up @@ -51,7 +51,7 @@
"@metamask/approval-controller": "^6.0.2",
"@metamask/base-controller": "^5.0.2",
"@metamask/contract-metadata": "^2.4.0",
"@metamask/controller-utils": "^9.1.0",
"@metamask/controller-utils": "^10.0.0",
"@metamask/eth-query": "^4.0.0",
"@metamask/keyring-controller": "^16.0.0",
"@metamask/metamask-eth-abis": "^3.1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class AccountTrackerController extends StaticIntervalPollingControllerV1<
/**
* Name of this controller used during composition
*/
override name = 'AccountTrackerController';
override name = 'AccountTrackerController' as const;

private readonly getIdentities: () => PreferencesState['identities'];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class AssetsContractController extends BaseControllerV1<
/**
* Name of this controller used during composition
*/
override name = 'AssetsContractController';
override name = 'AssetsContractController' as const;

private readonly getNetworkClientById: NetworkController['getNetworkClientById'];

Expand Down
Loading

0 comments on commit cbddd6b

Please sign in to comment.