Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

piotr-roslaniec/ethwarsaw-2022

Repository files navigation

ethwarsaw-2022

Aleph Zero Snap

Project Logo

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.

Project Structure

The project is structured as follows:

  • azero-snap - Contains implementation of the wallet "backend"
  • azero-snap/packages/snap - The actual snap implementation
  • azero-snap/packages/snap-adapter - User-facing API for the snap
  • polkadot-apps - Contains implementation of the wallet "frontend". This yarn workspace is the fork of the azero.dev wallet

Usage

To install, run:

yarn install

To run the snap, run:

yarn build

To run wallet locally (in development mode), run:

yarn start

Installing MetaMask Flask

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