Skip to content

arawal/Project2-Group2-EncodeSolidityBootcamp

Repository files navigation

Weekend Project

  • Form groups of 3 to 5 students
  • Develop and run scripts for “Ballot.sol” within your group to give voting rights, casting votes, delegating votes and querying results
  • Write a report with each function execution and the transaction hash, if successful, or the revert reason, if failed
  • Submit your code in a github repository in the form

Tasks

Karen: Write the GiveRightToVote.ts script Brent: Deploy the contract Lee: Write the QueryResults.ts script Ryan: Write the Delegate.ts script Akshar: Write the Vote.ts script TDD: Write tests for the edge cases of the contract

Sample Hardhat Project

This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.

Try running some of the following tasks:

npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.ts

Contract Details

Network: Goerli Testnet

Deployed Contract Address: 0x2B671F8EEc0e3416781b306271A84E3232Ec5ac1

Running the scripts

Delegate a vote to a new address

npx run ts-node --files scripts/Delegate.ts "<address of deployed contract>" "<address to delegate to>"
or
yarn run ts-node --files scripts/Delegate.ts "<address of deployed contract>" "<address to delegate to>"

Template for your own script

npx run ts-node --files scripts/<your-script>.ts <arguments-ifNoneLeaveBlank>
or
yarn run ts-node --files scripts/<your-script>.ts <arguments-ifNoneLeaveBlank>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors