Skip to content

sotatek-dev/mina-snap

Repository files navigation

Mina-Portal

MetaMask Snaps is a system that allows anyone to safely expand the capabilities of MetaMask. A snap is a program that we run in an isolated environment that can customize the wallet experience.

This snap helps you interact with Mina protocol using MetaMask

Snaps is pre-release software

To interact with (your) Snaps, you will need to install MetaMask. Note: To interact with the snap hosted on your local machine, you will neeed to install MetaMask Flask

Getting Started

You can run and test the snap by running these commands

yarn install && yarn start

Interact with mina-portal snap

Please check out the documentation in our wiki

Notes

  • To load o1js code in your UI, you must set the COOP and COEP headers. These headers enable o1js to use SharedArrayBuffer that o1js relies on to enable important WebAssembly (Wasm) features. Please checkout this link. In the local environment, create a setupProxy.js file inside packages/site/src. You can find the content of the file in the packages/site/src/setupProxy.example.js

  • Babel is used for transpiling TypeScript to JavaScript, so when building with the CLI, transpilationMode must be set to localOnly (default) or localAndDeps.

  • For the global wallet type to work, you have to add the following to your tsconfig.json:

    {
      "files": ["./node_modules/@metamask/snap-types/global.d.ts"]
    }

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT-0 licenses found

Licenses found

Apache-2.0
LICENSE.APACHE2
MIT-0
LICENSE.MIT0

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published