Skip to content

This project is an NFT (ERC721) project created with the help of openzeppelin. This project provide you also staking system, with the help of the staking system you can stake your NFTs and get ERC20 tokens as rewards. You can stake your NFTs for different lock time and get different rewards.

Notifications You must be signed in to change notification settings

mranoncoder/NFTStakingSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFT Staking project

With help of this project you can create an NFT project, which you can stake and get ERC-20 (Coin) as reward.

This project made using Hardhat.

To deploy the contracts use the following commands:

npm install
npx hardhat compile
npx hardhat run scripts/deploy.js

Deploying to remote networks

To deploy to a remote network such as mainnet or any testnet, you need to add a network entry to your hardhat.config.js file.

We’ll use Oasis Emerald Network for this example, but you can add any network similarly:

module.exports = {
  solidity: "0.8.4",
  networks: {
    emeraldTestnet: {
      url: 'https://testnet.emerald.oasis.dev',
      accounts: [
        `${PRIVATE_KEY}`,
      ],
    }
  }
};

Finally, run:

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

Running Tests

To test the smart contracts run:

npx hardhat test test/sample-test.js

About

This project is an NFT (ERC721) project created with the help of openzeppelin. This project provide you also staking system, with the help of the staking system you can stake your NFTs and get ERC20 tokens as rewards. You can stake your NFTs for different lock time and get different rewards.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published