Coder Social home page Coder Social logo

token-distribution's Introduction

token-distribution

This repository contains the queries necessary to reproduce the lists of UMA KPI Options airdrop recipients.

Airdrop Criteria

Any action listed below must occur before (or at) Etherum block number 11830000, which is Unix Timestamp 1612976449 (Feb-10-2021 05:00:49 PM UTC).

Governance Recipients

90 KPI Options go to:

  • Any address that has voted in one of the Yearn, BadgerDAO, Sushi, Balancer or YAM snapshot.page spaces. These addresses are shown here.

UMA Tokenholders

60 KPI Options go to:

  • Any address holding a balance of 10 or more UMA at Feb-10-2021 05:00:49 PM UTC. These addresses are shown here.

UMA Users

120 KPI Options go to:

  • Any address that has voted in UMA governance.
  • Any address that has minted an UMA synthetic token. These addresses are shown here.

Reproduction

Installing dependencies

You'll need to install nodejs v14 and yarn. Assuming that's done, run:

yarn

Setting up Google Cloud

The GetAllTokenholders.js query uses Google Big Query. To run this script, you will need to:

  1. Create a Google Cloud project.
  2. Navigate to IAM & Admin and then the Service Accounts dashboard.
  3. Create a Service Account.
  4. Create a new key pair.
  5. Download your key as a JSON file and move it to an easy to find location locally.
  6. Create an environment variable by running export GOOGLE_APPLICATION_CREDENTIALS=~/file_path_to_your_key.
  7. Run printenv to verify that the environment variable was correctly set.

Running the script

To run the script, use:

node collectAddresses.js --url your.node.url.io

More information

  • This article gives a high level description of KPI Options.
  • This doc will help get you kicked off on your own KPI Options experiment!

token-distribution's People

Contributors

mrice32 avatar smb2796 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.