core
core copied to clipboard
This monorepo is a collection of packages used across multiple MetaMask clients
## Remaining work - [ ] ~Look into why some tests involving `bn.js` aren't working (see https://github.com/MetaMask/controllers/pull/831/files#r898282054)~ not necessary ## Completed work - [x] Create monorepo file structure by moving...
**PR Title** - Add addressType flag in the address book controller **Description** - CHANGED: - AddressBook Controller is changed - ADDED: - Added a new addressType property inside address book...
Cleans up `CurrencyRateController` test suite which has been intermittently failing quite frequently in CI: 
- FIXED: - **BREAKING**: Modify `getDetails` method in `ERC20Standard` class to return decimal strings rather than BigNumbers for the fields `decimals` and `balance` in the return object. Public controller methods...
Replaces `[email protected]` with `@metamask/[email protected]`. ~This prevents some messages that appear to have been previously accepted from being signed, so this ought to be a breaking change.~
**PR Title** - A brief description of changes. If the PR has breaking changes add `BREAKING:` to the start of the PR title. **Description** _Itemize the changes you have made...
Many controllers initialize with the `chainId` or `networkType` set to `1` or `MAINNET` respectively, because that is the default network. The configuration gets updated whenever the network state changes, but...
We currently store the chain ID in different formats throughout MetaMask products and libraries. It can be a number, a decimal string,a `0x`-prefixed hexadecimal string, or a non-prefixed hexadecimal string....
The TypeScript flag `exactOptionalPropertyTypes` has been enabled, which causes TypeScript to distinguish between object properties that don't exist and properties that are set to `undefined`. This improves type safety for...
- ADDED: - WIP (Will add tests if/when we decide to move forward) **Checklist** - [ ] Tests are included if applicable - [ ] Any added code is fully...