Skip to content

consensus-collective/ballot-app

Repository files navigation

Ballot App

Contract Address: 0x003343f128839fe6253Ab3E15265aA60E8114DeF

Transaction details

Details: here

Scripts

  • giveRight [--network] [--name] [--voter] [--path]

    • network: network alias from hardhat.config.ts

    • name: custom contract name for hre.deployments.get(). We input Ballot2 here for our improved version. default: Ballot

    • voter: list of addresses. e.g. $ npx hardhat giveRight --network sepolia $RANDOM_ADDRESS1 $RANDOM_ADDRESS2

    • path: file path of JSON file.

      e.g. npx hardhat giveRight --network sepolia --name Ballot2 --path constants/address.json

  • vote --contract <CONTRACT_ADDRESS> --signer <SIGNER> --proposal <PROPOSAL_ID>

  • votingStatus --contract <CONTRACT_ADDRESS>

  • winning-proposal --contract <CONTRACT_ADDRESS>

  • demo of all scripts: here

Unit testing

Improvements

All improvement will be implemented at Ballot2.sol

Details: here

About

Homework 2 for Group 6

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •