This repository contains a submission for EthWarsaw 2022 hackathon.
It contains an implementation of a wallet compatible with Aleph Zero protocol. The wallet is implemented using the polkadot.js library and MetaMask snaps plugin system.
Very short presentation.
The project is structured as follows:
azero-snap
- Contains implementation of the wallet "backend"azero-snap/packages/snap
- The actual snap implementationazero-snap/packages/snap-adapter
- User-facing API for the snappolkadot-apps
- Contains implementation of the wallet "frontend". This yarn workspace is the fork of theazero.dev
wallet
To install, run:
yarn install
To run the snap, run:
yarn build
To run wallet locally (in development mode), run:
yarn start
In order to use snaps, we need to install MetaMask Flask extension:
- Checkout MetaMask extension that support MetaMask Flask: We're currently using tag
v10.14.0-flask.0
- Copy the .metamaskrc.dist file to .metamaskrc
- Replace the INFURA_PROJECT_ID value with your own personal Infura Project ID.
- Build the extension locally:
yarn setup && yarn dist --build-type flask
- Load the unpacked extension (see "custom build" instructions) from here