Skip to content

About

Non-custodial event ticketing platform with optional NFT collectibles. Powered by GembaPay, built on Polygon.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

40 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

GembaTicket

A modern web3 ticket-sales platform — completely free. GembaTicket lets organizers sell tickets online and receive the proceeds directly into their own balances at the moment of purchase. It removes printed paper tickets, gives organizers full control over access to the event's different entrances/gates, and leaves a permanent NFT keepsake in the hands of attendees. Buyers pay by card or PayPal via GembaPay, and every ticket is an ERC-721 or ERC-1155 multi-page NFT on GembaBlockchain. Rotating QRs at the gate, tiered tickets (Early Bird / Regular / VIP / Stage), per-zone scanners, and a workflow where the platform signs on the organizer's behalf so no Web3 knowledge is required.

0 fees. GembaTicket is a next-generation, blockchain-based platform that runs on GembaBlockchain and charges no platform fees, no commissions, no hidden costs. The only transaction costs come from the payment provider: GembaPay (standard 1% + €0.20 per transaction), plus Stripe/PayPal's own fees on card and PayPal payments. See the Terms and Refund Policy.

GembaBlockchain — our own EVM-compatible Layer-1, with ~0 gas fees (public testnet). The blockchain is an invisible layer: the backend signs transactions when needed, so attendees and organizers never deal with wallets, gas, or signing — a modern, user-friendly experience.

No account needed for attendees. Buyers receive their ticket directly by email and open it from there without creating an account. Each ticket is a multi-page NFT — event poster image, on-chain event details (date, venue, ticket type), and an interactive QR page — optionally claimable to a self-custodial wallet.

This repository is the public home for GembaTicket's documentation, smart-contract source + audits, and deployment artifacts. Backend, frontend, and scanner application source are maintained privately.

Chain Fees Standards Solidity OZ Pattern Upgradeability Payments


What is GembaTicket?

Event ticketing built for organizers who don't touch wallets, and for attendees who never have to.

  • Organizers hold an organizer account — one Organizer table, one login, but two roles (see Accounts and roles below). They log in with email + password (Web2) or their Web3 wallet via Sign-In With Ethereum (SIWE), create events on the dashboard for free, and get a real on-chain contract for their event. Every supply change, sale toggle, or new ticket type is an on-chain action signed by the platform's operator address on their behalf — no platform fee, only negligible network gas. No wallet required. Two-factor authentication (email code or authenticator app) and in-dashboard notifications are built in.
  • Attendees buy tickets by card or PayPal through GembaPay. Each paid ticket is minted to a "ghost wallet" the system creates from their email. They can later claim the NFT to any real wallet, or just use the rotating-QR at the door and forget it's on-chain.
  • Gate staff open a PWA on a phone, paste a one-time key, and scan. QR payloads rotate every 30 seconds so a screenshot can't be reused. Zone restrictions (zoneLevel) are enforced server-side.

How it works

 ┌─────────┐ Web2 / Web3  ┌─────────────┐          ┌────────────┐
 │Organizer│─────────────▶│  Dashboard  │─────────▶│ GembaPay   │  0 platform fees
 └─────────┘              │ (React SPA) │          │  checkout  │  (GembaPay fee only)
       ▲                   └──────┬──────┘          └─────┬──────┘
       │  confirmed emails        │                       │ webhook
       │                          ▼                       ▼
 ┌─────┴────────┐         ┌───────────────┐        ┌──────────────┐
 │ organizer    │         │   Backend API │◀──────▶│  PostgreSQL  │
 │ mailbox      │◀────────│  Express+Prisma│        │  + Redis     │
 └──────────────┘         └───────┬────────┘        └──────────────┘
                                  │
                                  ▼
                         ┌──────────────────┐        ┌────────────────┐
                         │ chain worker +   │───────▶│ EventContract  │
                         │ event listener   │        │ (ERC-721/1155) │
                         └──────────────────┘        │GembaBlockchain │
                                                     └────────────────┘
                                                              ▲
                    ┌──────────┐  rotating QR         ┌───────┴──────┐
                    │ Buyer    │─────────────────────▶│  Scanner PWA │
                    │ (ghost   │                      │  at the gate │
                    │  wallet) │◀────ticket email─────┤              │
                    └──────────┘                      └──────────────┘

