You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are an expert full-stack developer tasked with creating a token launchpad application on the Celo blockchain. Build a complete dApp that allows users to easily create and deploy ERC-20 tokens with custom parameters.
Project Setup & Architecture
CRITICAL: Celo Composer MCP Integration
This is the CORE foundation of the entire application. Follow these steps exactly:
MUST select the "Farcaster" template from available Celo Composer options
This provides the base dApp structure for the token launchpad
Project Structure Setup
Let the Celo Composer Farcaster template generate the initial project structure
The template provides pre-configured Web3 setup, wallet integration foundations, and Celo network configuration
Build the token launchpad functionality ON TOP OF this generated template
Implementation Workflow
STEP 1: MCP Template Generation
# Initialize with composer-kit-mcp
npm install composer-kit-mcp
# Use MCP to connect to Celo Composer# Select "Farcaster" template from available options# Generate base dApp structure
STEP 2: Build Token Launchpad on Template Foundation
The Farcaster template provides the Web3 foundation
Add token creation forms and smart contract deployment logic
Leverage existing wallet connection and Celo network setup
Extend the template with token-specific functionality
Tech Stack Requirements
Foundation: Celo Composer Farcaster Template (via MCP)
Base dApp structure from Celo Composer
Pre-configured Celo network integration
Existing Web3 wallet setup as foundation
Extended Stack:
Frontend: Next.js with TypeScript, Tailwind CSS for styling (built on template)
Blockchain: Celo network (already configured in template)
Wallet Integration: Wagmi for wallet connections (extend template's wallet setup)
Smart Contracts: ERC-20 deployment contracts (Thirdweb or OpenZeppelin standards)
MCP Integration: Core dependency - composer-kit-mcp connecting to Celo Composer
Core Features to Implement
1. User Interface Components
Create a modern, intuitive interface with these key sections:
Landing Page
Hero section explaining the token launchpad
"Launch Your Token" CTA button
Brief explanation of the process
Celo network benefits highlighting
Token Creation Form
Design a step-by-step form that collects:
Token Name (e.g., "My Awesome Token")
Token Symbol (e.g., "MAT", max 6 characters)
Token Description (multi-line textarea, max 280 characters)
Total Supply (with decimal handling)
Initial Distribution settings
Token Logo Upload (optional)
Social Links (optional: website, Twitter, Discord)
Fill out token creation form (new UI built on template foundation)
Preview token details and confirm (leveraging template's UI patterns)
Approve transaction via template's Web3 setup
Monitor deployment progress using template's transaction handling
Display success page integrated with template's overall UX
Provide links to add token to wallet (using template's wallet integration)
Additional Features (Built on Template Foundation)
Save token drafts using template's storage patterns
Token deployment history integrated with template's user data
Share token creation leveraging template's social integrations
Export token information using template's data handling
Technical Implementation Details
CORE: MCP Integration with Celo Composer
// Primary MCP setup - THIS IS THE FOUNDATIONimport{ComposerKit}from'composer-kit-mcp';// Initialize MCP connection to Celo ComposerconstcomposerKit=newComposerKit({network: 'celo',template: 'farcaster'// CRITICAL: Use Farcaster template});// The MCP provides the base dApp structure// Token launchpad functionality builds on this foundationconstinitializeApp=async()=>{// Connect to Celo Composer via MCPawaitcomposerKit.initialize();// Get Farcaster template configurationconsttemplateConfig=awaitcomposerKit.getTemplate('farcaster');// Use template's Web3 setup as foundation// Add token creation functionality on top};
Token Creation Flow Integration
The token launchpad extends the Farcaster template with:
User Input Collection (builds on template's UI foundation)
Token Launch Process (leverages template's Celo integration)
Smart Contract Deployment Architecture
// Built on top of Farcaster template's Web3 foundationimport{useContract,useContractWrite}from'wagmi';// Token factory contract for ERC-20 deploymentconstTokenFactory={address: 'CONTRACT_ADDRESS_ON_CELO',abi: [{name: 'createToken',type: 'function',inputs: [{name: 'name',type: 'string'},{name: 'symbol',type: 'string'},{name: 'totalSupply',type: 'uint256'},{name: 'description',type: 'string'}],outputs: [{name: 'tokenAddress',type: 'address'}]}]};// Use template's wallet connection for deploymentconstdeployToken=async(tokenData)=>{// Leverages Farcaster template's Web3 setupconst{ write }=useContractWrite({
...TokenFactory,functionName: 'createToken',args: [tokenData.name,tokenData.symbol,tokenData.totalSupply,tokenData.description]});returnwrite();};
Form Validation Rules
Token Name: 1-50 characters, alphanumeric and spaces
Symbol: 2-6 characters, uppercase letters only
Description: Max 280 characters
Total Supply: Positive number, handle decimals properly
All fields required except optional ones
Gas Optimization
Batch operations where possible
Use CREATE2 for predictable addresses
Implement gas estimation
Provide gas price options (fast, standard, slow)
Testing Requirements
Unit Tests
Smart contract functionality
Form validation logic
Wallet integration
Transaction handling
Integration Tests
End-to-end token creation flow
Celo network interaction
MCP integration
Error scenarios
User Testing
Mobile responsiveness
Wallet connection flows
Transaction signing experience
Error message clarity
Deployment & Configuration
Environment Setup
Configure for Celo Alfajores testnet initially
Mainnet configuration ready
Environment variables for contract addresses
MCP configuration settings
Security Considerations
Input sanitization and validation
Rate limiting for deployments
Proper error handling
Contract security best practices
Success Metrics & Analytics
Track:
Number of tokens created
Success rate of deployments
User engagement metrics
Gas costs and optimization opportunities
Additional Features (Nice to Have)
Token analytics dashboard
Community features (comments, ratings)
Token marketplace integration
Advanced tokenomics options (vesting, staking)
Multi-language support
Dark/light theme toggle
Documentation Requirements
Provide:
User guide for token creation
Developer documentation
API documentation for MCP integration
Troubleshooting guide
FAQ section
Deliverables Expected
Complete Next.js application with all features
Smart contracts deployed and verified
Comprehensive testing suite
Documentation and user guides
Production-ready deployment configuration
Focus on creating a seamless, user-friendly experience that makes token creation accessible to non-technical users while maintaining security and reliability. The app should feel professional and trustworthy, encouraging users to launch their tokens on the Celo network.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Vibe Code a Token Launchpad Prompt
Tools Used
Prompt
You are an expert full-stack developer tasked with creating a token launchpad application on the Celo blockchain. Build a complete dApp that allows users to easily create and deploy ERC-20 tokens with custom parameters.
Project Setup & Architecture
CRITICAL: Celo Composer MCP Integration
This is the CORE foundation of the entire application. Follow these steps exactly:
Initialize with Celo Composer MCP
composer-kit-mcpfrom https://github.com/celo-org/composer-kit-mcpSelect Farcaster Template
Project Structure Setup
Implementation Workflow
STEP 1: MCP Template Generation
STEP 2: Build Token Launchpad on Template Foundation
Tech Stack Requirements
Foundation: Celo Composer Farcaster Template (via MCP)
Extended Stack:
Core Features to Implement
1. User Interface Components
Create a modern, intuitive interface with these key sections:
Landing Page
Token Creation Form
Design a step-by-step form that collects:
Validation & Preview
2. Smart Contract Integration
Contract Standards
Use either:
Deployment Pipeline
Features to Include
3. Wallet Integration & Web3 Functionality
Wallet Connection
Transaction Management
4. User Experience Flow
FOUNDATION: Built on Farcaster Template
The entire user journey leverages the Celo Composer Farcaster template's existing infrastructure:
Template-Provided Foundation:
Token Launchpad Extension Process:
Step-by-Step Token Creation Process (Built on Template):
Additional Features (Built on Template Foundation)
Technical Implementation Details
CORE: MCP Integration with Celo Composer
Token Creation Flow Integration
The token launchpad extends the Farcaster template with:
Smart Contract Deployment Architecture
Form Validation Rules
Gas Optimization
Testing Requirements
Unit Tests
Integration Tests
User Testing
Deployment & Configuration
Environment Setup
Security Considerations
Success Metrics & Analytics
Track:
Additional Features (Nice to Have)
Documentation Requirements
Provide:
Deliverables Expected
Focus on creating a seamless, user-friendly experience that makes token creation accessible to non-technical users while maintaining security and reliability. The app should feel professional and trustworthy, encouraging users to launch their tokens on the Celo network.
Beta Was this translation helpful? Give feedback.
All reactions