OptimisticLoogiesV2

Composable SVG NFT. A full redesign using an updated scaffold-eth of the OptimisticLoogies build https://buidlguidl.com/build/V58rFtXDRN0Y9U3DA9yp

๐Ÿ— scaffold-eth - OptimisticLoogies V2

https://optimistic.loogies.io/

Loogies with a smile on Optimism network.

photo_2022-12-16_13-30-57

Original Demo Video: https://youtu.be/PiwJsoURECg?t=542

๐Ÿ„โ€โ™‚๏ธ Quick Start

Prerequisites

This branch is an extension of loogie-svg-nft branch (watch its demo to understand more about it).

Node plus Yarn and Git

Getting Started

Installation

Manual setup

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

Introduction

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.

Automated with Gitpod

To deploy this project to Gitpod, click this button:

Open in Gitpod

๐Ÿ“š Documentation

Documentation, tutorials, challenges, and many more resources, visit: docs.scaffoldeth.io

๐Ÿ”ญ Learning Solidity

๐Ÿ“• 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

๐Ÿ›  Buidl

Check out all the active branches, open issues, and join/fund the ๐Ÿฐ BuidlGuidl!

๐Ÿ’ฌ Support Chat

Join the telegram support chat ๐Ÿ’ฌ to ask questions and find others building with ๐Ÿ— scaffold-eth!


๐Ÿ™ Please check out our Gitcoin grant too!

๐ŸฐBuidlGuidl is a registered ๐Ÿค  Wyoming DAO LLC
Fork meยท

Built with โค๏ธ at

BuidlGuidl
WalletConnect
WalletConnect
Scan with WalletConnect to connect