Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.35 KB

README.md

File metadata and controls

44 lines (28 loc) · 1.35 KB

Overview

A repository of VC smart contracts.

Getting started

You can clone the repository and try the smart contracts in your local machine, you need also to install truffle to interact with the code.

From your comand line:

# Clone this repository 
$ git clone gh repo clone https://github.com/Datagen-Project/VCSmart_Contracts.git

# Go into the repository
$ cd VCSmart_Contracts

# Install dependencies
$ npm install

# Install truffle 
$ npm install truffle -g

Download ganache to run a local blockchain on your machine, there is also a cli verison of ganache.

Testing

Run ganache and and start a local blockchain clicking on "Quickstart".

Now you could test the contracts, we suggest to test the contracts one by one.

From your comand line:

# e.g. if you want to test DataGen contract
$ truffle test VCTemplate.test.js

Note:

  • If there is a time manipulation of the blockchian in the test you need to restart the blockchain to get it pass every time you run a test, for this reason some tests need to be done one by one.

Licensing

The code in this project is licensed under GNU general Public License v3.0.