Marketplace
The Mirage marketplace is the app homepage at app.mirage.garden. It reads the bPeg factory, displays active collections, and links into collection and token pages.
Marketplace home
The marketplace home reads:
BpegFactory.totalCollections()BpegFactory.collections(index)for each collection- Collection
name,symbol,totalSupply, andmaxSupply tokenURI(1)for a preview image when at least one token has been minted
Each collection card shows the collection art preview, minted count, max supply, and mint progress.
Collection page
Collection pages live at:
/market/<collectionAddress>
The page reads:
| Read | Purpose |
|---|---|
name() | Collection title |
symbol() | Collection symbol |
totalSupply() | Minted count |
maxSupply() | Supply cap |
token() | ERC-20 gate token |
tokenThreshold() | Required gate-token balance |
BpegFactory.mintFee() | Standard mint fee fallback |
BpegFactory.feeFor(wallet) | Wallet-specific mint fee |
Gate token symbol, decimals, balanceOf(wallet) | Collector balance check |
The page lists minted token IDs up to the UI's practical preview cap and links to each token detail page.
Token detail page
Token pages live at:
/market/<collectionAddress>/<tokenId>
The page reads:
- Collection name and symbol.
- Token owner via
ownerOf(tokenId). - Metadata via
tokenURI(tokenId). totalSupply()for previous/next token navigation.
The metadata is expected to be a base64 JSON data URI with an image field and optional attributes.