Skip to content

hsjo12/Chainlink_Hackathon_2025

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

104 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TicketChain

Ticketchain is a decentralized ticketing platform that transforms how tickets are issued, purchased, and resold. By leveraging Web3 technologies, Ticketchain eliminates fraud, ensures true ticket ownership, and empowers event organizers with transparent and secure revenue streams.

QUICK Demo

Requirement

  1. Ensure you have the following prerequisites:

    • $ETH on ETH Sepolia Testnet.
    • ETH Sepolia Testnet RPC endpoint.
  2. Create a .env file with the following content in smartContract:

    ALCHEMY_RPC_KEY="Alchemy RPC"
    PK="Deployer private key"
  3. Create a .env file with the following content in frontend:

    NEXT_PUBLIC_CHAIN_ID = "11155111"
    NEXT_PUBLIC_PROJECT_ID = ""
    NEXT_PUBLIC_RPC = "https://ethereum-sepolia-rpc.publicnode.com"
    NEXT_PUBLIC_SIGNATURE_WEBHOOK = ""
    DATABASE_URL=""
    UPLOADTHING_TOKEN=""

Set-up

  1. Deploy all contracts to Sepolia

    Run the Hardhat deployment script:

    npx hardhat run scripts/deploy.js --network sepolia
  2. Move ABI files to the frontend After deployment, ABI files will be generated in the deployments folder. Copy them to your frontend project:

    frontend/ticket-app/smartContracts/abis
  3. Generate Prisma Client

    npx prisma generate
  4. Run the website From the frontend directory, start the Next.js app:

    npm run dev

Chainlink Integration Files

  1. Data feed
  1. Chainlink Function contracts/secondaryMarket/SecondaryMarketCore.sol - Retrieve ticket usage data via a Chainlink Function and, upon listing, check whether the ticket has been used to prevent fraudulent listings.

Deployment

Sepolia

Name Address
Config 0x01AbD13ff659d75233F25016230B40AF842cf25B
FeeManager 0xDEAe5Fe045Ca7FA0a6206A1434c2C23033da6BAb
OrganizerRegistry 0x519990bAfb605d97a51D801E56C73348CA5b54bE
TicketFactory 0x3A3f2644B85a5c9B2C5624dA3d7b931Bf1532620
Treasury 0x1DD1a23b068dB802582F8D733C4cb289c85644f1

Releases

No releases published

Packages

 
 
 

Contributors