Hardhat介绍
安装Hardhat框架
安装nvm
brew install nvm
~/.zshrc添加nvm配置
# NVM CONFIG
export NVM_DIR="$HOME/.nvm"
[ -s "/usr/local/opt/nvm/nvm.sh" ] && \. "/usr/local/opt/nvm/nvm.sh" # This loads nvm
[ -s "/usr/local/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/usr/local/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion
source ~/.zshrc
安装node20
nvm install 20
nvm use 20
nvm alias default 20
npm install npm --global # Upgrade npm to the latest version
创建Hardhat示例项目
创建空白项目目录
mkdir hardhat-tutorial
cd hardhat-tutorial
安装hardhat及hardhat-toolbox
npm install --save-dev hardhat
npm install --save-dev @nomicfoundation/hardhat-toolbox
初始化hardhat项目-创建空的hardhat项目
npx hardhat init
888 888 888 888 888
888 888 888 888 888
888 888 888 888 888
8888888888 8888b. 888d888 .d88888 88888b. 8888b. 888888
888 888 "88b 888P" d88" 888 888 "88b "88b 888
888 888 .d888888 888 888 888 888 888 .d888888 888
888 888 888 888 888 Y88b 888 888 888 888 888 Y88b.
888 888 "Y888888 888 "Y88888 888 888 "Y888888 "Y888
标签:trace,框架,888,Token,hardhat,Hardhat,eth,nvm,address
From: https://blog.51cto.com/hanzhichao/9148099