Giter VIP home page Giter VIP logo

my-first-smart-contract's Introduction

My First Smart Contract

A simple Solidity smart contract and test project.

Installation

  1. Clone the repository:

    git clone https://github.com/BlockChain-R/my-first-smart-contract.git
  2. Install the dependencies:

     npm install

Usage

Starting a local blockchain:

To start a local blockchain using Ganache

npm run start

This will start a local blockchain on port 7545

Compile the smart contract:

npm run compile

This will generate the contract bytecode and ABI in the build/ directory.

Running tests:

To run the project tests using Jest, run:

npm run test

This will run the tests in the test/ directory. The tests will deploy the contract to the local blockchain and run the tests.

Dependencies

  • web3 - A collection of libraries that allow you to interact with a local or remote Ethereum node using HTTP, IPC, or WebSocket.
  • ganache-cli - A command-line interface for running a local Ethereum network for testing and development.
  • jest - A JavaScript testing framework that can be used for testing Solidity contracts.
  • solc - A Solidity compiler that can be used to compile Solidity contracts to bytecode and ABI.

License

MIT

Issues

Please report any issues or bugs to the issue tracker on GitHub.

my-first-smart-contract's People

Contributors

vardamanpk 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.