this project is a hardhat template, which supports typescript and includes a lot of useful tools, like code lint, doc generator, and other contract tools
yarn
-
create
.envfile and set your mnemonic as belowMNEMONIC="your mnemonic" -
compile contracts, it will generate contract artifacts also typechains
yarn build -
test contracts
yarn test -
deploy contracts,
network nameis configured in your hardhat.config.ts, once contracts are deployed, hardhat will generate deployments filesnpx hardhat --network {{network name}} deploy -
verify contracts
npx hardhat --network {{network name}} verify {contract address}
Once the rpc url is unavailable, check it here