Set up .env file in the project directory and add the following environment variables:
# Secret key for deploying contracts
ADMIN=
INFURA_API_KEY=
TEST_MNEMONIC=
Before running any command, make sure to install dependencies:
yarn
Compile and test the smart contracts:
yarn hardhat test
Deploy script is below:
yarn hardhat deploy --network {network name}