Goal of this code quest is to create a simple web wallet that allows users to use Circles with MetaMask.
You will need to have the following installed:
- MetaMask browser extension
- Node.js and npm
- A Svelte plug-in for your editor
Further you will need to have some xDAI in your MetaMask wallet. You can get some xDAI from the Gnosis Chain Faucet.
If you have issues with the faucet you can add your address in this pad: https://pad.riseup.net/p/qIjqGoMHAaNg5wGYAtEB
The repository contains different branches that can be individually checked out to see the progress of the code quest.
- create-ui-mockup
Contains all required UI components and some CSS - add-and-initialize-circles-sdk (Diff)
Adds the @circles-sdk to the project and initializes it - register-at-circles (Diff)
Adds logic to registers a person at Circles - show-balance (Diff)
Adds logic to show the balance of a Circles account - show-transaction-history (Diff)
Adds logic to show the transaction history of a Circles account - mint-personal-tokens (Diff)
Adds logic to mint personal tokens - show-and-add-trust (Diff)
Adds logic to show, add and remove trust relations - calculate-max-amount-and-transfer (Diff)
Adds calls to the pathfinder to determine the max. transferable amount and to transfer tokens
After you checked out a branch, install the dependencies with npm install
and start the development server
with npm run dev
.