Using the App
Overview
SynthFi is built to take you from prompt → protocol in a few guided steps. This section walks you through how to:
Generate your contract using natural language
Review and customize the output
Preview the frontend DApp
Send your contract to the Launchpad
Prepare for deployment on Solana Devnet
Step-by-Step Workflow
✅ 1. Describe Your Protocol
Enter a natural language prompt like:
“Create a staking pool where users deposit an SPL token and earn 10% APR. Rewards are locked for 30 days.”
“Build a vesting contract that unlocks tokens linearly over 12 months with a 3-month cliff.”
SynthFi’s AI parses your intent and generates:
A Solana smart contract using the Anchor framework
A React frontend with wallet integration
A full interface for interaction and testing
✅ 2. Review the Smart Contract
After generation, you’ll see the full smart contract code:
Built with Rust and Anchor macros
Organized into:
initialize
/stake
/withdraw
/claim_rewards
instructionsAccount validation (via
#[derive(Accounts)]
)Events, error types, and safety checks
This is real code — you can copy, download, or export it for editing or auditing.
✅ 3. Preview the DApp UI
SynthFi also generates a working frontend built with:
Next.js + Tailwind
@solana/wallet-adapter (Phantom support)
Dynamic rendering based on your contract structure
Here, you can:
Connect your wallet (Devnet)
Stake/unstake tokens
View current position state (e.g., rewards accrued)
Test flows manually
✅ 4. Send to Launchpad
Click “Send to Launchpad” to continue your build.
You’ll be redirected to /launchpad
with your contract preloaded.
In the Launchpad, you can:
Connect your wallet (Phantom)
Review contract code in read-only format
View any flagged risks (e.g., hardcoded access, missing withdraws)
Configure:
Token name, symbol, decimals
Optional notes or metadata
Simulate a deploy action or prepare for full deployment
✅ 5. Simulate Deployment (MVP)
While the full deploy flow is in progress, you can:
Click a placeholder “Deploy to Devnet” button
View contract metadata and wallet address
Experience the full UX without broadcasting a transaction
This makes SynthFi demo-ready even before deployment infrastructure is live.
How It Works Under the Hood
Contract generation
AI + Anchor scaffolding
Wallet connection
Phantom via Wallet Adapter
Frontend DApp
Next.js + Tailwind
Draft storage
localStorage or in-memory
Launchpad routing
Next.js pages, state passed via query/context
Risk scan (MVP)
Regex or rule-based serverless function (Vercel API)
Supported Contract Types (Current)
Token staking (APR-based or fixed)
Lock/unlock vaults with penalty
Linear or cliff-based vesting
Airdrop claims via Merkle root (planned)
NFT-gated logic (planned)
Next Features in the App (Roadmap)
One-click Devnet deployment
Upload to IPFS or GitHub export
Save/edit projects per wallet
Multi-wallet and multisig support
UI customization for DApp branding
Last updated