This repo contains the smart contract for the POINT Token System. The POINT Token System is a multi-tenant, decentralized loyalty and rewards system that runs on the Ethereum Blockchain.
To learn more about the POINT Token System, go to http://www.pointtoken.io. The website has a white paper which thoroughly outlines how the system works.
If all you want to do is read the contract, there is no installation required; just go to contracts\PointToken.sol.
If you want to run the contract locally or run the tests, you need to install Truffle:
npm install -g truffleYou also need to install testrpc for running the tests:
npm install -g ethereumjs-testrpcLastly, you need to do an npm install on the repo itself:
npm installThe contract itself relies on the inheritance feature of Solidity to pull in several other Solidity files, all from the Open Zeppelin project. You can read these files by drilling into the node_modules\zeppelin-solidity directory. For understanding the logic of the POINT Token code itself, see the POINT Token white paper.
To run the unit tests on the contract, run
truffle testMake sure that testrpc is running before you run the tests.