horus-snap
v0.1.3
Published
Horus's mission is to build an AI-based auditing snap in metamask snap for user to know about the contract, to make pre-judgments and scoring a user-friendly score for the contract before their transaction.Our team found that users often lack some effecti
Downloads
5
Readme
TypeScript Example Snap
This snap demonstrates how to develop a snap with TypeScript. It is a simple
snap that displays a confirmation dialog when the hello
JSON-RPC method is
called.
Testing
The snap comes with some basic tests, to demonstrate how to write tests for
snaps. To test the snap, run yarn test
in this directory. This will use
@metamask/snaps-jest
to run the tests in src/index.test.ts
.
Notes
- Babel is used for transpiling TypeScript to JavaScript, so when building with
the CLI,
transpilationMode
must be set tolocalOnly
(default) orlocalAndDeps
.