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.
- Mint an NFT based on the price of ETH
- If ETHprice > someNumer: NFT1
- if ETHprice < someNumber: NFT2
- 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
- Rinkeby network:
npx hardhat deploy --network rinkeby
or
yarn hardhat deploy --network rinkeby
- hardhat-nft-fcc: Patrick's repo for NFTs.
- hardhat-starter-kit
- OpenZeppeling github: OpenZeppeling github.
- ERC721 JSON example: remove 'https://'
- SVG documentation: SVG documentation and examples.
- SVG real time encoding: encode SVG and see result in real time.
- Base64.sol SmartContract: used to base64 encode SVGs
- Chainlink Data Feeds: Chainlink Data Feeds documentation for getting ETH price.
- Ethereum Price Data Feed: Needed when deploy