@polkagate/snap 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/bundle.js +2 -0
- package/dist/bundle.js.map +1 -0
- package/images/gas.svg +1 -0
- package/images/icon.svg +1 -0
- package/images/polkagate.svg +1 -0
- package/package.json +76 -0
- package/snap.manifest.json +35 -0
package/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# TypeScript Example Snap
|
|
2
|
+
|
|
3
|
+
This snap demonstrates how to develop a snap with TypeScript. It is a simple
|
|
4
|
+
snap that displays a confirmation dialog when the `hello` JSON-RPC method is
|
|
5
|
+
called.
|
|
6
|
+
|
|
7
|
+
## Testing
|
|
8
|
+
|
|
9
|
+
The snap comes with some basic tests, to demonstrate how to write tests for
|
|
10
|
+
snaps. To test the snap, run `yarn test` in this directory. This will use
|
|
11
|
+
[`@metamask/snaps-jest`](https://github.com/MetaMask/snaps/tree/main/packages/snaps-jest)
|
|
12
|
+
to run the tests in `src/index.test.ts`.
|