Giter Club home page Giter Club logo

raffle's Introduction

Token Hunt

Token Hunt is a decentralised NFT raffle on the Hedera testnet

Hows it's built?

We wrote a smart contract which takes the holds of NFT for the entire duration of the raffle, after generating the random number through Solidity with libraries for random number generation (HIP-351), we took help of this documentation here

After generation of the random number NFT is transfered from contract to person who win the lottery.

Challenges faced

  • We wanted a deploy link but it would not be possible with The Graph as we can only run The Graph on the local node. To get over this issue we used Hedera Consensus Messages so that we can render the frontend very quickly and efficiently instead of query the nodes multiple times. We use a in house built standardised message so that it can be converted into the JSON, then render the frontend
  • Since transaction are limited to 4KB we had to optimise our contract writing to make sure not to exceed the limit, as we wanted scalability, speed and support multiple Raffle(s) at once

raffle's People

Contributors

ashu26jha avatar

Watchers

 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.