GithubHelp home page GithubHelp logo

lawweiliang / airdrop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shapeshift/airdrop

0.0 0.0 0.0 2.32 MB

License: MIT License

Solidity 97.30% JavaScript 0.44% Shell 0.03% TypeScript 2.23%

airdrop's Introduction

Fox Token Airdrop Utilities

  1. install truffle globally npm install -g truffle
  2. Populate .env variables
  3. set a reasonable gas price in truffle-config.js
  4. Get airdrop-addresses.csv from trusted source and put in repo root folder.

Example format:

0x000000a541fa13beb75f82a1663a3b532f8ada3e,150
0x00000c55a0036318ef4d7a2a4c17495de5949f1b,150
0x0000462df2438f7b39577917374b1565c306b908,150
0x000051d46ff97559ed5512ac9d2d95d0ef1140e1,150
  1. run yarn
  2. run yarn build:addresses to add 1600 test addresses throughout the airdsrop addresses This creates the file: final-airdrop-addresses.csv.
    Also creates testAddressesAndMnemonics.json with the mnemonics for each test address
  3. run yarn build:proofs to build the merkle roots and proofs
  4. Set contract initialization values in 1_initial_migration.js
  5. run yarn deploy:testnet OR yarn deploy:mainnet to deploy airdrop contracts on chain
  6. deposit tokens to airdrop contact addressess so that contracts can distribute tokens

NOTES:

merkle folder contains code copied from https://github.com/Uniswap/merkle-distributor/tree/master/src and is used to generate the merkle proof for an object containing address: amount key value pairs.

Line 35 of merkle/parse-balance-map.ts was modified, removing 0x from the beginning of the string so that it works with our data format. Otherwise These files are unchanged from the uniswap merkle-distributor repo

airdrop's People

Contributors

elmutt avatar jjfarrow 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.