Skip to Content
Welcome to RitoSwap's documentation!

Mint / Burn Page

This page is the user’s gateway to the Colored Key NFT system. Here you can:

  • Mint a new NFT to gain access to the token-gated messaging feature.
  • Burn an existing, “used” NFT key (once a message has been recorded) so you can mint again and re-enter the gate.

Everything on this page reacts in real-time to your wallet and NFT state. You’ll always see exactly which token you hold, what actions are available, and smoothly animated transitions as you connect, mint, use, and burn.

View Live Page

File Paths

          • MintPageWrapper.tsx
          • MintPageWrapper.module.css
          • Music.tsx
        • metadata.ts
        • page.module.css
        • page.tsx

Components of Note

ComponentLocationRole in Page
MintPageWrapperapp/mint/components/MintPageWrapper.tsxTop-level orchestrator: wires wallet state, event listeners, and global NFT store together.
TokenStatusapp/mint/components/TokenStatus/TokenStatus.tsxDynamic status text (“Not signed in,” “You have an unused key!”, etc.) with smooth fades.
NFTScreenapp/mint/components/NFTScreen/NFTScreen.tsxLive preview of your NFT (colors, token ID) rendered as a hard-coded SVG for instant display.
ButtonSectionapp/mint/components/ButtonSection/ButtonSection.tsxContext-aware action buttons (Connect, Mint, Open Gate, Burn) that adapt to your current state.
ProcessingModalapp/mint/components/ProcessingModal/ProcessingModal.tsxTransaction feedback modal with mobile wallet deep-linking and block explorer integration.

Smart Contract Integration

Overview of the blockchain interaction layer that powers real-time NFT state synchronization, wagmi hooks integration, and TanStack Query caching for the mint/burn functionality.

Smart Contract Data System

Music

The page features Rito Rhymes’ track “Blockchain 4 a Gangsta” (a parody remix of Master P’s Heaven 4 a Gangsta). The song satirically traces blockchain’s evolution from an old-school hacker underworld tool to a modern mechanism for trivial use cases like NFT minting, even shouting out William Entriken, the lead author of ERC-721.