Rightshare Smart Contracts. Refer https://rinkeby-rightshare.lendroid.com
The architecture comprises 4 main smart contracts:
- Right.sol
- FRight.sol
- IRight.sol
- RightsDao.sol
All the contracts in this repository have been written in Solidity v.5.11.
Please use Git commits according to this article: https://chris.beams.io/posts/git-commit
-
Clone this repository
git clone <repo>
-
cd into the cloned repo
cd Rightshare-contracts
-
Install dependencies via npm
npm install
-
Open new terminal, run ganache
ganache-cli
-
Open new terminal, activate the virtual environment
source ~/venv-rightshare/bin/activate
-
Compile using truffle
truffle compile
-
Run the tests
truffle test
Note: When the development / testing session ends, deactivate the virtualenv
(venv-rightshare) $ deactivate