The Pressing game is a decentralized application in which users compete against one another by pressing buttons that trigger powerful smart contracts. To participate, you will have to put down a small deposit that will be collected to pay the final winner, and each participant will get the chance to press the undisputable "PRESS BUTTON". If you're lucky, there will be no other users pressing the button after you, and you will start counting! If 3 blocks have passed and you are still the last person, that means you have won. You will now see a green button "Claim your treasure" that allows you to claim your prize.
1 step - yarn
or yarn build
| Install dependencies
2 step - yarn deploy:contract
| Deploy Contracts and Export Contract Address (VITE_CONTRACT_ADDRESS) to env.file
3 step - yarn test
| Test the smart contracts
4 step - yarn start
| Start the dev environment with Vite and ReactTS
5 step - yarn block
| Generate a new block in Ganache
[] https://whimsical.com/pressinggame-oneof-DpCdaauWo78XtRceBuYS8w
- oneof\pressingGame
- contracts
- PressingGame.sol
- libraries
- scripts
- utils
- hardhat.config.js
- index.html
- package.json
- src
- App.scss
- App.tsx
- abis
- config
- favicon.svg
- fonts
- index.css
- logo.svg
- main.tsx
- styles
- vite-env.d.ts
- test
- .env
- tsconfig.json
- tsconfig.node.json
- vite.config.ts
- yarn.lock
- contracts