Este proyecto se construyó para presentar en el Celo Solidity Dev Program. Fue creado por Martín Bogado y Federico Rascón en junio de 2022.
Es un HabitTracker basado en Beeminder pero respaldado por la seguridad y transparencia de los contratos inteligentes.
La idea es generar un incentivo economico propio para que el usuario este mas motivado a adquirir nuevos habitos. El usuario tiene la garantia que si cumple los habitos en tiempo y forma recibira su dinero otra vez junto con un premio 🎁
Muchas gracias a Plazti 💚 y a Celo Foundation que hicieron todo esto posible
A starter pack to get started with building dapps on Celo.
You can view a live version of the template deployed at https://celo-progressive-dapp-starter.netlify.app/.
This repo is heavily inspired by scaffold-eth.
Prerequisites:
- Node (v12), NVM
- Yarn
- Git
git clone https://github.com/celo-org/celo-progressive-dapp-startercd celo-progressive-dapp-starter
nvm use # uses node v12 as specified in .nvmrccd packages/hardhat
yarn install
npx hardhat create-account # prints a private key + accountPaste the private key in packages/hardhat/.env and fund the account from the faucet here. Once the account is funded, deploy the contracts with:
yarn deployRead more details about the hardhat package here.
In another terminal, start the frontend (React app using Next.js)
cd packages/react-app
yarn install
yarn dev- Get the Alfajores Testnet mobile wallet for Android and iOS here.
- Serve your React app to your mobile device for testing via a tunnel.
Next.js defaults to serving your app on port 3000, so point the tunnel there:
npx localtunnel --port 3000Read more about localtunnel here.
- Edit smart contracts in
packages/hardhat/contracts. - Edit deployment scripts in
packages/hardhat/deploy. - Edit frontend in
packages/react-app/pages/index.tsx. - Open http://localhost:3000 to see the app.
You can run yarn deploy --reset to force re-deploy your contracts to your local development chain.
This repo comes with a netlify.toml file that makes it easy to deploy your front end using Netlify. The toml file contains instructions for Netlify to build and serve the site, so all you need to do is create an account and connect your GitHub repo to Netlify.
You can import account account keys for the local development chain into Metamask. To print the private keys of the local chain accounts cd /packages/hardhat and run
npx hardhat devchain-keysIf you are working on a local development blockchain, you may see errors about the tx doesn't have the correct nonce. This is because wallets often cache the account nonce to reduce the number of RPC calls and can get out of sync when you restart your development chain. You can reset the account nonce in Metamask by going to Settings > Advanced > Reset Account. This will clear the tx history and force Metamask to query the appropriate nonce from your development chain.
Note: You can get a local copy of mainnet by forking with Ganache. Learn more about forking mainnet with Ganache here.



