Coder Social home page Coder Social logo

boilerplate-hardhat-ethers's Introduction

Hardhat Boilerplate Project

This project is boilerplate with some config, tasks, docs, coverage, verify scan to use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.

Documents

We using lint-staged and husky to execute git hooks.

Try running some of the following tasks:

Common command

npx hardhat help
npm run compile
npm run chain
npm run clean
npm run test
npm run test:watch
npm run coverage
npm run contract-size
REPORT_GAS=true npx hardhat test

Deploy

npx hardhat run scripts/deploy.ts

Tasks

Tasks to create new wallet --total is a param to set how munch wallet will be created

npx hardhat createWallet --total 2 --network localhost

Generate documentation

Add NatSpec comment into contracts to create Markdown documentation

npm run docs

Lint and Rewrite code style

Add NatSpec comment into contracts to create Markdown documentation

npm run lint
npm run format

Slither static analysis

static analysis framework and vulnerability detectors for auditing smart contract

npm run slither
npm run slither-print

EtherScan

This plugin helps you verify the source code for your Solidity contracts. At the moment, it supports Etherscan-based explorers, explorers compatible with its API like Blockscout

npx hardhat verify --network mainnet DEPLOYED_CONTRACT_ADDRESS "Constructor argument 1"

boilerplate-hardhat-ethers's People

Contributors

jeftarmascarenhas avatar

Stargazers

 avatar Vinicius Pereira de Oliveira avatar Gustavo Granato Silva avatar Rodrigo Serviuc Pavezi avatar Gabriel Thome avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.