Giter Site home page Giter Site logo

prize-event-dapp's Introduction

Prize Event Dapp ๐Ÿ’ฐ

Group 12 team members -

  • Bun Houth
  • Juan
  • Damien
  • Husni
  • Amit
  • Saing

Prize Event Dapp is a Smart Contract written in Soilidity for anyone to run their own descentalised prize money contest. One of the main use cases is run your own Hackthons with sponsors.

Prize Event Contract

Handles the creation of an event, the voting & the distribution of the prize to the winners. Currently deployed in Goerli at: 0xdCC94d087a9b5fbbf64d31254771d3880DdED4eC

Voting Token

Simple ERC-20 used for voting in the Prize Event Contract. You can buy voting tokens from Prize Event Contract directly. Currently deployed in Goerli at: 0x14216589C62A80e4a165ACE4C9bdB50EdFa4243c

Usage

1. Setup a Prize Event (contest) with:

  • Amount of ERC-20 Prize Token
  • Address of the ERC-20 token that is going to be used as prize (e.g. DAI, USDC, LINK,etc.)
  • The Winners distribution array: The % of the prize that each winner can claim, e.g.:
    • 1st) 50% of pot prize
    • 2nd) 30% of pot prize
    • 3rd) 20% of pot prize
  • The List of Addresses that are going to be allowed as voters in the event
  • The List of Addresses acting as participants of the event (later anyone can register as participant)

2. Vote for a participant.

  • You will need:
    • Have voting token in your wallet (can be bought from contract with ETH)
    • The Event ID (Emitted on event creation)
    • The participant address

3. Close Event.

  • Once voting is ready, the owner (creator) of the event can close it
  • The closing of event, will choose the winners and distribute the balance of the token prize to their balances.

4. Claim Prize

  • As a winner, you can claim the prize from the smart contract by providing the address of the token that you want to claim.

Installation

Use yarn package manager to install dependencies.

yarn install

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

prize-event-dapp's People

Contributors

sheinix avatar damienteo avatar amitkochar1 avatar

Watchers

 avatar Saing Sab (Ayoung) avatar Bunhouth avatar Husni 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.