This project was implemented to educational purposes. Use as you wish.
There are a few commands that we can use.
To compile:
npx hardhat compile
To deploy:
npx hardhat deploy
To test:
npx hardhat test
To test only stake functionality:
npx hardhat test --grep stake