This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

create-hardhat-dapp

0.2.5Β β€’Β PublicΒ β€’Β Published

πŸ‘·β€β™‚οΈ Create Hardhat DApp

The fastest way to initialize a new Hardhat development environment.

Features ⚑️

  • Zero Configuration β€” No need to install and configure hardhat plugins manually
  • Typescript by Default β€” Provides static typing for both JavaScript and Smart Contract ABI
  • Extensible β€” Still a Hardhat environment that can be extended with many awesome plugins

Getting Started πŸ“š

Start by running the command below and replace defi-app with the name of your project.

npx create-hardhat-dapp defi-app

Or using yarn

yarn create hardhat-dapp defi-app

Options πŸͺ›

create-hardhat-dapp comes with the following option:

  • -p, --provider [{ alchemy | infura }] β€” Prepare network configurations for connecting to networks using your favorite JSON-RPC provider. Leave it blank for alchemy

  • --no-install β€” Prevent installing dependencies at beginning

What Comes Out of the Box πŸ“¦

Anything marked with 🏷 is optional

Web3

  • ethers.js β€” JavaScript library to interact with Ethereum
  • hardhat-ethers β€” Extended version of ethers.js for Hardhat

Test

  • waffle β€” Simple smart contract testing library
  • mocha β€” Feature-rich JavaScript test framework
  • chai β€” Assertion library paired with Mocha

Hardhat Plugins

hardhat-gas-reporter optionally requires an API Key for coinmarketcap to fetch price data

hardhat-etherscan requires an API Key for etherscan to submit smart contract

Tools / Utilities

Feel free to customize the .prettierrc config file to follow your code style

  • Typescript β€” Static Type version of JavaScript
  • Typechain β€” πŸ”Œ TypeScript bindings for Ethereum smart contracts
  • Prettier β€” Automatic code formatter and comes with the Solidity plugin
  • Yarn Berry β€” Fast, reliable, and secure dependency management for JavaScript.

Network Configurations 🏷

Ethereum networks require an API Key for JSON-RPC Provider either Alchemy or Infura

You can generate these configurations using the -p or --provider command, see options

  • Ethereum β€” Mainnet, GΓΆrli and Rinkeby
  • Polygon (previously matic) β€” Mainnet and Mumbai
  • Smart Chain β€” Mainnet and Testnet

Future πŸŒ…

  • scaffold-eth-like interface for quickly testing your smart contract
  • Intuitive command-line menu prompts
  • Ability to opt-out and use npm or JavaScript
  • Initialize with an example template like ERC20 Token, ERC721 NFT, AMM, and Lending Protocol

Feel free to suggest anything πŸ™πŸ»

License

Farrel Darian (farreldarian) MIT

Mentions

Some ways and code adopted from create-next-app

Readme

Keywords

Package Sidebar

Install

npm i create-hardhat-dapp

Weekly Downloads

10

Version

0.2.5

License

MIT

Unpacked Size

2.37 MB

Total Files

12

Last publish

Collaborators

  • farreldarian