The Rightshare package comprises the following tools. Please feel free to use them (in any combination) to deploy your own Rightshare ecosystem.
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.
Nodejs implementation for user interface to interact with the smart contracts.
A base template of the user interface.
A server implementation on Google Cloud (Python)
An API server implementation on Google Cloud (Python) to create an image based on on-chain metadata
Technical Documentation on how to use the Javascript library and UI template
-
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