LuaxY / chainlink-keepers-demo

NFT that automatically reward randomly selected owners each 10 NFTs minted

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Super NFT - Chainlink Keepers Demo

Demo of a NFT that automatically reward randomly selected owners each 10 NFTs minted.

Demo Screenshot

Getting Started

Clone the repository and install dependencies via yarn install.
Copy .env.example to .env and configure variables.

Build, deploy and verify contracts

npx hardhat run scripts/deploy.ts
npx hardhat verify --contract contracts/Token.sol:SuperToken ${ERC20Address}
npx hardhat verify --contract contracts/NFT_VRF.sol:SuperNFTVRF ${NFTAddress} ${ERC20Address}

Configure and run UI

Go to ui directory and install dependencies via yarn install.
Copy .env.example to .env and configure variables.
Run the UI and go to http://localhost:8080/.

yarn serve

You will need to funds accounts in order to use them, you can get test tokens form faucet https://faucet.polygon.technology/.
Run the following comman in root directory to ditribute tokens

npx hardhat scripts/funds.ts

How it works

Diagram

About

NFT that automatically reward randomly selected owners each 10 NFTs minted


Languages

Language:Vue 53.4%Language:JavaScript 20.4%Language:Solidity 17.0%Language:TypeScript 6.9%Language:HTML 1.1%Language:Shell 0.9%Language:CSS 0.4%