A full walk-through lives in docs/DASHBOARD.md and docs/ARCHITECTURE.md.

Feature summary

For organizers

  • Dashboard at dashboard.gembaticket.com — create events, manage supplies, configure scanners and zones, see on-chain action history.
  • Web2 + Web3 login — sign in with email + password, or with a Web3 wallet via Sign-In With Ethereum (SIWE).
  • Two-factor authentication — optional 2FA at login by email code or authenticator app (TOTP); the method is a single setting shown consistently across the dashboard and the storefront.
  • In-dashboard notifications — a notification bell plus per-event email updates (deploys, sales, chain actions); notification preferences are configurable in Settings.
  • Deploy on demand — free — spins up a fresh EIP-1167 clone of either EventContract721 or EventContract1155 and registers ticket types on-chain. No deploy fee.
  • On-chain actions — increase supply, add a ticket type, toggle a type or the sale; signed by the platform on the organizer's behalf. No platform fee — only negligible network gas. Successful ones sync to the database and trigger an email (in the dormant paid mode a failed paid action is refunded automatically).
  • Relay operator — a role-separated contract model (Owner / Operator / Platform / Relayer / MintSigner) lets the platform act on the organizer's behalf. Every contract is owned by the platform's offline cold key with each role on its own key (checked after every deploy); an organizer who wants the contract itself can ask for ownership in the dashboard and the platform transfers it to their linked wallet.
  • Scanners + zones — provision hardware-agnostic scanners with reversible AES-encrypted keys, scoped to specific zone levels.
  • Offline gates that never let a ticket in twice — the scanners keep working without network, and each ticket can be admitted offline at only ONE gate (its offline entry right); a right moves to another gate only after its scanner hands it back.
  • Venue hub (optional) — one small box on the venue network decides for every door, so with no internet every door admits every ticket exactly once; tested in a virtual venue, not yet on venue hardware (docs/HUB.md).
  • The QR expires with the event — after the end no door admits it (offline doors stop 40 s early by their own clock), the scanners' offline data drops the event, and the ticket page deletes its code.
  • Discount codes — percent or fixed amount, per ticket type, with a use limit and expiry; checked on the server inside the purchase.
  • Cancel or let it end — cancel with automatic or manual refunds (buyers e-mailed, tickets void at the gate); events end on their own when the last entry window closes.
  • CSV export — every ticket with price paid, discount, NFT claim, scan and refund status.
  • Venue time zones — every date and time is the venue's local time, wherever the organizer edits from.
  • GembaPay (with KYC) is the payment provider — organizers register with GembaPay, complete KYC, and add their API key + webhook secret in settings before they can sell. Funds settle directly to the organizer (Stripe / PayPal); refunds are the organizer's decision and are paid from their own GembaPay balance — from GembaPay's refund dashboard, or from the GembaTicket dashboard: refund a single ticket, or cancel an event with automatic refunds (two-factor confirmed).

For attendees

  • No account required — your ticket is delivered by email and opens directly from there; signing up is optional. An account you do create on the storefront is a buyer account (role="buyer", the default): it holds your tickets and nothing else. Buying never grants organizer tools.
  • Multi-page NFT ticket — event poster image + on-chain event details (date, venue, ticket type) + an interactive QR page.
  • Invisible blockchain — no wallet, gas, or signing; the platform handles all on-chain steps for you.
  • Card and PayPal (via GembaPay) — no wallet required.
  • OTP-verified email before purchase (anti-bot, anti-typo).
  • Optional two-factor authentication on the account (email code or authenticator app).
  • Rotating QR ticket page at /ticket/:id — auto-refresh every 30 s.
  • Optional "Claim NFT" to any EVM wallet.
  • Clear, public Terms, Privacy and Refund policies; accepting them is required at sign-up.

