eulith-metamask-snap
v0.2.1
Published
A MetaMask snap to apply Eulith's security policy to transaction requests
Downloads
9
Readme
Development
To install the snap:
- Disable any existing MetaMask browser extension.
- Install the MetaMask Flask extension for development.
- Run
yarn install && yarn start
in this repo. - Start a local instance of Eulith backend services.
- Start a local instance of the Eulith frontend.
- Open http://localhost:3000/metamask and click 'Install'.
To update the snap after a code change:
- Uninstall the snap from inside MetaMask Flask.
- Repeat installation steps above.
To view console logs:
- Go to about://extensions in Chrome.
- Make sure "Developer mode" is toggled in the top right.
- Click on "MetaMask Flask > Details".
- Click on "background.html" under "Inspect views".
To publish the snap to NPM:
npm publish
To run tests (tests may not work if a server is already running):
yarn test
To run linter:
yarn lint
Docs
- Tutorial: https://docs.metamask.io/snaps/get-started/quickstart/
- Snap UI: https://docs.metamask.io/snaps/how-to/use-custom-ui/
- Snap JSON-RPC API: https://docs.metamask.io/snaps/reference/rpc-api/
- Snap exports (including
onTransaction
): https://docs.metamask.io/snaps/reference/exports/