GithubHelp home page GithubHelp logo

vexy / voting_platform Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 1.0 7.4 MB

Smart-contract implementation of public polling station.

Home Page: https://infoportal.app

License: GNU Lesser General Public License v3.0

Solidity 6.68% Shell 0.08% TypeScript 93.24%
blockchain dapp ethereum smart-contracts solidity voting-system

voting_platform's People

Contributors

vexy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

veljko406

voting_platform's Issues

`VotingPlatform` contract

Make sure the contract can:

  • create new Poll
  • vote for specific poll option
  • provide other statistical features

Question details (voting) page

Simple screen containing:

  • title of the question
  • voting options (answers)
  • total number of voters

Marking desired answer and clicking Vote button, user will be prompted to sign and verify transaction.

Later on, Report button should be added.

Metamask tests

Perform Metamask method execution on:

  • local node
  • Mumbai Polygon test-net

Question preview page

Question can be previewed in separate page.

Page elements should contain:

  • question title
  • voting options
  • extras options

`smart-contract` features

Platform contract features:

  • adding new questions
  • editing question metadata
  • voting for specific poll option
  • enables question reporting or restructuring
  • prevents "double-voting"
  • provides various stats on poll outcome

Combined in:

UI interface:

  • performed in #4

Quick "report" button

Add "report" button in the main list of questions.

Make sure user is actually allowed to report (check for prior actions).

`ERC20` voting token

Develop ERC20 based voting token, spendable on the (#3).

Basic functionality includes:

  • minting the token from the platform
  • spending tokens on:
    • creating new polls
    • vote on existing polls

See more about ERC20 @ OpenZeppelin

Settings page

Settings page to help with modifying network properties

Add new poll page

Elements and functionality:

  • textbox to enter question title
  • up to 5 possible answers
  • save button

Upon completing form, user will be prompted to sign the transaction and verify the costs.

Simple question contract

Create simple Question contract, providing following features:

  • add question name
  • add question options (up to 5)
  • add basic description

Provide basic functionality for the contract caller.

Platform UI

Frontend (platform) should allow following features:

  • simple home/registration page (#21)
  • connect wallet (#6)
  • browse all polls (#12)
  • add new poll (#7)
  • vote on existing poll options (#8)

Questions searchbox

Users can search list of questions, by typing (part of) name of the question in a searchbox.

Searchbox is simple HTML input field.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.