Skip to content

Decentralized election aplication built on Ethereum blockchain

Notifications You must be signed in to change notification settings

Marabunta12/election-dapp-graph

Repository files navigation

Decentralized election aplication built on Ethereum blockchain

This project is an Ethereum-based application which allows to hold an election. Smart contract is written in Solidity, front-end is built with Next.js framework and uses The Graph to read data from the blockchain. Here are the main features of this app:

  • The contract sets deployer as an election admin.
  • Election admin control election process. He can add voters, candidates, start and stop election.
  • Only authorised voters have right to vote.
  • Election admin control when election is open.

This Dapp goal is to allow some centralized entity to hold en election with easily verifiable results. Thanks to blockchain technology any attems of fraud are impossible.

This repository contains subgraph code. For front-end and smart contract code see links below

Getting Started

1. Create subgraph via Subgraph Studio. Follow instructions from The Graph documentation

2. After you initialize your subgraph update schema.graphql and election.ts files so they are same as those in this repository

3. In subgraph.yaml update startBlock e.g. 1 block before contract creation

4. Then you can deploy your subgraph

License

MIT

About

Decentralized election aplication built on Ethereum blockchain

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published