Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hosseind88/staking-dapp
A Staking Dapp built by hardhat & solidity & react
https://github.com/hosseind88/staking-dapp
blockchain dapp ethereum ethers frontend hardhat react solidity staking
Last synced: 7 days ago
JSON representation
A Staking Dapp built by hardhat & solidity & react
- Host: GitHub
- URL: https://github.com/hosseind88/staking-dapp
- Owner: hosseind88
- License: mit
- Created: 2022-02-06T11:29:38.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-07T12:07:57.000Z (almost 3 years ago)
- Last Synced: 2023-03-06T03:50:40.912Z (almost 2 years ago)
- Topics: blockchain, dapp, ethereum, ethers, frontend, hardhat, react, solidity, staking
- Language: JavaScript
- Homepage:
- Size: 304 KB
- Stars: 6
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Staking Dapp built by hardhat & solidity & react
to test the project you should do these steps:
```sh
git clone https://github.com/hosseind88/staking-dapp.git
cd staking-dapp
npm install
```Once installed, let's run Hardhat's testing network:
```sh
npx hardhat node
```Then, on a new terminal, go to the repository's root folder and run this to deploy your contract:
```sh
npx hardhat run scripts/deploy.js --network localhost
```then we can run the frontend with:
```sh
cd frontend
npm install
npm start
```then on your metamask, please import the first account that hardhat shows you by importing it by account private-key
then you can stake some mDAI tokens and after that you can run this script:
```sh
npx hardhat run scripts/issue-token.js --network localhost
```
to get your staking reward by AMS token