Deploying Smart Contracts using Hardhat
package.json
file
hardhat.config.js
and install the Ethers plugin to use the Ethers.js library to interact with the network.
contracts
directory
your_contract.sol
file in contracts
directory
secrets.json
file to store your private key
secrets.json
.gitignore
, and never reveal your private key.hardhat.config.js
file
secrets.json
filemodule.exports
add the Caldera network configurationdeploy.js
your_contract.sol
using the command below