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 --network name
npm install dotenv 引用require('dotenv').config();
npm install --save ethers
npm install axios
MOONBRAN_API=https://rpc.api.moonbase.moonbeam.network
MUMBAI=https://rpc-mumbai.maticvigil.com
yarn init -y yarn add -D typescript ts-node ethers@^5.7.2 zksync-web3 hardhat @matterlabs/hardhat-zksync-solc @matterlabs/hardhat-zksync-deploy
yarn add -D @matterlabs/hardhat-zksync-verify @nomiclabs/hardhat-etherscan
[编译合约](yarn hardhat compile) [部署合约](yarn hardhat deploy-zksync) [验证合约](yarn hardhat verify --network --contract <构造参数>) [运行js文件](yarn hardhat run SCRIPT_FILE)