Skip to main content

Hardhat

How to deploy your code using Hardhat.

Setup Hardhat Project

If you don't have a hardhat project setup yet, check out the hardhat docs or you can use these commands for a quick setup (also works with npm and yarn).

Initialize the project.

pnpm init

Add hardhat dependecy.

pnpm add -D hardhat

Initialize the project with hardhat (choose your preferred langauge options):

npx hardhat init

You can now write your contracts in the contracts/ folder and compile them with:

npx hardhat compile

To test you contracts please follow the hardhat docs.

Setup Deployment Script