GithubHelp home page GithubHelp logo

kushan2k / hardhat-blockchain Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 266 KB

learning blockchain development using hardhat

Solidity 19.50% JavaScript 80.50%
blockchain etherium ethersjs hardhat javascript learning nodejs smartcontracts solidity

hardhat-blockchain's Introduction

Sample Hardhat Project

This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.

Try running some of the following tasks:

npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.js

My Hardhat Blockchain Project Documentation

Welcome to the documentation for My Hardhat Blockchain Project. This document provides an overview of the project's structure, setup, and usage.

Table of Contents

Introduction

My Hardhat Blockchain Project is a decentralized application (dApp) built using the Hardhat development environment. It involves smart contracts written in Solidity and various tools for development, testing, and deployment.

Getting Started

Prerequisites

Before you begin, ensure you have the following software installed:

  • Node.js
  • npm
  • Hardhat (version ^2.17.1)

Installation

  1. Clone this repository:

    git clone https://github.com/Kushan2k/hardhat-blockchain.git
    
  2. navigate to the directory

    cd hardhat-blockchain
  3. Install project dependencies:

      yarn install or npm install

Project Structure

Explain the high-level structure of your project, including the directory layout, significant files, and their purposes.

Usage

Compiling Contracts To compile the smart contracts, run the following command:

yarn hardhat compile

Running Tests

Execute the test suite using: in a separate terminal run

yarn hardhat node

then run

yarn hardhat test --network localhost

Deploying Contracts

Deploy the contracts to the Ethereum network:

npx hardhat run scripts/deploy.js --network <network_name>

Configuration

Explain any configuration files, variables, or settings that the user might need to customize for their use case.

Troubleshooting

Provide solutions to common issues that users might encounter during setup, compilation, testing, or deployment.

Contributing

If you'd like to contribute to this project, follow these steps:

Fork the repository.

Create a new branch: git checkout -b feature/your-feature-name. Commit your changes: git commit -am 'Add a new feature'. Push the branch: git push origin feature/your-feature-name. Submit a pull request.

License

This project is licensed under the MIT License.

Happy coding

hardhat-blockchain's People

Contributors

kushan2k avatar

Stargazers

 avatar  avatar

Watchers

 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.