Protokol
  • Introduction To Digital Assets
  • Tutorials
    • How To Create Digital Assets
    • How To Trade Digital Assets
  • ARK CORE MODULES
    • NFT
      • Development
      • Complementary Examples
        • Base
        • Exchange
      • API Endpoints
        • Assets
        • Burns
        • Collections
        • Transfers
        • Base Configurations
        • Auctions
        • Bids
        • Trades
        • Exchange Configurations
    • Guardian
      • Development
      • Complementary Examples
      • API Endpoints
        • Configurations
        • Groups
        • Users
    • Nameservice
      • Development
      • Complementary Examples
      • API Endpoints
        • Configurations
        • Nameservice
    • Voting
      • Development
      • Complementary Examples
      • API Endpoints
        • Configurations
        • Create Proposal
        • Cast Vote
        • Statistics
  • Protokol Templates
    • Core Starter Kit
    • Solidity Typescript Hardhat
    • Nestjs
Powered by GitBook
On this page
  • Hardhat Configuration
  • Usage

Was this helpful?

  1. Protokol Templates

Solidity Typescript Hardhat

A BoilerPlate Template Project To Start Solidity Development With Hardhat and Typescript

PreviousCore Starter KitNextNestjs

Last updated 3 years ago

Was this helpful?

It can be found on the following link

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.

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

npm i -g hardhat-shorthand

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.

GitHub - protokol/solidity-typescript-hardhat-template: A Template Project To Start Solidity Development With Hardhat and Typescript support.GitHub
Ethereum development environment for professionalsHardhatHQ
Ethereum development environment for professionalsHardhatHQ
Logo
Logo
Logo