Git Product home page Git Product logo

contracts's Introduction

Razor network - Contracts

CircleCI Coverage Status

These are the contracts for Razor network.

Prerequisites :

npm

You'll need npm to install the required packages. To install npm , go to this link

Development

Create a .env file from .env.tpl and set the environment variables accordingly.

Running tests

Run npm run test

Test Coverage

Run npm run coverage

Test Lint

Run npm run lint

prettify code

Run npm run lint:sol:fix

Deployment

Using Docker

The easiest way to get a local hardhat instance with deployed contracts is to run a docker container. $ docker-compose up

Local Deployment using hardhat
  1. Create a copy of local environment .env.local from .env.tpl and set the environment variables accordingly
  2. Run hardhat node (npx hardhat node)
  3. Run command deploy:local
  4. Use tenderly to track local transactions: https://github.com/Tenderly/tenderly-cli#export
Polygon Mumbai Testnet Deployment
  1. Create a copy of local environment .env.mumbai from .env.tpl and set the environment variables accordingly
  2. Run command deploy:mumbai

Addresses

We are currently live on Polygon Mumbai Testnet.

Deployed contract addresses can be found here

tenderly

npx hardhat node
npm run deploy:local
npm run deploy:mumbai
npx hardhat test --network localhost          
tenderly export  --export-network hardhat 0x4c30a90c6d2370abaef047fbac5a3f2dd43a9490caae7c79ec700eee600db024

gas Prices across networks

npm run gas

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.