Giter VIP home page Giter VIP logo

airdrop-87's Introduction

airdrop of KNC and KGT tokens

This repository consists of Kyber Genesis Token (KGT) smart contract and a smart contract to speed the airdropping process. In the airdrop every user get 2 KNC, and in addition user may also get 1 KGT.

In addition, the repository consists of web3 javascript files that were used to initiate the airdrop transactions and monitor the progress. The scripts makes the transaction via infura public node, and the monitoring via local parity node that is run with --no-wrap flag. As otherwise it is not possible to fetch old events.

The airdrop sequence is as follows:

  1. Deploy KGT and airdrop contract.
  2. Approve enough KNC tokens (other tokens are also supported) to the airdrop contract.
  3. Compile a list of reciepient addresses and store them in upload.txt file.
  4. Run upload.js script.
  5. When airdrop ends, call endMiniting function in KGT contract.

When used for future airdrop one should:

  1. Code valid private key string in upload.js.
  2. Change emergencyERC20Drain to send stuck tokens to a predefined address. Currently it sends it to kyber wallet.
  3. Set desiriable gas fees.
  4. Change hardcoded addresses to match actual token address and source wallet.

airdrop-87's People

Contributors

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