- 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
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
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.tsNetwork: Goerli Testnet
Deployed Contract Address: 0x2B671F8EEc0e3416781b306271A84E3232Ec5ac1
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>"npx run ts-node --files scripts/<your-script>.ts <arguments-ifNoneLeaveBlank>
or
yarn run ts-node --files scripts/<your-script>.ts <arguments-ifNoneLeaveBlank>