feat: Prophecy NFT Gallery (Innovation Cycle #49 — The Living Cosmos)#41
Open
feat: Prophecy NFT Gallery (Innovation Cycle #49 — The Living Cosmos)#41
Conversation
Complete production implementation of the Prophecy NFT system: ## Database - Add Prophecy model (sealed prophecies per chapter, max 100 mints each) - Add ProphecyMint model (one per user per prophecy, mint order 1-100) - Add ProphecyStatus enum: PENDING | FULFILLED | ECHOED | UNFULFILLED - SQL migration: 20260218_prophecy_nft - Regenerated Prisma client (0 TypeScript errors) ## API Routes (4 new endpoints) - GET/POST /api/prophecies — list all / seed new (oracle) - GET/PATCH /api/prophecies/[chapterId] — chapter gallery + fulfill - GET/POST /api/prophecies/mint — user mints + oracle pack - GET /api/prophecies/leaderboard — oracle rankings ## Components (6 new) - ProphecyCard — NFT card with status-based art (dark/silver/golden) - ProphecyGallery — filterable chapter gallery with sort - ProphecyMintModal — full mint flow (single + oracle pack 10% discount) - ProphecyRarityBadge — rarity tier indicator (COMMON → MYTHIC) - ProphecyBanner — compact story sidebar teaser with progress bar - OracleLeaderboard — top collectors ranked by fulfilled prophecy count ## Pages (2 new) - /prophecies — global gallery with leaderboard sidebar - /prophecies/[chapterId] — chapter-specific gallery + My Mints ## Integrations - Navbar: added 'Prophecies ✦' link - Story page: ProphecyBanner injected in sidebar above betting interface ## Documentation - docs/PROPHECY_NFT_SYSTEM.md — full API, migration, and seeding guide Closes Innovation Cycle #49 Week 1-6 priority (Prophecy NFTs)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the complete Prophecy NFT system from Innovation Cycle #49. This is the top-priority Week 1-6 feature that transforms Voidborne from a prediction market into a collectible narrative cosmos.
Before each chapter resolves, the AI generates 10-20 cryptic prophecies. Readers mint them as NFTs for 5 $FORGE. After chapter resolution, each prophecy transforms:
Changes
🗄️ Database (Prisma Schema + Migration)
Prophecymodel — sealed prophecy per chapter (max 100 mints each)ProphecyMintmodel — one per user per prophecy, mint order 1-100ProphecyStatusenum —PENDING | FULFILLED | ECHOED | UNFULFILLEDpackages/database/prisma/migrations/20260218_prophecy_nft/ProphecyMint[]relation added toUsermodelProphecy[]relation added toChaptermodel🔌 API Routes (4 new endpoints)
GET /api/propheciesPOST /api/propheciesGET /api/prophecies/[chapterId]PATCH /api/prophecies/[chapterId]POST /api/prophecies/mintGET /api/prophecies/mintGET /api/prophecies/leaderboard🎨 Components (6 new, all in
components/prophecy/)ProphecyCardProphecyGalleryProphecyMintModalProphecyRarityBadgeProphecyBannerOracleLeaderboard📄 Pages (2 new)
/prophecies/prophecies/[chapterId]🔗 Integrations (2 modified files)
ProphecyBannerinjected in sidebar above betting interface📚 Documentation
docs/PROPHECY_NFT_SYSTEM.md— Full API reference, migration guide, seeding examples, revenue modelRarity System
Revenue Impact (Year 1 → Year 5)
$61K → $1.82M annual revenue from:
Testing Checklist
npx tsc --noEmitclean)Deployment Notes
Required: Run DB Migration
Seed Initial Prophecies
Use the oracle POST endpoint or the AI generator in
packages/prophecy-nft/src/generator.ts:Smart Contract (Future)
The ERC-721 contract at
packages/prophecy-nft/src/ProphecyNFT.solis POC-ready.When deploying:
PROPHECY_NFT_ADDRESSenv varORACLE_PRIVATE_KEYenv varScreenshots
The gallery follows the "Ruins of the Future" design system:
#05060b)JetBrains Mono) for all technical labelsRelated
INNOVATION_CYCLE_49_FEB_18_2026.mdpackages/prophecy-nft/src/ProphecyNFT.solpackages/prophecy-nft/src/client.tsdocs/PROPHECY_NFT_SYSTEM.md