Skip to content

15077693d/Ticket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ticket

Transferable Ticket Creation (Ticket NFT)

Any questions feel free to contract oscaryiu.lapsang@gmail.com.

Inspiration

I love sunset rollercoaster and they will have a concert on 2021/10/8 in Hong Kong! However, I have no ticket(E-tickets with qr code) so I would like to buy second hand ticket... Then the problems come out...

Problem Solution
Someone pretend they have the ticket A function that I can check the one is owner or not.
Someone have one ticket but capture the qrcode and sell to multiple person Make ticket as ERC721 troken! each sell is a troken transfer, no need to capture qrcode.
I afraid someone will take a photo to my qrcode and go the concert before me. Renew QR code anytime if you want!

What's next?

  • implement rest api for ticket metadata etc. location...
  • public to public testnet
  • transfer ticket on Opensea
  • buy ticket with ether

Solution demo

Publisher

  1. Create Campaign

Create Campaign

  1. Create Campaign ticket category

Create Campaign ticket category

  1. Validate QR code

correct_result

Customer

  1. Buy ticket

Buy Ticket

  1. Transfer ticket

transfer_ticket

  1. Renew QR codes

renew_qrcode

  1. Show all owner

read_data

  1. Read ticket data

Requirement

  • truffle
  • yarn/npm
  • metamask

How to start?

Access demo branch

git checkout campaign-factory-demo

Install dependency

Contract

cd contract
yarn install

Web interface

cd demo/ui
yarn install

Deploy contract

  • setup local Ganache RPC Server 127.0.0.1:8545
cd contract
truffle deploy
  • copy contract address to demo/ui/src/ethereum/CampaignFactory.js and replace campaignFactoryAddress value

deploy_contract

Open web interface

cd demo/ui
yarn start

About

Transferable Ticket Creation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published