Skip to content

sushiswap/hardhat-foundation

Repository files navigation

HardHat Foundation

License: MIT

Env

cp .env.example .env

Test

yarn test
yarn test test/Greeter.ts

Coverage

yarn test:coverage

https://hardhat.org/plugins/solidity-coverage.html#tasks

Gas

yarn test:gas

https://github.com/cgewecke/hardhat-gas-reporter

Lint

yarn lint

Watch

npx hardhat watch compile

Deployment

Local

Running the following command will start a local node and run the defined deploy script on the local node.

npx hardhat node

Mainnet

yarn mainnet:deploy
yarn mainnet:verify
hardhat tenderly:verify --network mainnet ContractName=Address
hardhat tenderly:push --network mainnet ContractName=Address

Ropsten

yarn ropsten:deploy
yarn ropsten:verify
hardhat tenderly:verify --network ropsten ContractName=Address