https://github.com/protofire/platzi-web3-libs
Platzi Web3 libraries Exercise
https://github.com/protofire/platzi-web3-libs
Last synced: 2 months ago
JSON representation
Platzi Web3 libraries Exercise
- Host: GitHub
- URL: https://github.com/protofire/platzi-web3-libs
- Owner: protofire
- License: mit
- Created: 2022-08-30T19:05:25.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-06T09:50:49.000Z (over 3 years ago)
- Last Synced: 2025-09-01T09:25:28.735Z (10 months ago)
- Size: 228 KB
- Stars: 6
- Watchers: 5
- Forks: 29
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Platzi Web3 Exercise
## Goal
Create a DApp that allows people to vote on a (binary) proposal. Each ethereum address should be allowed to vote only once and the vote should cost 0.01 ETH.
When a user opens the page, it should see the result so far (number of positive votes vs. number of negative votes). Real-time updating is a bonus, but not required.
The app should consist only of a frontend. It should work in Görli and with MetaMask.
The contract is already deployed at `0xacfc7725527ba2ee4311574f65e5d76f9f9585e9`. You can see it [here](https://goerli.etherscan.io/address/0xacfc7725527ba2ee4311574f65e5d76f9f9585e9#code).
## Stack and tools
The only two requirements are:
1. Use React for the frontend
2. Use [web3.js](https://web3js.readthedocs.io/) and [ethers.js](https://docs.ethers.io/). The user should be able to switch between the two libraries and everything should work the same.
Everything else is up to you. We recommend using [web3-react](https://github.com/NoahZinsmeister/web3-react), but it's not required.
You can get Görli ether [here](https://faucet.paradigm.xyz/).