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.jsTo 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 emeraldTestnetTo test the smart contracts run:
npx hardhat test test/sample-test.js