Тайлбар байхгүй

Kristjan Kosic 9f9584b224 docs: header 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 cb3cc74499 chore: initial template definition files 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 9f9584b224 docs: header 4 жил өмнө
hardhat.config.ts ee5aa47a96 chore: added sol-coverage and sol-hint module 4 жил өмнө
header.png 9f9584b224 docs: header 4 жил өмнө
helper-hardhat-config.ts cb3cc74499 chore: initial template definition files 4 жил өмнө
package-lock.json ee5aa47a96 chore: added sol-coverage and sol-hint module 4 жил өмнө
package.json 222a2ae499 chore: mini readme instructions 4 жил өмнө
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. Multinetwork deployments supported)
  • hardhat console enabled - to allow of 'solidity' console.log usage
  • 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!