Skip to content

OxHimanshu/contracts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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 76.5%
  • Solidity 22.7%
  • Other 0.8%