Coder Social home page Coder Social logo

weeklyraffle's Introduction

GLMR APES - Weekly Raffle

Hi Ape, welcome to the GLMR Apes weekly raffle repo. This tool let you run a random lottery among ERC 721 token holders. The code picks a random number between 0 & 1001, then find the wallet address for this particular tokenID and log it. It then loops over the number of rounds defined until the number of winners per raffle is reached. If a wallet address won twice during the same session, his address is replaced by another random one.

Prerequisites

  • Having Node.js installed on your computer
  • Having git installed on your computer

Install

  • Create a new directory somewhere on your computer
  • Open a terminal and use the "cd" command to move to that folder
    • For instance "cd C:/Users/marin/Documents/glmrapes/"
  • Clone github repository (you can also download the files and put them here directly)
  • Enter in this new directory
    • In the terminal "cd weeklyraffle"
  • Launch the tool using Node.js
    • In the terminal "node index.js"
  • Start the lottery by writting 1, 2 or 3 corresponding to the raffle session

Configuration

Contract Address is declared at line 5 as contractAddress. Starting from line 14, you can configure number of winners by editing raffle1Rounds or raffle2Rounds variables

weeklyraffle's People

Contributors

mar1 avatar

Stargazers

HadiFab 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.