<<<<<<< HEAD
A fullstack hardhat and wagmi based dapp boilerplate ready to hack 🙌
- 👷🏽♂️ Hardhat
- 🌈 RainbowKit
- ➬ WAGMI
- 🌐 Next JS
- 🗺 Etherscan
- 🕹 Typechain
- TailwindCSS – Utility-first CSS framework for rapid UI development
- TypeScript – Static type checker for end-to-end typesafety
- Prettier – Opinionated code formatter for consistent code style
- ESLint – Pluggable linter for Next.js and TypeScript
Node js
npm
yarn
Install yarn:
npm i -g yarn
For contract dev: Run this command on the root folder:
yarn
For Frontend dev:
Go to frontend
folder and install node modules:
cd frontend
yarn
- Install a wallet like Metamask
- Copy
.env.example
to.env
- Mac or Linux
cp .env.example .env
- Windows
copy .env.example .env
- Mac or Linux
- Set the env variable in
.env
file on root level and onfrontend
folder:
Variable descriptions:
RPC_NODE_API_KEY
: Get from Alchemy site after sign up and loginPRIVATE_KEY
: Export private key from metamask, follow these instructionsETHERSCAN_API_KEY
: Get from etherscan
Frontend ENV Variable:
4. NEXT_PUBLIC_ALCHEMY_API_KEY
: Same as RPC_NODE_API_KEY
- Compile Contract:
=======
**Repository Name:** hardhat-fullstack-boilerplate
# Hardhat Project Boilerplate
Welcome to the Hardhat Project Boilerplate, a starting point for your full-stack TypeScript blockchain projects. This boilerplate is designed to help you kickstart your development with the Hardhat framework.
## Instructions
### Compilation
To compile your project, use the following command:
```bash
>>>>>>> 302ec250803f16a20504d7955b9532340c93b3b9
npm run compile
Run your tests with:
npm run test
To deploy your contracts, utilize:
npm run deploy:<network>
<<<<<<< HEAD
- Verify on etherscan
npx hardhat verify --network sepolia <YOUR_CONTRACT_ADDRESS> <Paramaters>
For example for Greeter
contract:
npx hardhat verify --network sepolia 0xAECD7dFD9d5ED08EA916B052D90A75366B963A61 "Hello world"
=======
Replace `<network>` with the target network for deployment.
### Contract Verification on Etherscan
To verify your contracts on Etherscan, execute:
```bash
npx hardhat verify --network rinkeby <YOUR_CONTRACT_ADDRESS>
>>>>>>> 302ec250803f16a20504d7955b9532340c93b3b9
Make sure to replace <YOUR_CONTRACT_ADDRESS>
with your specific contract address.
- Clone this repository to your local machine.
- Navigate to the project directory.
- Customize the boilerplate to match your project requirements.