Skip to content

A Simple Web3 based rewards system for final semester project.

Notifications You must be signed in to change notification settings

titanventura/rewards-system-web3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rewards-system-web3

A Simple Web3 based rewards system for final semester project.

ERC 20 standard implementation

this branch was a precursor to the current ERC20[https://github.com/titanventura/rewards-system-web3/tree/erc20] implementation.

local setup

  • Install Ganache (A development blockchain).
  • Install truffle npm install truffle -g.
  • Issue truffle migrate --reset to 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 web3 to install web3.py library.
  • python app.py to run the basic test.

To be done

  • 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.

About

A Simple Web3 based rewards system for final semester project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published