暂无描述

renovate[bot] 1dee967fbc chore(deps): update dependency hardhat to v2.6.7 (#51) 3 年之前
.github 0d85f27f8c ci: setup commands and added ci for testing build (#4) 4 年之前
contracts cb3cc74499 chore: initial template definition files 4 年之前
deploy cb3cc74499 chore: initial template definition files 4 年之前
tasks cb3cc74499 chore: initial template definition files 4 年之前
test ee5aa47a96 chore: added sol-coverage and sol-hint module 4 年之前
.editorconfig cb3cc74499 chore: initial template definition files 4 年之前
.env.example cb3cc74499 chore: initial template definition files 4 年之前
.gitignore 0d85f27f8c ci: setup commands and added ci for testing build (#4) 4 年之前
.prettierignore cb3cc74499 chore: initial template definition files 4 年之前
.solhint.json cb3cc74499 chore: initial template definition files 4 年之前
.solhintignore cb3cc74499 chore: initial template definition files 4 年之前
LICENSE c769c1481a Initial commit 4 年之前
README.md da67f242b3 Update README.md 4 年之前
hardhat.config.ts 0d85f27f8c ci: setup commands and added ci for testing build (#4) 4 年之前
header.png 9f9584b224 docs: header 4 年之前
helper-hardhat-config.ts cb3cc74499 chore: initial template definition files 4 年之前
package-lock.json 1dee967fbc chore(deps): update dependency hardhat to v2.6.7 (#51) 3 年之前
package.json 1dee967fbc chore(deps): update dependency hardhat to v2.6.7 (#51) 3 年之前
renovate.json 6c063f4704 Add renovate.json 4 年之前
tsconfig.json cb3cc74499 chore: initial template definition files 4 年之前
tslint.json cb3cc74499 chore: initial template definition files 4 年之前

README.md

Img

TypeScript Solidity Boilerplate Starter Kit

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 smartcontracts.

Hardhat Configuration

  • typescript support enabled
  • typechain plugin installed (typescript type bindings are generated from smart contracts)/check Typechain docs
  • hardhat-deploy plugin enabled (use deployments from deploy folder, order and tag them; multi-network)
  • hardhat console enabled - to allow console.log usage within solidity code
  • testing environment configured and operational

Check the Hardhat documentation for more information.

https://hardhat.org/getting-started/

We recommend installing hh autocomplete so you can use hh shorthand globally.

npm i -g hardhat-shorthand

https://hardhat.org/guides/shorthand.html

Usage

Run npm install and then:

  • hh compile - to compile smart contract and generate typechain ts bindings
  • hh test - to run tests
  • hh deploy - to deploy to local network (see options for more)
  • hh TABTAB - to use autocomplete
  • hh node - to run a localhost node

Check package.json scripts for more options. Use .env.example file and adapt it to you values and settings.

Have Fun!