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.
- 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.
- 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.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Solidity
- Javascript
- Node.js
- Hardhat
- Git
- Clone the repository to your local machine
git clone https://github.com/samcms1234/JStake-smart-contract.git
- Install the dependencies
cd JStake-smart-contract
npm install
- Compile and deploy the contracts
npx hardhat node
npx hardhat run scripts/deploy.js --network localhost
- Run the tests
npx hardhat test
Contract address:
0x56A24924c3B6A2B2d6DA28039fB0Da609D9d6851
- Ethereum - Blockchain platform
- Solidity - Smart contract language
- Hardhat - Development framework for Ethereum
Contributions are welcome! Please feel free to submit a pull request or open an issue for any bugs, feature requests, or suggestions.
This project is licensed under the MIT License.