Once your environment is ready, we can create an empty folder and init a Hardhat project in it.
1
$ mkdir my-thundercore-project &&cd$_
2
3
# We choose a basic sample project and install its dependences here:
4
$ npx hardhat init
5
6
✔ What do you want to do? · Create a basic sample project
7
8
✔ Do you want to install this sample project's dependencies with npm(hardhat @nomiclabs/hardhat-waffle ethereum-waffle chai @nomiclabs/hardhat-ethers ethers)? (Y/n) · y
Copied!
After initialization, we can test the project with the hardhat compile command:
npm
Yarn
1
$ npmexec -- hardhat compile
2
Downloading compiler 0.8.4
3
Compiling 2 files with 0.8.4
4
Compilation finished successfully
Copied!
1
$ yarn hardhat compile
2
Compiling 2 files with 0.8.4
3
Compilation finished successfully
4
Done in1.22s.
Copied!
Hardhat Config
Now, we have to add ThunderCore networks into Hardhat config file. Open and edit hatdhat.config.js in the root directory of your project.