snaps
snaps copied to clipboard
Extend the functionality of MetaMask using Snaps
Snaps that use WebAssembly (WASM) currently have two options for loading their WASM source at runtime: 1. Host it somewhere and fetch it at runtime (e.g. [here](https://github.com/0xPARC/cabal/blob/ebab0001cfdf7ebac8b44153e56e0c3dd3190deb/snap/src/snark_utils/generate_proof.js)) 2. Turn the...
Sometimes the errors thrown by superstruct are hard to understand because they don't include any details from the validation itself. We should review the error messages we throw and try...
`snaps-jest` v4 (current at the time of writing) has support for network mocking, but this will be removed in v5 due to limitations in the Node.js executor. We should consider...
Right now JSON-RPC mocking in the Jest testing framework only supports mocking based on the method name. There is no way to return a different return value for different params....
Bumps [@metamask/eslint-config](https://github.com/MetaMask/eslint-config) from 12.1.0 to 12.2.0. Release notes Sourced from @metamask/eslint-config's releases. 12.2.0 @metamask/eslint-config Changed Remove deprecated rule jsdoc/newline-after-description (#290) This means the plugin can now be used with eslint-plugin-jsdoc...
The SnapController test file has grown massive and seems to have a lot of redundant assertions and tests. We should try and clean some of those out.
Pending https://app.zenhub.com/workspaces/snaps-615b3a7c08d2b20015eb6c4e/issues/gh/metamask/snaps/1820
### Description while implementing [the snaps controllers on mobile](https://github.com/MetaMask/metamask-mobile/pull/7942) we came across several instances where the type checker was failing for what seemed to be invalid reasons. Some of this...