-
Run
npx hardhat node
to create your local node. -
Run
npx hardhat run --network localhost scripts/deploy.ts
to deploy.
- Run
npx hardhat test
ornpx hardhat test --network localhost
- Run
npx hardhat coverage
- Run
npx hardhat
- Do:
npx hardhat TASK_NAME
- For local deployment run
npx hardhat deploy-testnets
ornpx hardhat deploy-testnets --network localhost
- For testnet deployment run
npx hardhat deploy-testnets --network goerli
- Run
npx hardhat verify --network goerli "address"
once contract is deployed
The verified contract can be found here.
npm install --save-dev @nomiclabs/hardhat-etherscan
npm install dotenv