degueba / PressingGame

PressingGame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pressing Game | OneOf

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.

How to Start

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

Simple Fluxogram

[] https://whimsical.com/pressinggame-oneof-DpCdaauWo78XtRceBuYS8w

File Structure

About

PressingGame

License:MIT License


Languages

Language:Solidity 45.7%Language:JavaScript 27.4%Language:TypeScript 13.3%Language:HTML 8.1%Language:SCSS 3.9%Language:CSS 1.3%Language:Shell 0.2%