Skip to content

GauravJain9/contracts

This branch is 4 commits ahead of, 80 commits behind razor-network/oracle-contracts:main.

Folders and files

NameName
Last commit message
Last commit date
Feb 9, 2022
Feb 23, 2022
Feb 23, 2022
Mar 28, 2022
Dec 17, 2021
Oct 11, 2021
Mar 16, 2022
Mar 24, 2022
Feb 10, 2022
Mar 28, 2022
Oct 11, 2021
Feb 21, 2022
Feb 21, 2022
Aug 18, 2021
Jun 22, 2021
Sep 6, 2019
Mar 9, 2022
Jul 26, 2021
Aug 12, 2021
Nov 15, 2021
Feb 25, 2021
Feb 23, 2022
Jul 27, 2020
Oct 11, 2021
Feb 23, 2022
Aug 9, 2021
Feb 23, 2022
Oct 11, 2021
Mar 24, 2022
Mar 14, 2022
Sep 22, 2021
Aug 12, 2021
Mar 2, 2022

Repository files navigation

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

About

Core contracts for Razor network

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 70.1%
  • Solidity 29.2%
  • Other 0.7%