@web3-name-sdk/snap

0.0.5 • Public • Published

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.

/@web3-name-sdk/snap/

    Package Sidebar

    Install

    npm i @web3-name-sdk/snap

    Weekly Downloads

    14

    Version

    0.0.5

    License

    (MIT-0 OR Apache-2.0)

    Unpacked Size

    418 kB

    Total Files

    5

    Last publish

    Collaborators

    • ming_space
    • yangy888