Marketplace¶
Gacha machine marketplace for Mystery Gift.
Overview¶
The marketplace allows users to:
- Browse available Pokemon card packs
- Purchase packs with verifiable random openings
- Collect unique Pokemon card NFTs
Components¶
API (apps/marketplace/api)¶
Cloudflare Worker backend handling:
- Pack inventory management
- Payment processing (USDC, SOL, $MYS)
- Verifiable pack opening via TEE randomness
- D1 database integration
Client (apps/marketplace/client)¶
React web client with:
- Token-gated access (requires $MYS)
- Pack browsing by tier
- Wallet connection via Privy
- NFT collection display
Pack Tiers¶
| Tier | Price | Card Quality | Creator Discount |
|---|---|---|---|
| Basic | $10 | Common | 10% |
| Premium | $25 | Rare | 15% |
| Vault Exclusive | $100 | Legendary | 20% |
Running Locally¶
Environment¶
See .env.example for required variables.
Next Steps¶
- Miss AI - AI-assisted purchases
- Livestream Server - Raffle system