Skip to content
A smart contract based application for health
CSS JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
components
ethereum
pages
server/mocks
static
styles
test
truffle/test
.editorconfig
.gitignore
.nvmrc
Readme.md
next.config.js
package.json
routes.js
server.js
yarn.lock

Readme.md

HealthyCoin

Ethereum based smart contract application implementing a health based reward system. WIP

How to build

  yarn # or yarn install
  yarn compile
  yarn dev

yarn compile compiles the smart contract and yields an json version ready to use with web3 in ethereum/build

How to use

In order to use the application, you must deploy the contract in your favourite ethereum network and you have to have an account in that to be able to make a deployment (that is trivial using truffle with ganache).

Once deployed, the deploying account will have 'Owner' role, and you will be able to add more accounts and play around with the application and the contract.

Contract model

The contract class diagram is as follows. You can check the implemented roles (which are Owner, Admin, Doctor and Patient sorted by granted privileges).

Class diagram

You can’t perform that action at this time.