This code base has NOT be reviewed by security experts and MUST therefore NOT be used, unless you are the security expert or l33t h4x0r.
Use NodeJS to run cli.js
from the dist
folder. You will need to [install dependencies](#Installation and dependencies).
Example:
cd dist
node cli.js list
- Should output
CONTRACTS OVERVIEW ...
(followed by deployed contracts if any)
- We'll need NodeJS and npm
- Install the Truffle framework globally
npm install -g truffle
- Download this codebase, and do a
npm install
in the folder
There are two packages in this repo: The Truffle setup with unit tests, and the cli tool.
They have slightly different
TypeScript configurations - note the two tsconfig.json
in src/
and ethereum/
.
Be sure to have the following programs installed and added to your PATH
variable
- NodeJS, our runtime, - comes with NPM, the package manager used to download project dependencies
- Git, used to download some dependencies
- Python, used to build some dependencies
Test them by opening Cmd or Power Shell, then try printing the versions (newer versions are OK):
node -v
should output v8.0.0
npm -v
should output 5.6.0
git --version
should output git version 2.19.1.windows.1
python --version
should output Python 2.7.15
Before setting up project dependencies with npm install
, install the windows-build-tools
globally.
This will require administrator privilege.
npm install --global --production windows-build-tools
Now try running npm install
in the project folder.