Git Product home page Git Product logo

jstake-smart-contract's Introduction

JStake: The control is with YOU!

This is a simple web application that interacts with a Staking Contract on the Ethereum blockchain. The application allows users to stake tokens, unstake tokens, claim rewards, and transfer tokens to other accounts.

Features

  • Stake tokens: Users can stake their tokens into the staking contract and earn rewards.
  • Unstake tokens: Users can unstake their tokens from the staking contract.
  • Claim rewards: Users can claim their earned rewards from the staking contract.
  • Transfer tokens: Users can transfer tokens from their account to another account.

Technologies Used

  • React: JavaScript library for building the user interface.
  • ethers.js: Library for interacting with the Ethereum blockchain.
  • Web3: Library for interacting with the Ethereum provider (e.g., MetaMask).
  • Hardhat: Development environment for Ethereum smart contracts.
  • Solidity: Programming language for writing smart contracts.
  • React Toastify: Library for displaying notifications in the web application.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Solidity
  • Javascript
  • Node.js
  • Hardhat
  • Git

Installing

  1. Clone the repository to your local machine
git clone https://github.com/samcms1234/JStake-smart-contract.git
  1. Install the dependencies
cd JStake-smart-contract
npm install
  1. Compile and deploy the contracts
npx hardhat node
npx hardhat run scripts/deploy.js --network localhost
  1. Run the tests
npx hardhat test

Contract address:

0x56A24924c3B6A2B2d6DA28039fB0Da609D9d6851

Built With

  • Ethereum - Blockchain platform
  • Solidity - Smart contract language
  • Hardhat - Development framework for Ethereum

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue for any bugs, feature requests, or suggestions.

License

This project is licensed under the MIT License.

jstake-smart-contract's People

Contributors

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