0.2.0 • Published 2 years ago

snap-tama v0.2.0

Weekly downloads
-
License
(MIT-0 OR Apache-...
Repository
github
Last release
2 years ago

snap-tama

This will be updated in the AM namespace for development purposes until it is ready to be viewed on the new Pixelmon-minigames organization repo

This snap runs the core logic of Pixelmon's tamagotchi-like minigame.

This snap was based off of the standard metamask snap template. The snap runs within the Metamask browser environment, and will prompt the user to install it from the specified NPM package where it is published (TBC).

Run locally

yarn start - runs the app on the default port :8080 which the frontend interface will read from when run locally.

Known Errors

On the browser console, you might get this error after adjusting snap.manifest.json: RPC Error: Failed to fetch Snap "local:http://localhost:8080": Invalid Snap manifest: manifest shasum does not match computed shasum. Run yarn fix-shasum to reload the shasum.

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 to localOnly (default) or localAndDeps.
0.2.0

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago