A handy hardhat plugin to deploy and verify source code via command-line
npm install hardhat-depver
Import the plugin in your hardhat.config.js
:
require("hardhat-depver");
Or if you are using TypeScript, in your hardhat.config.ts
:
import "hardhat-depver";
@nomiclabs/hardhat-ethers
This plugin adds the depver
task to Hardhat:
output of `npx hardhat help depver`
Usage:
npx hardhat depver --network goerli --signer-index 2 --contract-name <ContractName>
See configurating hardhat-etherscan
npx hardhat depver --network goerli --signer-index 2 --contract-name <ContractName>
See a few examples in ERCRef
We use np
for publishing. You shall be able to run the following
npx np