This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.
Try running some of the following tasks:
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.js
@nomicfoundation/hardhat-chai-matchers@^2.0.0 @nomicfoundation/hardhat-ethers@^3.0.0 @nomicfoundation/hardhat-network-helpers@^1.0.0 @nomicfoundation/hardhat-verify@^2.0.0 @typechain/ethers-v6@^0.5.0 @typechain/hardhat@^9.0.0 @types/chai@^4.2.0 @types/mocha@>=9.1.0 chai@^4.2.0 hardhat-gas-reporter@^1.0.8 solidity-coverage@^0.8.1 ts-node@>=8.0.0 typechain@^8.3.0 typescript@>=4.5.0
, "@boringcrypto/boring-solidity": "boringcrypto/BoringSolidity#51616f5bbab53adaf6379428de08c9d8093c63f5", "@sushiswap/bentobox-sdk": "sushiswap/bentobox-sdk#e3f809870b86afbd57e0930662221d2362a160db", "@sushiswap/core": "^1.4.2"
yarn add --dev @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers ethers @nomicfoundation/hardhat-verify chai hardhat hardhat-contract-sizer hardhat-deploy hardhat-gas-reporter prettier prettier-plugin-solidity solhint solidity-coverage dotenv 6.
warning @nomiclabs/[email protected]: The @nomiclabs/hardhat-etherscan package is deprecated, please use @nomicfoundation/hardhat-verify instead
localhost-INIT_CODE_PAIR_HASH:0x515a84afaf9dfb5d6ac3a3415af9a84cc83fb5ae121d3850c26ee1d5f13026e8 polygon-INIT_CODE_PAIR_HASH:00fb7f630766e6a796048ea87d01acd3068e8ff67d078148a3fa3f4a84f69bd5
"./utils": { "import": "./lib.esm/utils/index.js", "default": "./lib.commonjs/utils/index.js" },
ethers-packagejson: ".": { "import": "./lib.esm/index.js", "default": "./lib.commonjs/index.js" },
import { getContractAddress } from 'ethers/lib/utils';