|
|
2 years ago | |
|---|---|---|
| .github | 2 years ago | |
| contracts | 2 years ago | |
| deploy | 2 years ago | |
| deployments | 2 years ago | |
| tasks | 2 years ago | |
| test | 2 years ago | |
| .env.example | 2 years ago | |
| .eslintrc.json | 2 years ago | |
| .gitignore | 2 years ago | |
| .prettierignore | 2 years ago | |
| .prettierrc.json | 2 years ago | |
| .solhint.json | 2 years ago | |
| .solhintignore | 4 years ago | |
| LICENSE | 2 years ago | |
| README.md | 2 years ago | |
| hardhat.config.ts | 2 years ago | |
| header.png | 4 years ago | |
| package-lock.json | 2 years ago | |
| package.json | 2 years ago | |
| renovate.json | 2 years ago | |
| tsconfig.json | 2 years ago | |
| types.d.ts | 2 years ago |
A BoilerPlate Template Project To Start Solidity Development With Hardhat and Typescript. All you have to do is create a new repository from the template and start coding your smart contracts.
Check the Hardhat documentation for more information.
https://hardhat.org/getting-started/
.
├── contracts
│ ├── BasicERC1155.sol
│ ├── BasicERC20.sol
│ └── BasicERC721.sol
├── deploy
│ ├── Deploy_BasicERC1155.ts
│ ├── Deploy_BasicERC20.ts
│ └── Deploy_BasicERC721.ts
├── deployments
├── hardhat.config.ts
├── tasks
│ ├── erc1155
│ ├── erc20
│ ├── erc721
│ └── utils
└── test
├── BasicERC1155.ts
├── BasicERC20.ts
└── BasicERC721.ts
Feel free to add more networks in hardhat.config.ts file.
We recommend installing hh autocomplete so you can use hh shorthand globally.
npm i -g hardhat-shorthand
https://hardhat.org/guides/shorthand.html
hh compile - to compile smart contract and generate typechain ts bindingshh test - to run testshh deploy - to deploy to local network (see options for more)hh node - to run a localhost nodehh help - to see all available commandshh TABTAB - to use autocompletenpm install
npm run compile
Create .env file and add your environment variables. You can use .env.example as a template.
If you are going to use public network, make sure you include the right RPC provider for that network.
Make sure you include either MNEMONIC or PRIVATE_KEY in your .env file.
This is an example flow to deploy an ERC721 token to a public network and interact with it.
hh deploy --network sepolia --tags BasicERC721
hh --network sepolia etherscan-verify
hh erc721-mint \
--contract 0x77337983A7D1699FaF51a5f43b9907fB7B614097 \
--recipient 0x73faDd7E476a9Bc2dA6D1512A528366A3E50c3cF \
--network sepolia
npm run test
npm run coverage
npm run format:check
npm run format:write
npm run lint:check
npm run lint:fix
npm run sol:format:check
npm run sol:format:write
npm run solhint