Skip to content

A decentralized, wallet-to-wallet chat app on Starknet with instant token transfers, end-to-end encryption, and gas-efficient messaging. Chat, send tokens, and gossip freely—without breaking the bank!

Notifications You must be signed in to change notification settings

songifi/gasless_gossip

Repository files navigation

Here's a GitHub README file for Gasless Gossip with installation instructions, features, and contribution guidelines.


📢 Gasless Gossip – Decentralized Chat with Token Transfers

🚀 Gasless Gossip is a wallet-to-wallet chat app built on Starknet that enables gas-efficient messaging, token transfers, and encrypted conversations. Say goodbye to high fees and hello to on-chain gossip! 💬🔗


✨ Features

Decentralized Wallet-to-Wallet Messaging – Chat directly using Starknet wallets.
Instant Token Transfers – Send ERC-20, ERC-721, and ERC-1155 tokens in chat.
Gas-Efficient Transactions – Powered by Starknet’s L2 scalability.
Group Chats & DAO Treasury Management – Create group wallets & vote on fund allocations.
End-to-End Encryption – Messages are private and verifiable.
WebSockets for Real-Time Messaging – No need to refresh!


🛠️ Tech Stack

Layer Technology
Blockchain Starknet (Cairo Smart Contracts)
Indexing Starknet Indexer
Backend NestJS, Prisma, GraphQL
Database PostgreSQL
Frontend React, Starknet.js, WebSockets

🚀 Getting Started

1️⃣ Prerequisites

Ensure you have the following installed:


2️⃣ Clone the Repository

git clone https://github.com/yourusername/gasless-gossip.git
cd gasless-gossip

3️⃣ Backend Setup (NestJS + Prisma + GraphQL)

Step 1: Start PostgreSQL with Docker

docker-compose up -d

Step 2: Install Backend Dependencies

cd backend
yarn install

Step 3: Set Up Prisma

yarn prisma migrate dev --name init

Step 4: Start the Backend Server

yarn start:dev

The GraphQL Playground will be available at http://localhost:4000/graphql.


4️⃣ Frontend Setup (React + Starknet.js)

Step 1: Install Frontend Dependencies

cd frontend
yarn install

Step 2: Start the Frontend

yarn dev

The app will run at http://localhost:3000.


5️⃣ Smart Contracts (Cairo + Starknet)

Step 1: Install Scarb (Cairo Package Manager)

curl -L https://install.starknet.io | bash

Step 2: Compile & Deploy Contracts

cd contracts
scarb build
scarb deploy

📌 API & GraphQL Schema

The backend exposes a GraphQL API with queries & mutations for:

  • sendMessage(sender, receiver, content) – Send encrypted messages.
  • getMessages(walletAddress) – Retrieve chat history.
  • sendToken(sender, receiver, tokenAddress, amount) – Transfer tokens in chat.
  • createGroupChat(name, members, treasuryAddress) – Start a group chat with shared funds.

For detailed API documentation, visit http://localhost:4000/graphql.


🤝 Contributing

  1. Fork the repository
  2. Create a new branch (feature/your-feature)
  3. Commit your changes
  4. Push to your fork & submit a PR

🚀 Join the Gossip!

🔥 Follow updates, contribute, and join the community:

  • GitHub Issues & Discussions
  • Starknet Discord
  • Follow us on Twitter (@GaslessGossip)

About

A decentralized, wallet-to-wallet chat app on Starknet with instant token transfers, end-to-end encryption, and gas-efficient messaging. Chat, send tokens, and gossip freely—without breaking the bank!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published