Skip to content

Arin100/Voting-system-based-on-Blockchain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Voting-system-based-on-Blockchain

Matrix Chat Gitter Chat Solidity Forum Twitter Follow Mastodon Follow

Requirments:

  1. Ganache truffle
  2. Ethereum Remix IDE

Blockchain is growing rapidly and being a secure network, the voting in democracy can
be shifted to these network so that the results cannot be tampered or manipulated.

REMIX EXAMPLE PROJECT

Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer. It contains 3 directories:

  1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
  2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
  3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.

SCRIPTS

The 'scripts' folder contains example async/await scripts for deploying the 'Storage' contract. For the deployment of any other contract, 'contractName' and 'constructorArgs' should be updated (along with other code if required). Scripts have full access to the web3.js and ethers.js libraries.

To run a script, right click on file name in the file explorer and click 'Run'. Remember, Solidity file must already be compiled.

Output from script will appear in remix terminal.