A Web3 decentralized application that simulates a cake-making game using NFT forging mechanics. Players can combine different ingredients (NFTs) to create delicious cakes on the Ethereum blockchain.
This dapp allows users to:
- Mint Ingredients: Start with basic ingredients like flour, eggs, butter
- Forge Cakes: Combine ingredients to create different types of cakes
- Collect NFTs: Each ingredient and cake is a unique ERC1155 token
- Trade: Transfer and trade your cake NFTs with other players
Cake-Making-Forging-Dapp/
├── contracts/ # Smart contracts
│ ├── ERC1155Token.sol # ERC1155 token contract
│ └── ForgingContract.sol # Main forging logic
├── frontend-forging-dapp/ # Next.js frontend application
├── metadata-cake-making-dapp/ # NFT metadata files
├── images-cake-making-dapp/ # NFT images
└── README.md # This file
- Token 0: Flour - The base ingredient
- Token 1: [Ingredient Name]
- Token 2: [Ingredient Name]
- Token 3: Sponge Cake
- Token 6: Deluxe Cake
- More cake varieties available through forging
- Next.js 14 - React framework
- TypeScript - Type safety
- Tailwind CSS - Styling
- RainbowKit - Wallet connection
- Wagmi - Ethereum React hooks
- Ethers.js - Ethereum interactions
- Solidity - Smart contract language
- ERC1155 - Multi-token standard
- Sepolia Testnet - Deployment network
git clone https://github.com/yourusername/Cake-Making-Forging-Dapp.git
cd Cake-Making-Forging-Dappcd frontend-forging-dapp
npm installnpm run devOpen http://localhost:3000 to view the application.
- ERC1155Token:
0xB8f43056B93744e6b2A9F6331646D561A34F25A8 - ForgingContract:
0x1AE6C646ED74B65af20f55b070eEdbd3229f77CB
- Standard ERC1155 functionality
- Minting capabilities
- Approval mechanisms
- Ingredient combination logic
- Cake forging mechanics
- Token burn and mint operations
- Connect Wallet: Use RainbowKit to connect your MetaMask wallet
- Get Ingredients: Mint or acquire ingredient NFTs
- Forge Cakes: Combine ingredients using the forging interface
- Collect: Build your collection of unique cake NFTs
npm run buildnpm run lintnpm run dev # Start development server
npm run build # Build for production
npm run start # Start production server
npm run lint # Run ESLintThe frontend can be deployed on platforms like:
- Vercel (Recommended)
- Netlify
- GitHub Pages
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.