GithubHelp home page GithubHelp logo

isabella232 / polymath-allocator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from polymathnetwork/polymath-allocator

0.0 0.0 0.0 1.56 MB

Allocation and airdrop scripts for the Polymath token distribution

License: MIT License

Shell 0.61% JavaScript 94.15% Python 3.21% HTML 2.03%

polymath-allocator's Introduction

Polymath Allocation Scripts

This repo contains the POLY token allocation addresses for various pools of users. Here they are:

Supply Description File Num
Presale Presale purchasers presale.csv 0
Founders Polymath founders founders.csv 1
Advisors Polymath advisors advisors.csv 3
Reserve Polymath reserve reserve.csv 4
Bonus1 Presale sale bonus 1 bonus1.csv 5
Bonus2 Presale sale bonus 2 bonus2.csv 6
Bonus3 Presale sale bonus 3 bonus3.csv 7

Pre contract deploy

To allow participants to check their balances at token.polymath.network/check, clone the repo, drop the config files into the root folder and call each script in the /database folder.

Setting the allocations

Once the PolyDistribution contract is live, the following steps can be taken:

  1. Ensure all csv files in /data are correct

  2. To set all presale allocations run node ./scripts/allocate.js <PolyDistribution contract address> 0 and node ./scripts/verify_allocations.js <PolyDistribution contract address> 0 to verify for correctness.

  3. To set all founder allocations run node ./scripts/allocate.js <PolyDistribution contract address> 1 and node ./scripts/verify_allocations.js <PolyDistribution contract address> 1 to verify for correctness.

  4. To set all advisor allocations run node ./scripts/allocate.js <PolyDistribution contract address> 3 and node ./scripts/verify_allocations.js <PolyDistribution contract address> 3 to verify for correctness.

  5. To set all reserve allocations run node ./scripts/allocate.js <PolyDistribution contract address> 4 and node ./scripts/verify_allocations.js <PolyDistribution contract address> 4 to verify for correctness.

  6. To set all bonus1 allocations run node ./scripts/allocate.js <PolyDistribution contract address> 5 and node ./scripts/verify_allocations.js <PolyDistribution contract address> 5 to verify for correctness.

  7. To set all bonus2 allocations run node ./scripts/allocate.js <PolyDistribution contract address> 6 and node ./scripts/verify_allocations.js <PolyDistribution contract address> 6 to verify for correctness.

  8. To set all bonus3 allocations run node ./scripts/allocate.js <PolyDistribution contract address> 7 and node ./scripts/verify_allocations.js <PolyDistribution contract address> 7 to verify for correctness.

Distributing the allocations

Once the startTime has passed and tokens become tradeable, the tokens can be distributed by running:

node ./scripts/distribute.js <PolyDistribution contract address> <0-8>

Running the airdrop

The airdrop can be completed by running node ./scripts/airdrop.js <PolyDistribution contract address> and verified for correctness by running ./node ./scripts/verify_airdrop.js <PolyDistribution contract address>.

polymath-allocator's People

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.