Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions eslint-warning-thresholds.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
},
"packages/assets-controllers/src/TokenRatesController.ts": {
"@typescript-eslint/prefer-readonly": 1,
"jsdoc/check-tag-names": 11
"jsdoc/check-tag-names": 9
},
"packages/assets-controllers/src/TokensController.test.ts": {
"import-x/namespace": 1,
Expand All @@ -80,7 +80,7 @@
"@typescript-eslint/prefer-promise-reject-errors": 2
},
"packages/assets-controllers/src/token-prices-service/codefi-v2.ts": {
"jsdoc/tag-lines": 2
"jsdoc/tag-lines": 1
},
"packages/base-controller/src/BaseController.test.ts": {
"import-x/namespace": 13
Expand Down
8 changes: 8 additions & 0 deletions packages/assets-controllers/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- **BREAKING:** Removed exported `SUPPORTED_CHAIN_IDS` from `codefi-v2.ts` ([#7005](https://github.com/MetaMask/core/pull/7005))
- **BREAKING:** Added `supportedChainIds` argument in `fetchTokenContractExchangeRates` ([#7005](https://github.com/MetaMask/core/pull/7005))
- Removed `validateChainIdSupported` from `codefi-v2.ts` ([#7005](https://github.com/MetaMask/core/pull/7005))
- Added `fetchSupportedChainIds` in `codefi-v2.ts` ([#7005](https://github.com/MetaMask/core/pull/7005))

## [87.0.0]

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

- **BREAKING:** Added constructor argument `tokenPricesService` in `currencyRateController` ([#6863](https://github.com/MetaMask/core/pull/6863))
- **BREAKING:** Added supportedChainIds argument in `fetchTokenContractExchangeRates` util function ([#6863](https://github.com/MetaMask/core/pull/6863))
- Added `fetchExchangeRates` function to fetch exchange rates from price-api ([#6863](https://github.com/MetaMask/core/pull/6863))
- Added `ignoreAssets` to allow ignoring assets for non-EVM chains ([#6981](https://github.com/MetaMask/core/pull/6981))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
type MessengerEvents,
type MockAnyNamespace,
} from '@metamask/messenger';
import type { Hex } from '@metamask/utils';
import nock from 'nock';
import { useFakeTimers } from 'sinon';

Expand Down Expand Up @@ -49,8 +48,8 @@ function buildMockTokenPricesService(
async fetchExchangeRates() {
return {};
},
validateChainIdSupported(_chainId: unknown): _chainId is Hex {
return true;
async fetchSupportedChainIds() {
return [];
},
validateCurrencySupported(_currency: unknown): _currency is string {
return true;
Expand Down
Loading
Loading