Clone and install dependencies
git clone https://github.com/mehedi-iitdu/hardhat-starter-kit-typescript
cd hardhat-starter-kit-typescript
Then:
npm install
If you run npx hardhat --help
you'll get an output of all the tasks you can run.
npx hardhat deploy
One of the best ways to test and interact with smart contracts is with a local network. To run a local network with all your contracts in it, run the following:
npx hardhat node
Tests are located in the test directory, and are split between unit tests and staging/testnet tests. Unit tests should only be run on local environments, and staging tests should only run on live environments.
To run unit tests:
npx test
or
npx hardhat test
To run staging tests on Rinkeby network:
npx test-staging
or
npx hardhat test --network rinkeby
Contributions are always welcome! Open a PR or an issue!