I am using hardhat to compile, deploy and verify an Ethereum Smart Contract. Currently, I am mannually peforming these commands:
npx hardhat compilenpx hardhat run scripts/deploy.js
Wait until the deployment script returns the contract address. Then manually copy the returned address to the verify command:
npx hardhat verify 0x<contract-address>Copy the compiled contract json (abi) file to my project's directory in the filesystem.
Is there any way that I can run all these commands automatically? I am thinking to automate it using shell/bash/powershell scripting but I am not sure if this is the best way to achieve this.
Many thanks!