Giter Site home page Giter Site logo

nerdydave2017 / chainlink-hackathon-nftickets Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nonymousoctopus/chainlink-hackathon-nftickets

0.0 0.0 0.0 103.98 MB

License: MIT License

Shell 0.12% JavaScript 73.58% Ruby 0.36% Objective-C 1.60% Java 2.27% TypeScript 16.20% Solidity 5.19% Starlark 0.68%

chainlink-hackathon-nftickets's Introduction

NFTickets

Please note - NFTickets is currently in early development - some features are not yet included in this release.

NFTickets allows users to authenticate with their blockchain wallets and generate ERC1155 tokens for their events, allowing them to create tickets that can be sold on the NFTickets Marketplace to other users. Event organisers are charged a 20% deposit fee (This is used as a stake to discouracge bad behaviour = good actors will be reimbursed 19% depostit, resulting in a final 1% fee). Buyers are able to purchase one or multiple tickets on the marketplace.

All purchases are tied to USD and utilise Chainlink pricefeed to charge realtime dolar equivalents in the chain's native asset.

Ticket buyers can then use the all to generate a privately signed message that generates a QR code on their phone.

Event organisers are able to scan QR codes for their events to ensure that attendees own tickets to their event, and are in possession of the wallet that owns the ticket, and are not impoersonating a public address that has purchased a ticket.

Staking, complaints, refunds, and slashing mechanics are not included in this release.

This project is using:

Smart contract

The solidity contract is located in artifacts > contracts

Chainlink Pricefeed is integrated into the marketplace contract (lines 90-193 for relevant sections), and calls the AVAX/USD pricefeed on the Avalanche testnet.

IPFS is accessed via a Moralis gateway.

Installation

Install all dependencies:

cd chainlink-hackathon-nftickets
yarn install

cd ios
pod install

cd ..

Run your App:

yarn android

IMPORTANT:

  • To run the app and be able to actually login do the following:

    • Make sure to have Xcode installed on your machine if you wish to run it in iOS development and Android Studio if you want it in Android.
    • For M1 users: Access apps folder then right click on Xcode and click on more info. Then select "Open Using Rosetta".
    • Connect a physical phone device. Open terminal/cmd and run adb devices and see if your android device id is listed.
    • Install your preferred wallet on your device: (Metamask, Trust Wallet etc..)
  • IOS:

    • Command react-native run-ios for react-native-cli package users or npx react-native run-ios if you're using the latest recommended version of node.js
  • Android:

    • Command react-native run-android for react-native-cli package users or npx react-native run-android if you're using the latest recommended version of node.js

chainlink-hackathon-nftickets's People

Contributors

nonymousoctopus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.