Mosaic is an innovative smart contract development platform specifically designed for the Mantle blockchain ecosystem.
Mosaic is an innovative smart contract development platform specifically designed for the Mantle blockchain ecosystem. It offers two powerful approaches to contract creation: a visual drag-and-drop builder and an AI-powered contract generator. Whether you prefer hands-on composition or AI assistance, Mosaic empowers developers and blockchain enthusiasts to rapidly create and deploy optimized smart contracts.
Smart Contract Repo: https://github.com/harishkotra/mosaic-registry
App Repo: https://github.com/harishkotra/mosaic
Here are some effective prompts to help you get started with the AI generator:
"Create an ERC20 token contract for a community rewards system with:
- Monthly distribution caps
- Vesting schedules for team tokens
- Anti-whale mechanisms limiting large transfers"
"Design a meta-transaction handler for my DeFi protocol that:
- Supports percentage-based gas fee delegation
- Includes signature verification
- Has role-based permissions for gas sponsors"
"Generate a bridge adapter contract that:
- Handles ERC20 token transfers between Ethereum and Mantle
- Includes emergency pause functionality
- Implements a challenge period for withdrawals"
Both the visual builder and AI generator support:
Clone the repository
git clone https://github.com/harishkotra/mosaic.git
cd mosaic
Install dependencies
npm install
Run the development server
npm run dev
Open http://localhost:3000 in your browser
Frontend:
Smart Contract Integration:
AI Integration:
Meta Transaction
ERC20 Token
Access Control
Bridge Adapter
Gas Optimizer
The AI Generator leverages the Llama 3.2 8B parameter model to provide:
Code Generation:
Context Awareness:
Learning Resources:
Security Measures:
Best Practices:
Upcoming Features:
Getting an idea was hard and hence I took the example idea as inspiration from the Infra and AI track. I struggled quite a bit with deploying to testnet automatically. Once that is done, everything else was an easy task at hand. Mantle's developer docs are one of the best in the web3 space.
Any grants or funds would definitely support me to make this a working project for the Mantle developer community.