Fast and typed Hardhat setup.
Clone the repo and install dependencies:
git clone https://github.com/comingAlive/hardhat-swc-example.git
cd hardhat-swc-example
yarn
Copy .env.example
to .env
.
Fill the RPC_URL and run hardhat node
for starting a Blockchain fork locally.
Compile Solidity code and generate typechain-types:
yarn build
Deploy:
yarn deploy
Test:
yarn test
Format project using Prettier:
yarn format