Skip to content

EncodeTeam2/week4project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fullstack Voting dApp

Creating a Fullstack Voting dApp application that has three layers:

1. Smart contract

  • 🪙 ERC20 Voting Token: Represents the voting power and its movements.
  • 🗳️ Ballot: Represents a Ballot where you can use your voting power up to certain block.

2. Backend

Provides multiple endpoints:

  • Request contract address
  • Request total supply
  • Request allowance
  • Request transaction by hash
  • Request voting tokens
  • List recent votes

Go to Backend README for more information

3. Frontend

Currently, the frontend is a simple web page that allows you to:

  • See the current block number
  • Create a random wallet
  • Mint Tokens for a hardcoded wallet based on the amount in the field
    • Also self delegates the tokens after the minting
  • Vote for a hardcoded proposal
  • And get the winning proposal name

This will be updated in the future to make use of different browser wallets and not have hardcoded values.

Go to Frontend README for more information

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published