core
core copied to clipboard
This monorepo is a collection of packages used across multiple MetaMask clients
## Explanation ## References ## Changelog ### `@metamask/package-a` - ****: Your change here - ****: Your change here ### `@metamask/package-b` - ****: Your change here - ****: Your change here...
## Explanation Add support for `readable-stream` v4 while not breaking v3. ## References ## Changelog ### `@metamask/json-rpc-middleware-stream` - **CHANGED**: Package now supports `readable-stream` v4 as well as v3. ## Checklist...
Currently, when `tsup` transpiles code in CommonJS format, it assembles common code into "chunk" files. These files make life difficult for the extension team when they want to debug behavior...
It is easy for the TypeScript files to be misconfigured due to requirements that aren't obvious. At the project level, the following should hold true: * In `tsconfig.json`, `references` should...
Creating release PRs is complex and difficult: - There is always a risk that a change to a package is not captured in the changelog, but the risk is greater...
## Explanation ## References ## Changelog ### `@metamask/package-a` - ****: Your change here - ****: Your change here ### `@metamask/package-b` - ****: Your change here - ****: Your change here...
## Problem Currently, when an instance of [SafeEventEmitterProvider](https://github.com/MetaMask/core/blob/968d6d14b96820d5766e5b73d4a3e6b2bd35ce60/packages/eth-json-rpc-provider/src/safe-event-emitter-provider.ts) is passed to the `Web3Provider` constructor from Ethers v5 or the `BrowserProvider` constructor from Ethers v6, it produces a type error. `Web3Provider`...
## Explanation Remove all global network usage from the signature controller to support multi-chain in the clients. Specifically: - Remove `getCurrentChainId` constructor callback from `SignatureController`. - Determine `chainId` using `networkClientId`...
## Explanation See diff. ## References None — just something I noticed while re-reading over the guidelines. ## Changelog N/A ## Checklist - [x] I've updated the test suite for...
## Explanation - Extend types to indicate support for passing in bn.js v4 instances to BN.js utility functions - Affected functions: - `BNToHex` - `fractionBN` - `fromHex` - `toHex` -...