A Simple Web3 based rewards system for final semester project.
this branch was a precursor to the current ERC20[https://github.com/titanventura/rewards-system-web3/tree/erc20] implementation.
- Install Ganache (A development blockchain).
- Install truffle
npm install truffle -g. - Issue
truffle migrate --resetto deploy the smart contracts to Ganache. - add truffle project on ganache for it to recognize contracts. Contracts -> add project -> select truffle-config.js file.
pip install web3to install web3.py library.python app.pyto run the basic test.
- Docker setup of Ganache or Geth (Go Ethereum Client).
- Implementing list balances API.
- Integrating with final year project web system.
- Moving BlockChain parameters into secrets file (or) accessing all those params from Database of the web app.
- add
require(msg.sender == webAppController, "Invalid access")to contract functions to ensure SC (Smart Contract) access.