DataGen is a new cryptocurrency used to settle all the payments in the ecosystem. Initially it will be an BEP-20 token deployed on BSC mainnet and later bridged to our native blockchain for in chain payments.
You could 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 https://github.com/Datagen-Project/DataGen-Smart-Contracts
# Go into the repository
$ cd DataGen-Smart-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.
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 test/Datagen.test.js
Note:
- Many contracts have a comment section you must read to test them in the correct way.
- 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.
Check the API documentation for more info on the code.
The code in this project is licensed under GNU general Public License v3.0.