Skip to Content
Welcome to RitoSwap's documentation!

Token Gate Page

The Token Gate page provides on-chain utility to Colored Key NFTs by granting holders exclusive access to messaging and content. It uses secure authentication mechanisms, including Sign-In with Ethereum (SiWE), so connecting your wallet feels like a privilege rather than a routine step. State-based logic guides you to mint if you do not have a key or to burn if you have already used yours, ensuring you always know what to do next. Inside the gate, you can send a message directly to Rito Rhymes and unlock an unreleased track.

View Live Page

File Paths

            • Completion.tsx
            • Completion.module.css
            • GatedContentRenderer.tsx
            • GatedContentRenderer.module.css
            • GateModal.tsx
            • GateModal.module.css
            • GatePageWrapper.tsx
            • GatePageWrapper.module.css
        • page.module.css
        • metadata.ts
        • page.tsx
        • page.unit.test.ts

Components of Note

ComponentLocationPurpose
Completionapp/gate/components/Completion/Completion.tsxShows confirmation once your message is sent and marks your key as used.
GatedContentRendererapp/gate/components/GatedContentRenderer/GatedContentRenderer.tsxRenders the messaging form or exclusive media based on your token state.
GateModalapp/gate/components/GateModal/GateModal.tsxManages wallet connection, SiWE signature flow, and directs you to mint or burn as needed.
GatePageWrapperapp/gate/components/GatePageWrapper.tsxOrchestrates authentication, state transitions, and mounts the gate modal or gated content.
gatedContentapp/lib/server/gatedContent.tsDefines JSON payloads for welcome text, submission form, and exclusive audio data.

Music

This track is a mystery until you unlock it. Hint: it involves Bitcoin and Britney Spears.


Detailed technical breakdown of the complex structure of the Token Gate.

Token Gate Structure

RitoSwap Docs does not store, collect or access any of your conversations. All saved prompts are stored locally in your browser only.