Skip to content

Solana-Workshops/solana-twitter

Repository files navigation

Solana Twitter

🎬 Recorded Sessions

Link Instructor Event
youtube Recording Joe Caulfield N/A

☄️ Open in Solana Playground IDE

Program Link
v1 program
v2 program

📗 Learn

This workshop demonstrates how to create a social media app (like Twitter) using Solana's PDAs and on-chain data.

You can find all of the details on how this program works in the Diagrams section below.

A Note on v1 & v2

This demo is broken up into two programs: v1 and v2.

  • v1:
    • Demonstrates how to use PDAs to create profiles and tweets, and also likes and retweets
    • Leverages seed mapping and counter fields to load a user's data
  • v2:
    • Build on top of v1, with some new features
    • Introduces the ability to mint users tokens based on their earned likes & retweets
    • Demonstrates how to create mints that are PDAs off of the program
    • Demonstrates how to designate the program (via a PDA) as the Mint Authority
    • Demonstrates how to airdrop users tokens without requiring action on their part

Diagrams