Skip to content

dvalentina/gold-token

Repository files navigation

Gold Token

This is a project developed to study ERC-20 tokens and the integration of front-end part of the application with web3 wallets and contracts.

Here is a demo of the application's interface:

interface gif

Frontend

Deploy

This project is deployed to GitHub Pages and available here:

https://dvalentina.github.io/gold-token/

Features

  • Connecting to a web3 wallet
  • Displaying information about the connected account and the ERC-20 token
  • Transfering, minting, and burning tokens (forms availability depends on the account's roles)
  • Admin page
  • Granting and revoking roles (from admin page)
  • Notification system
  • Responsive layout
  • Reusable components

Demo

Connecting a Metamask wallet

connect to metamask demo

Transfering tokens between accounts

View this demo's transaction on => Etherscan

transfer tokens demo

Granting the minter role

Granting took some time in this demo, please wait a bit! :​-​)
View this demo's transaction on => Etherscan

granting a role demo

Rejecting transaction

rejecting transaction demo

Responsive layout

responsive layout demo

Switching wrong network

switching wrong network demo

ERC-20 Token

Deploy

The GLDToken contract made for this project is deployed and verified at Goerli Testnet:

https://goerli.etherscan.io/address/0xF61E8fA20930EFcEa54D83CE9E5E5C7F2A66b1ee

Features

  • ERC-20 token contract using openzeppelin implementation
  • Minting/burning tokens functionality
  • Granting/revoking roles functionality

Tools & Technologies

  • React, create-react-app
  • React context, custom hooks
  • styled-components
  • CSS grid
  • hardhat
  • ethers
  • Goerli Testnet
  • openzeppelin

Sources

Logo I used

Görli Testnet Logo

Tutorials I followed

About

Training project (ERC-20 token, frontend interactions with token)

Resources

Stars

Watchers

Forks