-
Notifications
You must be signed in to change notification settings - Fork 15
Description
📌 Scope & Features
1. List & Select Program Templates
• Fetch metadata from ProgramWatch and solana-developers/program-examples – name, description, category.
• Display in wizard as selectable cards (e.g., Hello World, Counter, SPL Token, NFT Minter).
2. Parameter Input Forms
• For each selected program, present relevant form fields.
E.g.:
• SPL Token: name, symbol, initial supply
• NFT Minter: metadata URI, mint authority
• Counter & Hello World: no extra input needed
3. Code & Config Generation
• Based on selected template and inputs, generate the Anchor or native Rust project structure.
• Prefill necessary config files (e.g. Anchor.toml).
4. Compile & Deploy Pipeline
• Invoke Anchor or Solana CLI to build-sbf, deploy to local/devnet.
• Return deployment status and program ID to user with a link to explorer.
5. Documentation & Samples
• Provide brief inline descriptions.
• Link to full example and its README (e.g. token mint guide).
⸻
✅ Deliverables
• UI/UX mockups (Figma) showing new template selection and input flow
• Integration of at least 4 templates: Hello World, Counter, SPL Token, NFT Minter
• Working codegen → compile → deploy for those templates
• Tests demonstrating end-to-end flow
• README updates documenting how to add new templates from ProgramWatch/program-examples
⸻
💬 Notes
• Start with official, well-documented templates from solana-developers/program-examples (Basics & Tokens folders)    
• Aim for clarity and minimal friction—each template should compile and deploy in <2 mins
• Future PRs can add more complex examples (DEX, cross-program invocation, etc.)