This repository contains the CacheGold contract; an ERC20 compatible token in which 1 token represents 1 gram of pure physical gold. A full description can be found in the token documentation.
A copy of our contract audit can be found here.
With node v8 or higher installed..
npm install
Truffle is installed by default to ./node_modules/.bin/truffle
, but it can also be installed globally
npm uninstall -g truffle
npm install -g truffle
We are using the latest 5.x version (Currently 5.0.24)
ganache
: Is used to run a local version of the ethereum blockchain for dev testing. You can download a release here
truffle compile
# or
npm run compile
truffle test
# or
npm run test
npm run deploy-dev
Need to fill in variables in .env
npm run deploy-ropsten
truffle network
npm run coverage
Spits out a report to the ./coverage
which can be served as a static site