How hueiboi/nft_ticketing works
NFTix combines a React wallet-connected frontend with ERC-721 event contracts. Organizers create events, manage sale/check-in stages, staff and revenue; attendees discover events, buy tickets and retrieve short-lived signed QR codes; gate staff verify QR data and submit on-chain check-ins. The README documents the contract’s factory, minting, usage and revenue capabilities. The sampled source confirms frontend QR creation and verification, but the Solidity implementation was not sampled, so contract behavior links rely on README evidence; unsampled frontend details are not inferred beyond documented capabilities.
Main entry points: Dapp.js Wallet app shell · Event.sol Event factory and NFT · EntryGate.js Entry gate · BuyTickets.js Event discovery
Components 24
Wallet application
- React entry
frontend/src/index.js - Wallet app shell
frontend/src/components/Dapp.js - UI theme
frontend/src/theme.js - Network errors
frontend/src/components/error_handling/NetworkErrorMessage.js - Transaction success
frontend/src/components/TxSuccessModal.js - Transaction waiting
frontend/src/components/error_handling/WaitingForTransactionMessage.js - Transaction errors
frontend/src/components/error_handling/TransactionErrorMessage.js
Ticketing journeys
- Event discovery
frontend/src/components/tabs/BuyTickets.js - Event creation
frontend/src/components/tabs/CreateEvent.js - Organizer controls
frontend/src/components/tabs/MyEvents.js - Owned tickets
frontend/src/components/tabs/MyTickets.js - Event artwork
frontend/src/utils/eventCover.js - Ticket QR modal
frontend/src/components/TicketQrModal.js
QR check-in
- QR signing and checks
frontend/src/utils/ticketQr.js - QR camera scanner
frontend/src/components/QrScanner.js - Entry gate
frontend/src/components/tabs/EntryGate.js
Contracts and chain
- Event factory and NFT
contracts/Event.sol - Event contract ABI
frontend/src/contracts/Event.json - Factory ABI
frontend/src/contracts/EventCreator.json - Deployed addresses
frontend/src/contracts/contract-address.json
Other components
- Attendee
- Organizer / staff
- MetaMask wallet
- Local blockchain
Connections 39
- React entry → Wallet app shell: renders
frontend/src/index.js - React entry → UI theme: configures
frontend/src/index.js - Organizer / staff → MetaMask wallet: connects
README.md - Attendee → MetaMask wallet: connects
README.md - Wallet app shell → MetaMask wallet: reads account
frontend/src/components/Dapp.js - Wallet app shell → Local blockchain: reads chain
frontend/src/components/Dapp.js - Wallet app shell → Event factory and NFT: loads events
README.md - Wallet app shell → Event discovery: routes tab
frontend/src/components/Dapp.js - Wallet app shell → Event creation: routes tab
frontend/src/components/Dapp.js - Wallet app shell → Organizer controls: routes tab
frontend/src/components/Dapp.js - Wallet app shell → Owned tickets: routes tab
frontend/src/components/Dapp.js - Wallet app shell → Entry gate: routes tab
frontend/src/components/Dapp.js - Wallet app shell → Network errors: renders
frontend/src/components/Dapp.js - Event discovery → Attendee: offers events
README.md - Event discovery → Event artwork: gets artwork
frontend/src/components/tabs/BuyTickets.js - Event discovery → Event factory and NFT: buys ticket
README.md - Event creation → Event factory and NFT: creates event
README.md - Organizer controls → Event factory and NFT: manages event
README.md - Organizer controls → Transaction success: shows result
- Owned tickets → Event factory and NFT: reads ownership
README.md - Owned tickets → Event artwork: gets artwork
frontend/src/components/tabs/MyTickets.js - Owned tickets → Ticket QR modal: opens QR
frontend/src/components/TicketQrModal.js - Ticket QR modal → QR signing and checks: creates payload
frontend/src/components/TicketQrModal.js - QR signing and checks → MetaMask wallet: requests signature
frontend/src/utils/ticketQr.js - Entry gate → QR camera scanner: renders scanner
frontend/src/components/tabs/EntryGate.js - Entry gate → QR signing and checks: verifies payload
frontend/src/components/tabs/EntryGate.js - Entry gate → Event factory and NFT: submits check-in
frontend/src/components/tabs/EntryGate.js - Organizer / staff → Organizer controls: manages events
README.md - Attendee → Event discovery: discovers tickets
README.md - Attendee → Owned tickets: views tickets
README.md - Organizer / staff → Entry gate: checks tickets
README.md - Event factory and NFT → Local blockchain: runs on
README.md - Wallet app shell → Event contract ABI: loads ABI
frontend/src/components/Dapp.js - Wallet app shell → Factory ABI: loads ABI
frontend/src/components/Dapp.js - Wallet app shell → Deployed addresses: loads address
frontend/src/components/Dapp.js - Event factory and NFT → Event contract ABI: described by
- Event factory and NFT → Factory ABI: described by
- Entry gate → Transaction waiting: shows pending
- Entry gate → Transaction errors: shows failures