Composable SVG NFT. A full redesign using an updated scaffold-eth of the OptimisticLoogies build https://buidlguidl.com/build/V58rFtXDRN0Y9U3DA9yp
https://optimistic.loogies.io/
Loogies with a smile on Optimism network.
Original Demo Video: https://youtu.be/PiwJsoURECg?t=542
This branch is an extension of loogie-svg-nft branch (watch its demo to understand more about it).
clone/fork ๐ scaffold-eth optimistic-loogies-master branch:
git clone -b optimistic-loogies-master https://github.com/scaffold-eth/scaffold-eth.git optimistic-loogies-master
install and start your ๐ทโ Hardhat chain:
cd optimistic-loogies-master
yarn install
yarn chain
in a second terminal window, start your ๐ฑ frontend:
cd optimistic-loogies-master
yarn start
in a third terminal window, ๐ฐ deploy your contract:
cd optimistic-loogies-master
yarn deploy
๐ You need an RPC key for production deployments/Apps, create an Alchemy account and replace the value of ALCHEMY_KEY = xxx
in packages/react-app/src/constants.js
๐ Edit your smart contracts packages/hardhat/contracts
.
๐ Edit your frontend App.jsx
in packages/react-app/src
๐ผ Edit your deployment scripts in packages/hardhat/deploy
๐ฑ Open http://localhost:3000 to see the app
This branch shows how to set up an SVG NFT contract so that other NFTs can use it in their SVG code. This leads to an easy composition of SVG NFTs.
Take a look at Loogies.sol
at packages/hardhat/contracts
. It describes an SVG NFT that is defined by two parameters: color
and chubbiness
randomly generated at mint. It exposes a function:
function renderTokenById(uint256 id) public view returns (string memory)
It returns the relevant SVG that be embedded in other SVG code for rendering.
To deploy this project to Gitpod, click this button:
Documentation, tutorials, challenges, and many more resources, visit: docs.scaffoldeth.io
๐ Read the docs: https://docs.soliditylang.org
๐ Go through each topic from solidity by example editing YourContract.sol
in ๐ scaffold-eth
๐ง Learn the Solidity globals and units
Check out all the active branches, open issues, and join/fund the ๐ฐ BuidlGuidl!
๐ซ Extend the NFT example to make a "buyer mints" marketplace
โ๏ธ Learn how ecrecover works
๐ฉโ๐ฉโ๐งโ๐ง Build a multi-sig that uses off-chain signatures
โ๏ธ Learn how a simple DEX works
๐ฆ Ape into learning!
Join the telegram support chat ๐ฌ to ask questions and find others building with ๐ scaffold-eth!
๐ Please check out our Gitcoin grant too!