← Back to home

OmniMemeFoodFactory

Launch your own AI-powered food meme coin as Omni Fungible Token (OFT) on 70+ chains in ONE click(*), made possible by LayerZero V2

Screenshots

OmniMemeFoodFactory screenshot 1
OmniMemeFoodFactory screenshot 2
OmniMemeFoodFactory screenshot 3
OmniMemeFoodFactory screenshot 4
OmniMemeFoodFactory screenshot 5

Problem Statement

Launch your own AI-powered food meme coin as Omni Fungible Token (OFT) on 70+ chains in ONE click(*), made possible by LayerZero V2.Meme Launcher UI: imagine new meme with AI, preview the food images and recipes, specify launch parameters (mint price curve, price parameters, max supply, lock period, chains ...), connect wallet and pay (a very small) launch fee to deploy to multiple chains simultaneouslyMeme Details UI: Pay to mint the meme, transfer minted tokens to any deployed chain, view balance, read verified reviews, add a new review (as a holder)Minimal Server: APIs for generating food images and recipes with AI, and retrieving / verifying reviews. The AI is powered by OpenAI image and natural language models.Complete Contract Suite: an implementation of FoodMeme token, based on LayerZero's OFT standard (ERC20 compatible). FoodMeme contracts can be launched usingFoodMemeFactorycontracts, which are already deployed on multiple LayerZero-integrated chains below.Anyone can launch a newFoodMemetoken usinglaunchmethod. The parameters can be found inUtilscontract.If you want to launch using command lines or your own UI / contracts, don't forget to callsetupLzto configure peers (i.e. where the contracts are deployed in other chains, and which chains). Seetest/FoodMemeFactory.t.solfor example of the parameters and how to set it up.After launching,FoodMemetoken can be minted by anyone, by paying the mint price you specified (constant, linear to % minted, quadratic to % minted)You can pause/unpause mintingIf you set a lock up period in launch parameters, you can also unlock the tokens early. Tokens cannot be transferred during lock up period.Any token holder can add a review / delete their own review. Anyone can also check current average review rating on chain.Review texts (stored on server or by third party) can be verified using hash stored on chainAt the moment, tokens can only be minted on the configured "mintChains", which should be a single chain for now. This will be improved later, see TODOAt the moment, reviews and supply can only be tracked on the configured "masterChain". This will be improved later, see TODO

Solution

Contracts are written, organized, and deployed by Foundry (forge, anvil). See description and README, and submitted feedback on partner section for how LayerZero made our project possibleFrontend is based on Chakra, Viem, Wagmi, Rainbow Kit, Typescript + React, with full ESLint and dev environment configuredServer is powered by Python Flask, and OpenAI dall-e-3 and GPT-4

Hackathon

ETHGlobal San Francisco

2024

Contributors