Hardhat
Hardhat is a development environment to compile, deploy, test, and debug your smart contract.
There are a few technical requirements before we start. Please install the following: Requirements:
There are a few technical requirements before we start. Please install the following: Requirements:
- Windows, Linux or Mac OS X
First, you need to create an empty project
npm init --yes
Once your project is ready, you should run
npm install --save-dev hardhat
It's recommeded to install some dependencies.
npm install --save-dev @nomiclabs/hardhat-waffle ethereum-waffle chai @nomiclabs/hardhat-ethers ethers
To use your local installation of Hardhat, you need to use
npx
to run it (i.e. npx hardhat
).To create your Hardhat project run npx hardhat in your project folder:
mkdir DogeLoop
cd DogeLoop
- Intialize your project:
$ npx hardhat
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