Skip to content

Latest commit

 

History

History
executable file
·
89 lines (60 loc) · 1.01 KB

README.md

File metadata and controls

executable file
·
89 lines (60 loc) · 1.01 KB

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