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. PRIVATE_KEY="YOUR_PRIVATE_KEY"
ETHERSCAN_API_KEY="YOUR_ETHERSCAN_API_KEY"
POLYGON_SCAN_API_KEY="YOUR_POLYGON_SCAN_API_KEY"
-Get Your API Key
-Get Your Sepolia Faucet
-Get Your Mumbai Faucet
Clone the project
git clone git@github.com:karangorania/nft-staking.gitGo to the project directory
cd nft-stakingInstall dependencies
npm installCompile
npx hardhat compileTest
npx hardhat testDeploy on Mumbai
node scripts/deploy.js --network mumbaiDeploy on Sepolia
npx hardhat run scripts/deploy.js --network sepoliaVerify Contract
You can verify your contract on the desired network using the npx hardhat verify command. Replace <YOUR_CONTRACT_ADDRESS> with the address of the contract you want to verify. If your contract requires constructor arguments, replace <WITH_ARGUMENT_IF_REQUIRED> with those arguments. Note that providing constructor arguments is optional and only necessary if your contract requires them.
For the Mumbai network:
npx hardhat verify --network mumbai <YOUR_CONTRACT_ADDRESS> <WITH_ARGUMENT_IF_REQUIRED>For the Sepolia network:
npx hardhat verify --network sepolia <YOUR_CONTRACT_ADDRESS> <WITH_ARGUMENT_IF_REQUIRED>Help
npx hardhat help