These are the contracts for Razor network.
You'll need npm to install the required packages. To install npm , go to this link
For Windows/Linux, Visit here
For Mac, use brew install jq or for the most recent version use brew install --HEAD jq. Visit this for more info.
- Run Ganache CLI/GUI (You can modify port in
hardhat.config.js) - Provide provider host & port in
.env.ganache - Run command
deploy:ganache
- Create
.env.goerlifile (Refs -.env.tpl), providemnemonic&providerfor deployment. - Run command
deploy:goerli
- Run
npm run deploy:goerli cd ../cli && git add . && git commit -m 'redeploy' && git pushcd ../synthetic-assets- Change the delegator address in
synthetic-assets/migrations/2_deploy.js truffle migrate --reset --network goerligit add . && git commit -m 'redeploy' && git pushcd ../dashboardgit add . && git commit -m 'redeploy' && git push- In remote server:
cd cli && git pullpm2 stop all- Run first 5 lines in file cli/misc/deploy.sh for stakers to stake
pm2 start allonce staked
Run npm run test
Run npm run coverage
Deployed contract addresses can be found here