/staking-app

Primary LanguageJavaScriptMIT LicenseMIT

Staking App

This app is a staking application built on the Ethereum blockchain using the Solidity programming language and the Hardhat development framework.

Features

  • Allows users to stake their Ethereum tokens in order to earn rewards
  • Includes a user interface for easy interaction with the smart contract
  • Utilizes the Hardhat framework for local development and testing
  • Locks tokens for a specified period of time in order to net rewards
  • Locked tokens can be used for a specific action, such as participating in a voting process or accessing premium features

Getting Started

Prerequisites
  • Node.js and npm
  • Hardhat
  • A local Ethereum network (such as Hardhat's built-in network)
Installation
  1. Clone the repository

git clone https://github.com/aniketpr01/staking-app

  1. Install dependencies

npm install

  1. Compile the smart contract

npx hardhat compile

  1. Run the tests

npx hardhat test

  1. Start the local network

npx hardhat node

  1. Deploy the smart contract

npx hardhat run scripts/00-deploy-reward-token.js --network localhost npx hardhat run scripts/01-deploy-staking.js --network localhost

Note

  • Make sure you are using the latest version of the solidity and hardhat
  • Do the testing and review of the smart contract on various testnet before deploying on mainnet
  • Securely store your private key if using testnet or mainnet
  • Be aware of the gas fees.
  • Understand the terms and conditions of the specific action that can be done with the locked tokens.