Skip to content

JMariadlcs/NFT-dynamic-fully-on-chain

Repository files navigation

NFT-fully-on-chain

This is a NFT with based64 encoded SVG Images stored 100% On-Chain creation from Chainlink Hackathon Spring 2022.

The workshop followed to complete this repo is this one.


NFT Happy NFT Frown


Objetives

  1. Mint an NFT based on the price of ETH
  • If ETHprice > someNumer: NFT1
  • if ETHprice < someNumber: NFT2

Requirements for creating similar projects from scratch

  • Start hardhat project:
npm init -y
npm install --save-dev hardhat
npx hardhat
  • Add .gitignore file containing:
node_modules
.env
coverage
coverage.json
typechain

#Hardhat files
cache
artifacts
  • Install dependencies:
yarn add --dev @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers ethers @nomiclabs/hardhat-etherscan @nomiclabs/hardhat-waffle chai ethereum-waffle hardhat hardhat-contract-sizer hardhat-deploy hardhat-gas-reporter prettier prettier-plugin-solidity solhint solidity-coverage dotenv @chainlink/contracts base64-sol

or

npm install --save-dev @nomiclabs/hardhat-ethers@npm:hardhat-deploy-ethers ethers
npm install @nomiclabs/hardhat-ethers
npm install @chainlink/contracts
npm install dotenv --save
npm install base64-sol

How to deploy

  • Rinkeby network:
npx hardhat deploy --network rinkeby 

or

yarn hardhat deploy --network rinkeby 

Resources

About

NFT with based64 encoded SVG Images stored 100% On-Chain dynamically using Chainlink Price Feeds from Chainlink Hackathon Spring 2022

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published