@razor-network/contracts
v2.0.3
Published
These are the contracts for Razor network v2 mainnet
Downloads
110
Readme
Razor network - Contracts
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
- Create a copy of local environment
.env.local
from.env.tpl
and set the environment variables accordingly - Run hardhat node (
npx hardhat node
) - Run command
deploy:local
- Use tenderly to track local transactions: https://github.com/Tenderly/tenderly-cli#export
Polygon Mumbai Testnet Deployment
- Create a copy of local environment
.env.mumbai
from.env.tpl
and set the environment variables accordingly - 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