NFT-Staking Smart Contract for 1 month, 6months, and 12 months.
Duration | APR Reward % | Reward Tokens |
---|---|---|
01 Month | 05 |
NPY |
06 Months | 10 |
NPY |
12 Months | 15 |
NPY |
After 1 Year | 15 |
NPY |
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
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