Coder Social home page Coder Social logo

contracts's Introduction

Razor network - Contracts

These are the contracts for Razor network.

Deployment

  1. Install truffle
  2. Install openzeppelin npm i openzeppelin-solidity
  3. Run ganache-cli ganache-cli -s 0 -i 420 -a 30 -l 7000000
  4. Run tests truffle test
  5. For bigSchelling.js large number of accounts are required ganache-cli -s 0 -i 420 -a 101 -l 7000000
  6. For testing with cli, set blocktime ganache-cli -s 0 -i 420 -a 30 -b 5 -l 7000000
  7. Deploy on ganache truffle migrate --reset
  8. create .secret file with mnemonic of the private key used to deploy on rinkeby
  9. Deploy on görli (.secret file must be present with mnemonic of the private key used to deploy) truffle migrate --network goerli --reset
  10. For test coverage,
    npm install --save-dev solidity-coverage
    npm run coverage

Migration guide

  1. truffle migrate --reset --network goerli
  2. sh copy-build.sh
  3. cd ../cli && git add . && git commit -m 'redeploy' && git push
  4. cd ../synthetic-assets
  5. Change the delegator address in synthetic-assets/migrations/2_deploy.js
  6. truffle migrate --reset --network goerli
  7. git add . && git commit -m 'redeploy' && git push
  8. cd ../dashboard
  9. git add . && git commit -m 'redeploy' && git push
  10. In remote server:
    1. cd cli && git pull
    2. pm2 stop all
    3. Run first 5 lines in file cli/misc/deploy.sh for stakers to stake
    4. pm2 start all once staked

Addresses

Contract addresses can be found here

contracts's People

Contributors

hrishikeshio avatar samag19 avatar 0xcuriousapple avatar agatsoh avatar skandabhat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.