Smart Contracts ๐ค๐
Meme Alchemy utilizes multiple smart contract modules to manage the lifecycle and interactions of Meme NFTs. The core contract modules include:
NFT Management Contract ๐๏ธ:
Responsible for minting, transferring, burning, and metadata updates of Meme NFTs.
Users can mint newly created Memes as NFTs ๐จ or update NFT attributes during evolution (e.g., replacing image/video hashes or upgrading Meme DNA data ๐งฌ).
To prevent abuse, only NFTs that meet evolution conditions can call the update function, and a small $MEAL fee may be required.
Fusion & Evolution Contract ๐งช:
Defines the rules and processes for Meme fusion (combining two Meme NFTs into a new one) and evolution ๐.
Users submit two NFTs, pay the required fee, and the contract verifies DNA compatibility.
The AI engine then generates new Meme content, and the contract mints a new NFT and assigns it to the user.
In Meme evolution, the contract follows a predefined algorithm (e.g., accumulated likes, holding duration) to determine if an NFT qualifies for evolution.
If eligible, the user can trigger the evolution function to generate an upgraded version of the Meme NFT.
A secure random number oracle (such as Chainlink VRF ๐) introduces genetic mutations ๐ฒ in fusion and determines random battle outcomes โ๏ธ, ensuring fairness and unpredictability.
Trading & Rewards Contract ๐ฐ:
Manages $MEAL token payments, rewards distribution, and fee handling.
When users trade NFTs, the contract deducts the buyerโs $MEAL balance and transfers the NFT, while allocating funds between the seller, creator royalties, and the platformโs ecosystem fund.
Competitive Meme Battles โ๏ธ and leaderboard events are also managed through this contract.
Based on battle results or ranking scores ๐, the contract automatically distributes $MEAL rewards ๐ธ or special NFT prizes ๐๏ธ.
Additionally, a portion of fees collected from transactions or battle winnings is burned ๐ฅ to support token deflation, helping increase the long-term value of $MEAL.
Automated & Transparent Execution ๐๐
Meme Alchemy fully automates the processes of Meme creation, evolution, trading, and battles through smart contracts, reducing human intervention and eliminating centralization risks ๐.
All key data and rules are recorded on-chain, allowing users to verify every transaction and evolution process transparently ๐. This autonomous and verifiable system ensures the trust and reliability of the platform while laying a strong foundation for future expansions, such as introducing new gameplay mechanics or rule adjustments ๐ญ๐ฅ.
Last updated