utils
utils copied to clipboard
Various JavaScript / TypeScript utilities of wide relevance to the MetaMask codebase.
The type for the keyring `deserialize` and `serialize` methods wrongly state that the full keyring state is expected. The deserialize method should accept the _serialized_ state, which is not the...
We've added opaque types in MetaMask/snaps-monorepo#961. Those types are not testable using normal jest, but we can use tsd to write tests for types like we do in https://github.com/MetaMask/utils/blob/main/src/json.test-d.ts. We...
This PR adds the `Type extends string` generic type parameter to `Keyring`, making it `Keyring`. This will help to infer types coming from builders in `KeyringController`. In that regard, this...
Adding a new known CAIP namespace for Bitcoin. You can find a proper BIP-122 CAIP 2 identifier here: - https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-2.md#test-cases We could also update the for `KnownCaipNamespaces` to match those...
- Remove support for EoL Node.js versions 16, 21 - Align version of `@types/node` - ci: Update default Node version from v16 to v18 - ci: Only run lint on...
`.nvmrc` does not match the same file in the `metamask-module-template` repository.
`tsconfig.json` does not match the same file in the `metamask-module-template` repository.
`jest.config.js` does not match the same file in the `metamask-module-template` repository.
`README.md` should contain "Install the current LTS version of [Node.js](https://nodejs.org/)", but does not.