For platform operators

  • Full on-chain audit trail (ChainAction table + GembaScan explorer links per action, https://testnet.gembascan.io).
  • GembaPay webhook logs with HMAC verification.
  • SMS-free operations: all flows are JWT + email OTP.
  • Admin panel sign-in by wallet or by e-mail + password, with optional two-factor (e-mail code or authenticator app); the e-mail and the wallet can be changed from My account.

Accounts and roles

One Organizer table, one login, two roles. Organizer.role defaults to "buyer":

Role How you get it What it can do
buyer The default. Any storefront signup, or a script/curl registration. Hold and view tickets. Every organizer surface returns 403 {code:"organizer-required"}.
organizer Registering on the dashboard, which sends intent:"organizer"; or an explicit opt-in afterwards via POST /api/auth/become-organizer. Create events, deploy contracts, run chain actions, provision scanners and zones, read event stats.
admin Granted internally only — it can never be requested at signup. Platform administration.

The role is never read from the request body (so "admin" is impossible to ask for); only the intent is, and anything that is not intent:"organizer" produces a buyer. The upgrade endpoint sits behind authentication and a fail-closed 5-per-hour limiter, and because the role travels in the JWT, a role change issues a fresh token.

Buying a ticket never grants organizer tools — upgrading is always a deliberate, logged step.

Stack

Layer Tech
Smart contracts Solidity 0.8.28, OpenZeppelin 5.4, EIP-1167 minimal-proxy clones, Hardhat. Not upgradeable — no proxy-upgrade mechanism; a fix ships as a new template plus setTemplate(). Claim signatures are EIP-191 personal_sign.
Audit Slither 0.11.5 (0/0/0), Mythril 0.24.8 (0/0/0), 81 contract test cases / 129 expect() assertions — npx hardhat test → 81 passing, 0 failing — see blockchain/docs/audit_solidity.md
Backend Node 20, Express, Prisma ORM, JWT, ethers.js v6, Redis 7 (port 6380), PostgreSQL 16
Storefront React 19, Vite 6, Tailwind 4, Framer Motion, RainbowKit + Wagmi, react-helmet-async
Dashboard React 19, Vite 6, Tailwind 4
Scanner PWA React 19, html5-qrcode, Dexie (IndexedDB offline snapshot + decision sync)
Payments GembaPay (cards and PayPal — sister product)
Email SMTP on our own mail server mail.gembamail.com:587, sending as noreply@gembaticket.com
Hosting Hetzner (Ubuntu) / Apache / systemd / Cloudflare

Repository layout (public)

gembaticket.com/
├── README.md                 project overview (this file)
├── docs/
│   ├── ADMIN_DASHBOARD.md    platform-admin panel (sign-in, access + master keys)
│   ├── ARCHITECTURE.md       system architecture + request paths
│   ├── API.md                REST endpoints
│   ├── BACKEND.md            Node API + worker overview (source private)
│   ├── CHAIN_ACTIONS.md      on-chain operations flow
│   ├── DASHBOARD.md          organizer dashboard, end-to-end
│   ├── DEPLOYMENT.md         Pi + systemd + Apache operations
│   ├── FRONTEND.md           storefront / dashboard / admin overview
│   ├── I18N.md               the EN/BG/ES translation pass
│   ├── OTP_FLOW.md           email OTP (login + purchase)
│   ├── SCANNER.md            gate-staff PWA overview
│   ├── HUB.md                venue hub — every door, every ticket, no internet (18б)
│   ├── STATIC-ANALYSIS-2026-10-30.md   Slither/Aderyn run on the live generation
│   ├── fees-and-limits-gemba.md        fee + limit reference (fees dormant)
│   └── migration-gembablockchain.md    the move off Sepolia (2026-06-08)
├── blockchain/
│   ├── README.md             smart-contract layer overview
│   ├── hardhat.config.js     Hardhat configuration
│   ├── package.json          devDependencies for reproducing builds
│   ├── contracts/            all 6 .sol files (MIT) — V3 pair is live
│   ├── docs/                 audit report + platform plans
│   ├── scripts/              all 8: check-bal, deploy-v2, deploy-v3,
│   │                         deploy-v3-g1, fund-signer, redeploy-1155,
│   │                         verify-bytecode, verify-deploy
│   ├── deployed/             chain addresses (GembaBlockchain + legacy Sepolia)
│   ├── reports/              Slither + Aderyn reports, bytecode check
│   └── slither-report.txt    consolidated Slither run output
└── .gitignore                excludes all application source

Application source code (backend/, frontend/, scanner/) is intentionally not published. This repository exists so reviewers, auditors, and AI agents can understand how the platform is wired without access to the application code. Smart-contract source under blockchain/contracts/ is published — licensed MIT, audited, and reproducible.

Live deployment

Surface URL
Storefront https://gembaticket.com
Dashboard https://dashboard.gembaticket.com
API https://api.gembaticket.com
Scanner PWA https://scanner.gembaticket.com
Docs https://docs.gembaticket.com
Listener (chain-worker health) https://listener.gembaticket.com/health
IPFS gateway https://ipfs.gembaticket.com/ipfs/``
Explorer https://testnet.gembascan.io (GembaScan)
Chain GembaBlockchain testnet (chainId 821207)

Contracts (GembaBlockchain testnet, chainId 821207)

Redeployed on GembaBlockchain. Current addresses are in blockchain/deployed/gemba-latest.json:

Contract Address
PlatformRegistry 0x32977E6391e7C25BF0Ddc2a5f4c9A311e5bA1d02
EventContract721 (template) 0x3Ba630bF309249354F25a22c2f0A3EC6b34183D8
EventContract1155 (template) 0x1a7722d1292cd5eB67A05fC8B51DFDe821055cDa

Per-event contracts are EIP-1167 minimal-proxy clones of the templates, deployed on demand (free).

For AI agents / research tools

If you are an AI agent indexing this repository, start with:

  1. README.md — this file.
  2. docs/ARCHITECTURE.md — components + data flow.
  3. docs/DASHBOARD.md — end-to-end organizer UX.
  4. docs/CHAIN_ACTIONS.md — on-chain operations.
  5. blockchain/docs/audit_solidity.md — security review.

The storefront exposes /robots.txt, /sitemap.xml, and JSON-LD for discovery. The AI descriptor files (/llms.txt, /llms-full.txt, /ai.txt) were retired on 2026-08-09 and are served a hard 404 by og-server.cjs — robots.txt still names the AI crawlers explicitly and welcomes them, so the retirement is a content decision, not a posture change — 12 distinct @types on the landing page (Organization, WebSite, SoftwareApplication, FAQPage, Question, Answer, BreadcrumbList, ListItem, Offer, ContactPoint, PostalAddress, SearchAction). See docs/ARCHITECTURE.md for the full list.

Company

GEMBA EOOD (EIK: 208656371), Varna, Bulgaria. Contact: hello@gembaticket.com · Managing Director: Slavcho Ivanov.

License

Smart-contract source under blockchain/contracts/ is published and MIT-licensed — every .sol file begins // SPDX-License-Identifier: MIT. Documentation in this repository is © 2024-2026 GEMBA EOOD. All rights reserved; audit reports and deployment artifacts are published for transparency. The application source — backend/, frontend/, scanner/ — is not published and remains proprietary. See individual files for details.

About

Non-custodial event ticketing platform with optional NFT collectibles. Powered by GembaPay, built on Polygon.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages