- HEWT stack
- Hardhat (Solidity Framework)
- Ethers.js (Ethereum Wallet Library)
- Waffle (Test Framework)
- Typechain (Typescript for Web3)
- Hardhat plugins
- hardhat-ethers
- hardhat-waffle
- hardhat-deploy
- Additional dependencies
- mocha
- chai
- dotenv
- nft.storage
- prettier
-
Clone the repo
-
Create a file named
.env
in the root directory -
Add keys and values
- MASTER_ADDR=xxx
- ALCHEMY_API_KEY=xxx
- ALCHEMY_PRV_KEY=xxx
- ETHERSCAN_API_KEY=xxx
- NFT_STORAGE_API_KEY=xxx
-
Write deploy script in
/deploy
folder to usehardhat-deploy
-
Compile the contract
yarn compile
typechain
will generate type files in/typechain-types
folder
-
Test the contract
yarn test
-
Deploy to local chain
yarn deploy-local
-
Deploy to Rinkeby Ethereum testnet
yarn deploy-remote yarn verify
-
hardhat-deploy
will output ABIs under/deployment
folder