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.git
Go to the project directory
cd nft-staking
Install dependencies
npm install
Compile
npx hardhat compile
Test
npx hardhat test
Deploy on Mumbai
node scripts/deploy.js --network mumbai
Deploy on Sepolia
npx hardhat run scripts/deploy.js --network sepolia
Verify 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