core
core copied to clipboard
This monorepo is a collection of packages used across multiple MetaMask clients
Targeting #4359
## Explanation Fixes for network-controller and transaction-controller targeting evaluation in extension, backported to target v159. ## References ## Changelog ### `@metamask/package-a` - ****: Your change here - ****: Your change...
The `nock` library is not compatible with the fake timers we use in unit tests because it uses the Node.js `timers` API. This API is not mocked correctly by the...
## Explanation Bump `@metamask/eth-block-tracker` to latest version. ## References ### Blocked by - [ ] #4327 - [ ] https://github.com/MetaMask/eth-json-rpc-middleware/pull/314 - [ ] https://github.com/MetaMask/eth-json-rpc-middleware/pull/313 - [ ] https://github.com/MetaMask/eth-json-rpc-middleware/pull/312 ## Changelog...
## Explanation Updates `@metamask/nonce-tracker` to remove need for `@ts-expect-error` around the `blockTracker` type. ~Also updates `transaction-controller` tests to reset providers and block trackers between each test.~ - The tests _should_...
> [!NOTE] > This PR is a commandeer of @matthewwalsh0's https://github.com/MetaMask/core/pull/4004. > > This PR has been **deprioritized**. We are coordinating with the multichain team to figure out the best...
There are several packages in this repo that do not have 100% test coverage. In fact we've explicitly set coverage thresholds to match the true coverage today. This makes sense...
The TokenRatesController state which is mapping of token address and exchange rate used to be managed with `ContractExchangeRates` type. But recently, it's completely modified and new `ContractMarketData` has been added...
```ts '@typescript-eslint/prefer-enum-initializers': 'error', '@typescript-eslint/prefer-nullish-coalescing': 'warn', '@typescript-eslint/prefer-optional-chain': 'warn', '@typescript-eslint/prefer-reduce-type-parameter': 'warn', ``` In future PRs, enabling the 'prefer' rules should remove the need for some style guide entries (TODO: link entries)