jopa2021 / nft-staking2

NFT-Staking-Smart-Contract, reward will be given in ERC20

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NFT-Staking-Smart-Contract

NFT-Staking Smart Contract for 1 month, 6months, and 12 months.

Vesting

Get all Tokens Details

Duration APR Reward % Reward Tokens
01 Month 05 NPY
06 Months 10 NPY
12 Months 15 NPY
After 1 Year 15 NPY

Important Step

create .env file in root directory.
    API_URL = "https://eth-ropsten.alchemyapi.io/v2/your-api-key"
    PRIVATE_KEY = "YOUR-METAMASK-PRIVATE_KEY"
    ETHERSCAN_API_KEY = "YOUR-ETHERSCAN_API_KEY"

-Get Your API Key

-Get Your Rinkeby Faucet

NPM Packages

Tech Stack

Run Locally

Clone the project

  git clone https://github.com/karangorania/vesting-smart-contract

Go to the project directory

  cd vesting-smart-contract

Install dependencies

  npm install

Compile

  npx hardhat compile

Test

  npx hardhat test

Deploy

  node scripts/deploy.js

Deploy on Rinkeby

  npx hardhat run scripts/deploy.js --network rinkeby

Verify Contract

npx hardhat verify --network rinkeby <YOUR_CONTRACT_ADDRESS>

Help

  npx hardhat help

Check on Rinkeby Explorer

About

NFT-Staking-Smart-Contract, reward will be given in ERC20


Languages

Language:JavaScript 52.8%Language:Solidity 47.2%