Nessuna descrizione

renovate[bot] fd7428f111 chore(deps): update dependency solidity-coverage to ^0.8.0 (#84) 2 anni fa
.github 158b9967c8 chore(deps): update actions/setup-node action to v3 (#75) 3 anni fa
contracts cb3cc74499 chore: initial template definition files 4 anni fa
deploy cb3cc74499 chore: initial template definition files 4 anni fa
tasks cb3cc74499 chore: initial template definition files 4 anni fa
test 193b82abcf chore: update all deps to latest (#67) 3 anni fa
.editorconfig cb3cc74499 chore: initial template definition files 4 anni fa
.env.example cb3cc74499 chore: initial template definition files 4 anni fa
.gitignore 0d85f27f8c ci: setup commands and added ci for testing build (#4) 4 anni fa
.prettierignore cb3cc74499 chore: initial template definition files 4 anni fa
.solhint.json cb3cc74499 chore: initial template definition files 4 anni fa
.solhintignore cb3cc74499 chore: initial template definition files 4 anni fa
LICENSE c769c1481a Initial commit 4 anni fa
README.md da67f242b3 Update README.md 4 anni fa
hardhat.config.ts 193b82abcf chore: update all deps to latest (#67) 3 anni fa
header.png 9f9584b224 docs: header 4 anni fa
helper-hardhat-config.ts cb3cc74499 chore: initial template definition files 4 anni fa
package-lock.json fd7428f111 chore(deps): update dependency solidity-coverage to ^0.8.0 (#84) 2 anni fa
package.json fd7428f111 chore(deps): update dependency solidity-coverage to ^0.8.0 (#84) 2 anni fa
renovate.json abc8b8fadc chore: update deps 3 anni fa
tsconfig.json cb3cc74499 chore: initial template definition files 4 anni fa
tslint.json cb3cc74499 chore: initial template definition files 4 anni fa

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!