Follow this link to get context of HardHat
Compile and run tests -
npx hardhat compile
npx hardhat testTests run before deploying the contract on testnet.
- Go to GitHub action page
- Run this workflow
Deploy a contract to testnet using dispatchwith input parameters contract name and type e.g. contract name =factoryand contract type =Logic. Both name and type are case sensitive. - Monitor the
Deploy a contract to testnet using dispatchworkflow.
- Go to GitHub action page
- Run this workflow
Deploy a contract to testnet using dispatchwith input parameters contract name and type e.g. contract name =factoryand contract type =Proxy. Both name and type are case sensitive. - Monitor the
Deploy a contract to testnet using dispatchworkflow.
- Go to GitHub action page
- Run this workflow
Deploy a contract to testnet using dispatchwith input parameters contract name and type e.g. contract name =factoryand contract type =Upgrade. Both name and type are case sensitive. - Monitor the
Deploy a contract to testnet using dispatchworkflow.
- Go to ./deployment/deploy.ts
- Add new contract name in SUPPORTED_CONTRACTS_FOR_DEPLOYMENT
- Run
npx hardhat run deployment/deploy.ts
Run npx hardhat run deployment/deploy.ts
Once above command executes, a prompt in terminal displays options to deploy contracts
- create - Deploys a new logic contract
- upgrade - Upgrades the existing proxy with new implementation
- All *.sol files should be formatted with - NomicFoundation.hardhat-solidity
- Pls verify the default formatter is below under
/Users/<USER>/Library/Application\ Support/Code/User/settings.json - Please enable format on save settings in VS code - Code -> Preferences -> Settings -> Text Editor -> Formatting -> Format On Save
"[solidity]": {
"editor.defaultFormatter": "NomicFoundation.hardhat-solidity"
}